Repository navigation
fix(ui): keep submitted prompts visible across session startup - #152241
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 18, 2026, 7:56 PM ET / 23:56 UTC (Revision 2). ClawSweeper reviewWhat this changesThe Control UI keeps submitted prompts and attachments visible through session startup, reconnects, navigation failures, and delayed history, with matching recovery controls, tests, and documentation. Merge readiness✅ Ready for maintainer review This remains useful beyond the merged cloud-startup fix: current main still has the display gaps addressed here. No blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI carries submitted input from New Session, suggested tasks, and Skill Workshop into chat. The Gateway owns execution and delivery; browser presentation retains the prompt until authoritative input or history replaces it. flowchart LR
A[Submitted prompt and attachments] --> B[Browser submission display]
A --> C[Gateway session startup]
B --> D{Connection owner still matches?}
D -->|Yes| E[Visible pending prompt]
D -->|No| F[Retire private display]
C --> G[Authoritative input or history]
G --> E
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +808, Tests +1178, Docs +2. Total +1988 across 67 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep display custody with the existing submission owners until authoritative chat content arrives, while preserving current send, retry, cleanup, and credential boundaries. Do we have a high-confidence way to reproduce the issue? Yes, from source: interrupting the current-main startup connection suppresses its retained prompt, and accepted recovery can retire presentation before the pane receives history. This review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes. The patch extends existing presentation and reconciliation owners, keeps navigation recovery separate from creation, and adds targeted lifecycle coverage without changing persisted formats or Gateway RPCs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e623bcd437da. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Keep submitted text and attachments visible through reconnects, background starts, navigation failures, task suggestion acceptance, and Workshop revision handoffs. Retain interrupted temporary-session prompts with their actual status and reconcile accepted input with canonical history without duplicate display. Preserve execution, recovery, credential, and storage ownership. Open session retries navigation without creating another session or sending another prompt. Follow-up to #152024.
Keep native-terminal starts busy while showing the submitted prompt. Preserve valid Chat rendering before context is bound, and bring unit fixtures and browser assertions onto the submitted-prompt visibility contract.
fd13307 to
7c1b180
Compare
|
Merged via squash.
|
* commit 'ca69b4d25dfcd488acc6ba1d878e4b4252f40cd2': (325 commits) perf(gateway): streamline config reload comparison (#152279) fix(xai): reject invalid UTF-8 OAuth responses (#111737) fix(release): accept waived advisory performance evidence for stable publication (#152290) fix: deliver watcher results while other sessions are busy (#152287) perf(media): reuse attachment filename classification (#152274) refactor(build): reuse forwarded option scanning (#152293) chore(diagnostics-otel): revert unapproved duration-bucket merge (#152292) fix: stop chat media reads after access changes (#152219) fix(test): use Gateway WebSocket transport in network fixtures (#152143) improve: retain quota refresh evidence from successful CI runs (#152173) improve(gateway): reduce memory used by session selection (#152260) perf(agents): use keyed subagent capability lookups (#152263) refactor(matrix): centralize media metadata assembly (#149128) chore(ui): refresh control ui locales (#152276) feat: open Crabbox apps beside the conversation (#152094) refactor: simplify worker and model fallback handling (#152268) perf(codex): reconcile session catalogs incrementally (#152257) fix(ui): keep submitted prompts visible across session startup (#152241) perf(sessions): move automatic maintenance database work to workers (#148630) fix: preserve reply metadata through outbound preparation (#152231) ...
…law#152241) * fix(ui): keep submitted prompts visible across session startup Keep submitted text and attachments visible through reconnects, background starts, navigation failures, task suggestion acceptance, and Workshop revision handoffs. Retain interrupted temporary-session prompts with their actual status and reconcile accepted input with canonical history without duplicate display. Preserve execution, recovery, credential, and storage ownership. Open session retries navigation without creating another session or sending another prompt. Follow-up to openclaw#152024. * fix(ui): preserve pending status and pre-context rendering Keep native-terminal starts busy while showing the submitted prompt. Preserve valid Chat rendering before context is bound, and bring unit fixtures and browser assertions onto the submitted-prompt visibility contract.
What Problem This Solves
Fixes submitted prompts disappearing during new-session reconnects, background starts, navigation failures, and delayed history handoffs.
Related: #152024.
User Impact
The submitted text and attachments stay visible with their current status. Successful background starts and failed navigation offer Open session without creating or sending again. Suggested tasks retain their instructions through acceptance, and Skill Workshop revisions remain visible while chat history loads.
An interrupted Incognito startup keeps a read-only prompt after confirmed temporary-session cleanup. This copy stays in memory in the current browser tab and credential scope.
Why This Change Was Made
The submission and recovery owners already knew the prompt, but some views cleared it before the next view had received the authoritative message. Preserve display custody across that handoff and ordinary reconnects, then reconcile it with the Gateway's input receipt or transcript without duplication. Execution, retry, cleanup, storage, and credential boundaries remain with their existing owners. Authoritative session resets or replacements retire stale display; ordinary cache refreshes preserve it. Settled first-turn entries release message and attachment bytes while keeping bounded in-memory identity to reject late duplicate handoffs.
Evidence
Passed 21,100 UI unit tests (four pre-existing skips) and 91 production-bundle browser tests. These cover reconnects, background starts, navigation retry without replay, canonical receipt ordering, Incognito cleanup, native-terminal starts, task suggestions, Workshop revisions, and reset/replacement ownership.
Regressions reproduced the original prompt loss and the accepted-send/reconnect, cleanup-status, and stale-handoff races before their repairs. The first CI run also exposed incomplete older fixtures, pre-context Chat rendering, and outdated native/reconnect expectations; those were repaired and verified by the full UI suites and fresh independent review.
Changed-file guards, UI and test typechecks, i18n verification, lint, UI styles, and the production UI build passed. Real Chrome interaction against a synthetic Gateway confirmed immediate prompt display and reconnect visibility. No live Gateway deployment is part of this PR.
The images below are inspected captures of the actual UI using synthetic data.
Background start
Reconnect during creation
Created session with failed navigation