Repository navigation
feat(ui): show latest commentary while agents work - #156340
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. |
|
@clawsweeper automerge |
|
🦞🧹
Draft PRs stay fix-only until GitHub marks them ready for review. Pause with Automerge progress:
Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 23, 2026, 8:37 AM ET / 12:37 UTC (Revision 7). ClawSweeper reviewWhat this changesThe Control UI displays the active agent’s latest commentary as temporary working status and clears retained file drafts when an accepted conflict reload becomes read-only. Merge readiness✅ Ready for maintainer review Keep open: the feature remains useful and absent from current main, with no actionable correctness or security findings. The recorded approval resolves the previous pause/resume decision. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI receives completed commentary through existing chat events and history, then projects it into the active conversation’s working indicator. Canonical messages remain available for history and reconnect recovery. flowchart TD
A[Completed commentary events] --> C[Existing chat state]
B[Transcript history] --> C
C --> D[Select latest active-run commentary]
D --> E[Apply approval and startup priority]
E --> F[Temporary working status]
C --> G[Preserved transcript history]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +94, Tests +199, Docs +7. Total +300 across 18 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep commentary as a bounded, run-scoped view of existing chat state, preserving canonical history, status priority, and the existing draft lifecycle. Do we have a high-confidence way to reproduce the issue? Not applicable to the primary feature request: current-main source and inspected before/after screenshots establish the presentation difference. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes. The patch reuses normalized commentary and existing presentation and draft owners without adding configuration, rewriting transcripts, or creating a competing status source. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 904f9c03a317. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
@clawsweeper automerge Maintainer resume and bounded repair request for exact head The media-only hold is resolved by fresh independent evidence: both original before/after image URLs in the updated PR body return anonymous HTTP 200, The remaining checks-ui (1/3) failure exposes a prerequisite UI bug, not a commentary regression. On this exact head, CI-pinned Bun Root cause: the read-only sidebar search fixture with mixed LF/CR/CRLF is normalized by Move-aware blame traces the listener to #104757 ( Please repair the draft producer at the active editable-session boundary. Preserve reload guards, teardown semantics, Save/Discard behavior, and the existing assertions; do not hide the failure with cleanup, retries, or weaker tests. Verify the original four-file order, then run the required changed-surface CI and fresh exact-head review. Preserve the commentary feature and the no-new-config requirement. The hosted controller retains sole source-mutation ownership. |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper stop UI-only control-state reconciliation at The latest exact-head review resolves the original screenshot concern and requests the editable-session draft repair documented in #156340 (comment). That repair, fresh review, and required CI remain necessary. Diagnostics work in #156343 is separate and must continue. |
|
🦞✅ I added |
1b37ddc to
994ea93
Compare
|
@clawsweeper re-review Please review exact head Main’s Source repair remains intentionally paused while fresh CI and this read-only review finish. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Please review exact head This is a read-only exact-head review request. Source repair remains paused while fresh CI runs. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper automerge Explicit maintainer decision: resume landing for reviewed head Current-head CI run https://github.com/openclaw/openclaw/actions/runs/35851547781 completed successfully, including |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper stop Record a fresh durable pause for this PR before the next native landing resume. The previous resume command was skipped because the human-review pause remained active, and its receiver failed while publishing the control ledger. No source repair is requested. Reviewed head |
|
🦞✅ I added |
|
@clawsweeper automerge Explicit maintainer decision: resume landing for exact reviewed head Both required |
|
@clawsweeper stop Pause source mutation for this PR while the maintainer resolves the newly confirmed conflict with main |
00b97bc to
079c647
Compare
|
@clawsweeper re-review Read-only exact-head review of Keep source repair paused while fresh exact-head CI qualifies this head. This request does not authorize a cloud repair or another source mutation. The PR body distinguishes prior focused proof from the current CI gate. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* feat(ui): show latest commentary while agents work * test(ui): preserve commentary fixture tuple shape * test(ui): retain historical commentary interaction coverage * test(ui): preserve commentary recovery and scroll coverage * fix(web): keep retained file drafts owned by active edits * refactor(web): consolidate file line navigation guards
Related: #156330
What Problem This Solves
The Control UI working indicator stays generic while supported harnesses already emit useful commentary about the current work.
User Impact
The latest completed commentary appears as transient status, updates as work progresses, and clears when the run ends. Approval and startup messages retain priority. Transcript history and the existing Keep commentary preference continue to work. No configuration or model allowlist is added.
The verification pass also exposed a file-preview draft bug. Reloading a conflicted file that becomes read-only now settles its retained draft, so an invisible draft cannot block application reload.
Why This Change Was Made
Reuse the normalized commentary already delivered to chat. Select only the active run, preserve the durable/live handoff, and project the current preamble out of the live transcript without changing canonical messages or hiding final-answer blocks in mixed envelopes.
The prerequisite repair uses main’s existing
captureFileEditorDraftowner. Reload synchronization is not an active edit, and an accepted noneditable reload releases the old retained draft before removing edit capability. Concurrent edits during a save remain protected. A redundant line-navigation guard is consolidated to keep the panel within its existing line cap.Evidence
079c6477f777b06af197ffa61364eec500cdcd8c, rebased on frozen main80930af448ebabc84174146b56bc106d37fab3b4. Independent review confirmed all four original commentary commits and the scroll-guard consolidation are patch-identical. The conflict resolution preserves main’s normalized editor equality, six-case search matrix, complete undo test, and two-case noneditable reload test. Only two distinct mounted-panel reload-permission assertions remain above main’s browser coverage; the shared scroll-ownership fixture fix is already upstream.994ea931137465b972bb2e89e934dd8ec82d96efand frozen dependencies were verified on Testbox. All 37 browser tests passed in the original same-worker order: sidebar file view → HTML file → image lightbox → file drafts. This used CI-pinned Bun3ff0efc82and Playwright1.63.0, completed in 12.62 seconds, and reported zero unhandled errors. Final UI typecheck, targeted lint (zero warnings/errors), formatting, line-cap ratchet, and whitespace checks passed.414782450952a196bbb64b1605a458c2531c47b6: MessagePhase, AgentMessage, and phase-free deltas.image/png, 1280×900. Visual inspection confirmed the latest commentary appears once as status and older commentary remains in history. ClawSweeper subsequently inspected them and resolved the earlier media concern.test/tsconfig/tsconfig.core.test.ui-chat.jsonpassed on Node 24.19.0 with frozen dependencies. The fixture, controller, all direct test-helper inputs, and relevant configs are identical in both commentary PRs; fresh CI still qualifies each final head independently.Before:
After:
The elapsed time in both captures comes from the existing mock fixture’s synthetic start timestamp. Fresh exact-head CI and ClawSweeper review remain the merge gates.
Maintainer Landing Disposition
Exact head
079c6477f777b06af197ffa61364eec500cdcd8cis approved for canonical guardedscripts/prsquash landing once its current required CI gates pass. The completed exact-head ClawSweeper review has no correctness or security finding and no remaining rank-up move; its sole pause/resume decision is resolved by this approval. Hosted source repair and automerge remain paused only to preserve one landing owner. No source change or additional review is requested.