[codex] Revert stale send spinner fix#1704
Conversation
This reverts commit 48481aa. Co-authored-by: codex <codex@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
cc @hhharryyyyy this overcompensated for some cases.
|
ApprovabilityVerdict: Needs human review This revert changes runtime behavior for determining when the UI shows working/spinner states. While it simplifies the logic by removing edge-case handling for 'stale' sessions, it affects user-visible loading indicators and scroll behavior, warranting human verification that the previous fix wasn't needed. You can customize Macroscope's approvability policy. Learn more. |
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>

What changed
This PR reverts commit
48481aa9233666ae05a369e0ed7d16e06e024586(Fix stale send spinner after completed turns (#1700)).It removes the
isSessionActivelyRunningTurnpath and restores the previous session-running behavior in the chat composer and session logic tests.Why
Revert requested for the change introduced in
#1700.Impact
This restores the prior UI behavior for send-spinner and running-turn state handling.
Validation
bun fmtbun lintbun typecheckbun run --cwd apps/web test src/session-logic.test.tsNote
Revert stale send spinner fix by replacing
isTurnRunningwithphase === "running"checks in ChatViewisSessionActivelyRunningTurnhelper from session-logic.ts and replaces allisTurnRunningreferences in ChatView.tsx with directphase === "running"checks.isLatestTurnSettlednow returnsfalsewheneversession.orchestrationStatus === "running", regardless ofactiveTurnIdor the latest turn'scompletedAt.isRunning) now derive fromphaseinstead of the removed helper.phase, so any edge cases whereisSessionActivelyRunningTurnandphasedisagreed will resolve differently.Macroscope summarized 3c9c997.
Note
Medium Risk
Changes how the UI determines “running/settled” state for turns, which can affect spinners, auto-scroll, and checkpoint revert gating in active chats. Scope is limited to session state derivation and related tests, but regressions could be user-visible during turn transitions.
Overview
Reverts the prior “stale running” handling by removing
isSessionActivelyRunningTurnand switching ChatView’s running/work checks back tophase === "running".isLatestTurnSettledis simplified to treat anysession.orchestrationStatus === "running"as unsettled, and tests are updated accordingly (includingderiveActiveWorkStartedAtexpectations), restoring the earlier behavior for latest-turn banners and work timing.Written by Cursor Bugbot for commit 3c9c997. This will update automatically on new commits. Configure here.