Repository navigation
fix(ui): prioritize the conversation during chat startup - #148483
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 5:13 PM ET / 21:13 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR defers automatic task, suggestion, progress, group, and Inbox reads until chat is ready, preserves explicit actions, and coalesces pending task updates. Merge readiness✅ Ready for maintainer review This remains a useful, distinct follow-up to the earlier startup scheduling repair. The prior merge-conflict blocker is resolved, and this review found no actionable introduced defect. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI loads conversation history and supporting information from the Gateway. Its startup coordinator and chat pane determine when background reads can begin and whether delayed results still belong to the displayed conversation. flowchart TD
A[Open conversation] --> B[Load selected history]
B --> C[Transcript ready and painted]
C --> D[Automatic supporting reads]
E[Explicit user action] --> D
D --> F[Check connection and conversation]
F --> G[Update panels and Inbox]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +175, Tests +801, Docs +2. Total +978 across 29 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep conversation-first scheduling in the existing hydration owners while preserving explicit actions and freshness across reconnects and hidden panes. Do we have a high-confidence way to reproduce the issue? Yes, from source: holding initial chat history leaves main's optional Inbox and supporting reads eligible to start early; the mounted-browser regression exercises that boundary. This review did not execute it. Is this the best way to solve the issue? Yes. Extending the existing bootstrap and after-paint owners avoids competing schedulers, and explicit actions continue through the same data owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c5695c7579dc. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
c3fa55b to
6cd6eb2
Compare
Optional tasks, suggestions, progress, groups and Inbox reads wait for initial history. Explicit actions remain immediate; queued reads retain their connection, session and retry ownership. Coalesce repeated task events per identity while preserving deletion/recreation, restore boundaries and failed-snapshot recovery. Validation: 96 focused tests, 19 mocked Control UI E2E cases, changed-file checks, and independent P2 review.
6cd6eb2 to
ba35cdf
Compare
|
Merged via squash.
|
…8483) * fix(ui): prioritize the conversation during chat startup Optional tasks, suggestions, progress, groups and Inbox reads wait for initial history. Explicit actions remain immediate; queued reads retain their connection, session and retry ownership. Coalesce repeated task events per identity while preserving deletion/recreation, restore boundaries and failed-snapshot recovery. Validation: 96 focused tests, 19 mocked Control UI E2E cases, changed-file checks, and independent P2 review. * test(ui): seed accepted history for global progress cards * test(ui): await startup when exercising failed-session retry * test(ui): separate initial and reconnect hydration
A mounted pane can still be waiting for subscription and snapshot admission. Wait for its captured startup request before releasing the fixture, and scope the deferral so an earlier pane cannot consume it. Preserve every existing assertion and all five reconnect rounds; production behavior is unchanged. The original readiness assumption dates to 02d8a65 (#148483), not the latest hourly window. Current-main proof reproduced the missing deferred request. The corrected file passes all five rounds in 64.48s wall including build-lock contention; a held-admission diagnostic also passes in 34.03s. The startup/recovery siblings pass 10 cases. Owning types and typed/boundary lint pass; no retries, timeout changes, or suppressions were added.
A mounted pane can still be waiting for subscription and snapshot admission. Wait for its captured startup request before releasing the fixture, and scope the deferral so an earlier pane cannot consume it. Preserve every existing assertion and all five reconnect rounds; production behavior is unchanged. The original readiness assumption dates to 13310a9 (openclaw#148483), not the latest hourly window. Current-main proof reproduced the missing deferred request. The corrected file passes all five rounds in 64.48s wall including build-lock contention; a held-admission diagnostic also passes in 34.03s. The startup/recovery siblings pass 10 cases. Owning types and typed/boundary lint pass; no retries, timeout changes, or suppressions were added.
Related: #147845
What Problem This Solves
When opening a conversation, background task, progress, group, and Inbox reads start before the selected transcript is ready.
User Impact
The selected conversation gets its initial loading phase before automatic extras. Users can still type and queue messages, open Tasks, or act on a suggestion while history loads. Repeated task updates no longer accumulate in hidden panes.
Why This Change Was Made
Defer seven automatic requests: the active and recent task snapshots, task suggestions, progress card, group list and defaults, and Inbox. Shared groups and Inbox follow the existing history-ready coordinator; pane-local extras follow transcript paint. Explicit actions use the same owners, while composer/outbox, voice, and presence readiness are preserved.
Queued reads retain their connection, session, request, and retry ownership through failures and hide/resume. Task events coalesce per identity using the existing freshness rules, retaining deletion/recreation and restore boundaries plus failed-snapshot recovery. No task identities are dropped to enforce a retention cap.
Evidence
Both screenshots show the same stage with initial history held. The composer remains available while automatic extras wait.
Before:
After: