Skip to content

fix(web): show timeline activity only after the thread syncs - #1702

Open
incognitojam wants to merge 1 commit into
mainfrom
styal/hide-unconfirmed-timeline-activity
Open

incognitojam wants to merge 1 commit into
mainfrom
styal/hide-unconfirmed-timeline-activity

Conversation

@incognitojam

@incognitojam incognitojam commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

A cached running turn can show a ticking Working timer and Thinking after reload or while its machine is unreachable. This recommendation hides that activity tail until this connection has synchronized the thread; it adds no replacement wording.

Situation What the user sees
Older running cache, server already completed Cached history and “Syncing messages…”; no Working/Thinking flash. The completed response appears after sync.
Connection lost mid-turn No live activity tail or ticking timer; the existing connection banner explains the gap.
Reconnected and synchronized, turn still running The real Working timer and Thinking return.

Uses the existing thread activity authority: current-connection detail must be live with a known server sequence, and a newer confirmed stopped summary wins. Disconnect clears that authority. Hiding rows preserves the cached run's outcome and restores expanded tool groups after reconnect. #1691's Stop rule and its tests are unchanged.

Validation: the row-projection regression failed on main, then passed with cache/live transitions and expanded reasoning groups covered. A temporary real-app scenario also fails on main (ae54d182937) at the false Working line and passes on this head; only the lower-layer regression test is retained. The real client ran against an isolated free Replay server with synthetic names/data. The reload pair uses an explicitly seeded older running cache over a completed server turn, with detail responses held and released; a mutation observer saw no Working/Thinking text through reload/sync. The disconnect/reconnect pair shows the same turn, verified still running after detail synchronized. Captures are attached. Astra reviewed the implementation; its expanded-group finding is fixed and covered. Opus judged the four captures clear and approved hiding instead of relabelling, noting that still images alone do not establish the absence of a transient flash.

This PR covers web and desktop's shared timeline. Native mobile has its own feed, still derives activity from cached run state, and needs analogous gating in a follow-up; it was not changed or device-tested here. Existing sidebar status and composer controls remain as they are.

Main before this change: cached Working and Thinking while disconnected

A1: stale running cache before thread detail sync, with no activity tail

A2: server-completed response after thread detail sync

B: connection lost mid-turn, no activity tail beside the existing banner

C: same turn reconnected and still running, real Working and Thinking restored


Written by codex/gpt-6.1-sol, code reviewed by codex/gpt-6-astra, captures judged by claude/claude-opus-5-5, in styal 🧵.

@github-actions

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip 9f4b42e750. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,338 2,339 +1
Lines changed in them 165,272 165,352 +80
Upstream files the fork removes 78 78 0
Fork-only files 1,052 1,052 0
Fork-only lines 192,624 192,624 0

Upstream files that start to differ (1)

  • apps/web/src/components/chat/MessagesTimeline.active-tools.test.ts: +57 −1 from upstream
Upstream files whose difference changes (3)
File Change Now differs by
apps/web/src/components/chat/MessagesTimeline.logic.ts +13 896 lines
apps/web/src/components/chat/MessagesTimeline.tsx +7 228 lines
apps/web/src/components/ChatView.tsx +2 848 lines

@incognitojam
incognitojam marked this pull request as ready for review November 21, 2026 19:32

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant