Skip to content

[codex] Revert stale send spinner fix#1704

Merged
juliusmarminge merged 1 commit intomainfrom
codex/revert-48481aa-stale-send-spinner
Apr 3, 2026
Merged

[codex] Revert stale send spinner fix#1704
juliusmarminge merged 1 commit intomainfrom
codex/revert-48481aa-stale-send-spinner

Conversation

@juliusmarminge
Copy link
Copy Markdown
Member

@juliusmarminge juliusmarminge commented Apr 3, 2026

What changed

This PR reverts commit 48481aa9233666ae05a369e0ed7d16e06e024586 (Fix stale send spinner after completed turns (#1700)).

It removes the isSessionActivelyRunningTurn path 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 fmt
  • bun lint
  • bun typecheck
  • bun run --cwd apps/web test src/session-logic.test.ts

Note

Revert stale send spinner fix by replacing isTurnRunning with phase === "running" checks in ChatView

  • Removes the isSessionActivelyRunningTurn helper from session-logic.ts and replaces all isTurnRunning references in ChatView.tsx with direct phase === "running" checks.
  • isLatestTurnSettled now returns false whenever session.orchestrationStatus === "running", regardless of activeTurnId or the latest turn's completedAt.
  • All UI behaviors gated on running state (work indicator, layout key, auto-scroll, timer tick, revert guard, footer isRunning) now derive from phase instead of the removed helper.
  • Behavioral Change: the session is now considered active based solely on phase, so any edge cases where isSessionActivelyRunningTurn and phase disagreed 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 isSessionActivelyRunningTurn and switching ChatView’s running/work checks back to phase === "running".

isLatestTurnSettled is simplified to treat any session.orchestrationStatus === "running" as unsettled, and tests are updated accordingly (including deriveActiveWorkStartedAt expectations), 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.

This reverts commit 48481aa.

Co-authored-by: codex <codex@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 3, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: cd4a6ca2-4153-4d7f-899e-09c53b59d5bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/revert-48481aa-stale-send-spinner

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 3, 2026
@juliusmarminge juliusmarminge marked this pull request as ready for review April 3, 2026 03:02
@juliusmarminge
Copy link
Copy Markdown
Member Author

cc @hhharryyyyy this overcompensated for some cases.

CleanShot 2026-04-02 at 20 02 44@2x

@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Apr 3, 2026

Approvability

Verdict: 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.

@juliusmarminge juliusmarminge merged commit e8f5b4a into main Apr 3, 2026
17 checks passed
@juliusmarminge juliusmarminge deleted the codex/revert-48481aa-stale-send-spinner branch April 3, 2026 03:20
gigq pushed a commit to gigq/t3code that referenced this pull request Apr 6, 2026
Co-authored-by: codex <codex@users.noreply.github.com>
Chrono-byte pushed a commit to Chrono-byte/t3code that referenced this pull request Apr 7, 2026
Co-authored-by: codex <codex@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant