Repository navigation
fix(ui): dismiss completed progress cards - #126102
vyctorbrzezowski merged 11 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 18, 2026, 9:38 PM ET / August 19, 2026, 01:38 UTC. ClawSweeper reviewWhat this changesThis PR adds an accessible, revision-checked dismissal action for completed durable progress cards in the Control UI composer and session rail. Merge readinessKeep open: the previous P2 blocker remains on the current head. A session-sharing viewer with global operator-write access still receives a dismiss button, but the Gateway rejects its Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Control UI loads each session’s durable progress card through Gateway methods and renders it beside the chat composer or in the session rail. Gateway writes are session-sharing-authorized and persist the card state in the agent SQLite database. flowchart LR
A[Agent progress card] --> B[Durable session-card store]
B --> C[Gateway progress-card API]
C --> D[Session-sharing authorization]
D --> E[Control UI card cache]
E --> F{Completed and permitted?}
F -->|Yes| G[Dismiss action]
F -->|No| H[Read-only card]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +137, Tests +143, Other +4. Total +284 across 20 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep the durable revision fence, gate the callback with Do we have a high-confidence way to reproduce the issue? Yes, from source: render a participation-blocked viewer with global Is this the best way to solve the issue? No. The owner-level conditional clear is appropriate, but the UI must reuse the established session-participation gate before exposing the action. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fea219831940. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
8818381 to
142f8e9
Compare
|
Land-ready proof for head
No validation, browser, mock server, build, lint, typecheck, or test ran on the workstation. |
|
Merged via squash.
|
* test(ui): cover completed progress card dismissal * test(ui): capture both completed card themes * fix(ui): dismiss completed progress cards * style: format progress card dismissal * test(ui): assert visible dismissal lifecycle * test(ui): wait for reloaded composer proof * refactor(ui): reuse progress card action styles * chore(protocol): refresh Swift progress card params * style(ui): format progress card test * fix(ui): hide progress dismissal from viewers * test(ui): use Vitest viewer assertion
Closes #126081
What Problem This Solves
Fixes an issue where users with a completed session progress card would have the card remain pinned above the Control UI composer with no way to dismiss it.
Why This Change Was Made
Completed checklist cards now expose one discreet, accessible dismiss action in their canonical composer/rail renderer. Dismissal reuses the progress-card owner's replace/clear path with an expected revision: the store clears only the matching terminal card, keeps revisions monotonic across clears, and preserves a newer concurrent update.
The action does not alter transcript entries, cancel a run, or mutate background tasks. Active and note-only cards remain visible, read-only viewers do not receive the action, and failures keep the card visible with a retryable toast.
Root cause: durable progress cards were intentionally retained per session, but their renderer exposed only expand/collapse and the owner had no user-initiated conditional clear. A browser-only hide would reappear after reload and could not safely arbitrate concurrent updates.
Provenance: the durable progress-card owner and composer placement were introduced by Peter Steinberger (@steipete) in #125125, commit
7170a6231a4a, merged on 2026-08-17 byweb-flow. The missing dismiss affordance was carried forward from that initial feature.Production LOC: +161/-19 (net +142). Tests: +189/-0. The production growth adds the explicit accessible action, owner-level revision fencing/tombstone lifecycle, shared composer/rail wiring, authorization and session-participation gating, failure feedback, protocol input, and the regenerated Swift binding needed for the new capability. A separate dismiss RPC and duplicate renderer test were removed during implementation; the existing
progressCard.putowner remains canonical.User Impact
Users can dismiss a completed progress card from the composer or session rail. The card stays gone across rerender and reload, while the composer draft, transcript, completed work, runs, and tasks remain unchanged. A stale dismiss cannot erase a newer card revision.
Evidence
Before
Dark:
Light:
Pre-fix reproduction: Blacksmith Testbox
tbx_01m0bkc5wmm4q3nxxvw9p4mhrt, run https://github.com/openclaw/openclaw/actions/runs/32197448083. The browser flow timed out waiting forDismiss progress card.After
Dark, dismiss action visible:
Dark, after dismiss + rerender + reload:
Light, dismiss action visible:
Light, after dismiss + rerender + reload:
All captures were downloaded and inspected at full frame. Final rebased browser/owner proof: Blacksmith Testbox
tbx_01m0btc6gjh2x7hth0j3vgwk8g, run https://github.com/openclaw/openclaw/actions/runs/32205308933.Commands executed exclusively on remote Testboxes:
Results:
check:changed: passed forcore,coreTests, andui, including format, i18n, tsgo, lint/stylelint, deadcode, schema/version, and import-cycle guards.tbx_01m0btc6gjh2x7hth0j3vgwk8g, run https://github.com/openclaw/openclaw/actions/runs/32205308933; Swift generated output is current and Kotlin remained unchanged.mainindependently fixed the two unrelated UI E2E failures observed before the conflict rebase in fix(ui): keep New Session folder picker usable while menus close #126032; rebased activity/New Session proof passed 6/6 and no duplicate repair remains in this PR.progressCard.put; 3/3 passed on Testboxtbx_01m0bw2t6fj0b4vmph96xg69a8, run https://github.com/openclaw/openclaw/actions/runs/32207101011.No validation, browser, mock server, build, lint, typecheck, or test was run on the workstation.