Skip to content

fix(ui): dismiss completed progress cards - #126102

Merged
vyctorbrzezowski merged 11 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/composer-task-dismiss
Aug 19, 2026
Merged

vyctorbrzezowski merged 11 commits into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/composer-task-dismiss

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

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 by web-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.put owner 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:

Completed progress card without a dismiss action in dark theme

Light:

Completed progress card without a dismiss action in light theme

Pre-fix reproduction: Blacksmith Testbox tbx_01m0bkc5wmm4q3nxxvw9p4mhrt, run https://github.com/openclaw/openclaw/actions/runs/32197448083. The browser flow timed out waiting for Dismiss progress card.

After

Dark, dismiss action visible:

Completed progress card with dismiss action in dark theme

Dark, after dismiss + rerender + reload:

Dark composer loaded after dismissal with draft preserved and card absent

Light, dismiss action visible:

Completed progress card with dismiss action in light theme

Light, after dismiss + rerender + reload:

Light composer loaded after dismissal with draft preserved and card absent

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:

pnpm test src/session-cards/progress-card-store.test.ts src/gateway/server-methods/progress-card.test.ts
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts
pnpm build
OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 node scripts/check-changed.mjs -- <20 changed paths>
pnpm ui:i18n:baseline
pnpm ui:i18n:verify
pnpm protocol:check
.agents/skills/autoreview/scripts/autoreview --mode branch --base 48c05d435e3ef2b3562f98f71e631bd212d74ed8 --engine claude --model claude-fable-5 --thinking max

Results:

No validation, browser, mock server, build, lint, typecheck, or test was run on the workstation.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Aug 19, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 19, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 19, 2026 00:44
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 18, 2026, 9:38 PM ET / August 19, 2026, 01:38 UTC.

ClawSweeper review

What this changes

This PR adds an accessible, revision-checked dismissal action for completed durable progress cards in the Control UI composer and session rail.

Merge readiness

⚠️ Needs maintainer review before merge - 4 items remain

Keep 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 progressCard.put request.

Priority: P3
Reviewed head: 142f8e94b38f88e0af11964f7bb0022e4e84b18e

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The proposed durable dismissal behavior has strong visual evidence, but the unresolved session-sharing gate blocks merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.
Evidence reviewed 5 items Dismiss availability omits session participation: The new callback requires connection, global operator-write access, and method advertisement, but does not require that the selected session permits participation.
Gateway enforces the missing per-session boundary: Both progress-card methods are mapped through session-sharing checks, so a restricted viewer’s write is rejected despite global operator-write scope.
Existing UI gate is available: The same render path already computes sessionParticipationBlocked and uses it to suppress other mutation callbacks.
Findings 1 actionable finding [P2] Hide dismissal for participation-blocked sessions
Security None None.

Live Verification

Command: pnpm openclaw --help

Result: PASS (completed)

runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126102-lcVECN/target$ pnpm openclaw --help
$ node scripts/run-node.mjs --help
pnpm openclaw --help
[openclaw] Building TypeScript (dist is stale: missing_build_stamp - build stamp missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 400.66 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 97.48 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

[tsdown-build] invocation 2/2 finished in 13.5s
[plugin-control-plane-loads] verified 36 built modules with native require and checked doctor closures
runtime-postbuild: 10 phases completed in 4147ms (slowest: built plugin control-plane loads 3400ms)

OpenClaw 2026.8.1 (142f8e9) — All your chats, one OpenClaw.

Usage: openclaw [options] [command]

Options:
  --container ‹name›   Run the CLI inside a running Podman/Docker container named ‹name› (default: env OPENCLAW_CONTAINER)
  --dev                Dev profile: isolate state under ~/.openclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)
  -h, --help           Display help for command
  --log-level ‹level›  Global log level override for file + console (silent|fatal|error|w
… output truncated …

Assertions:

  • PASS expect_output: Usage:

How this fits together

The 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]
Loading

Before merge

  • Hide dismissal for participation-blocked sessions (P2) - canDismissProgressCard checks only global write scope, while the Gateway applies session-sharing authorization to progressCard.put. A restricted viewer therefore sees a button that can only fail with the retry toast; include !sessionParticipationBlocked here and cover that viewer state.
  • Resolve merge risk (P1) - Restricted session viewers are shown a destructive-looking action that the Gateway rejects, producing only the retry toast.
  • Resolve merge risk (P1) - The bug fix has a reported production delta of +141 net lines across UI, protocol, and persistent-card paths; retain only growth required for the durable revision fence after the access repair.
  • Complete next step (P2) - This protected maintainer PR has one clear contributor-side correction; it should not enter an automated repair lane.

Findings

  • [P2] Hide dismissal for participation-blocked sessions — ui/src/pages/chat/chat-pane-render.ts:161-164
Agent review details

Security

None.

PR surface

Source +137, Tests +143, Other +4. Total +284 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 16 155 18 +137
Tests 3 143 0 +143
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 1 +4
Total 20 303 19 +284

Review metrics

Metric Value Why it matters
Production versus test delta production +141 net; tests +145 net This bug fix adds durable state, protocol, and UI behavior, so the production growth should remain justified after the access gate is corrected.

Stored data model

Persistent data-model change detected: persistent cache schema: ui/src/lib/session-progress-cards.ts, serialized state: src/session-cards/progress-card-store.test.ts, serialized state: src/session-cards/progress-card-store.ts, serialized state: ui/src/components/session-progress-card-controller.ts, serialized state: ui/src/components/session-progress-card.ts, serialized state: ui/src/e2e/session-progress-live-placement.e2e.test.ts, and 6 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Gate dismissal by session participation (recommended)
    Suppress the callback for participation-blocked sessions and add focused coverage that a restricted viewer cannot invoke the durable-card mutation.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add !sessionParticipationBlocked to dismissal availability and cover a restricted viewer alongside a permitted owner session.

Technical review

Best possible solution:

Keep the durable revision fence, gate the callback with !sessionParticipationBlocked, and prove both restricted-viewer suppression and permitted-owner dismissal before merge.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: render a participation-blocked viewer with global operator.write; the callback is supplied while the Gateway session-sharing layer rejects the matching write.

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:

  • [P2] Hide dismissal for participation-blocked sessions — ui/src/pages/chat/chat-pane-render.ts:161-164
    canDismissProgressCard checks only global write scope, while the Gateway applies session-sharing authorization to progressCard.put. A restricted viewer therefore sees a button that can only fail with the retry toast; include !sessionParticipationBlocked here and cover that viewer state.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fea219831940.

Labels

Label changes:

  • add merge-risk: 🚨 session-state: The PR adds a user-triggered mutation of durable per-session progress-card state and currently exposes it in sessions where that mutation is forbidden.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.

Label justifications:

  • P3: The remaining defect is limited Control UI friction rather than data loss, security bypass, or a blocked default workflow.
  • merge-risk: 🚨 session-state: The PR adds a user-triggered mutation of durable per-session progress-card state and currently exposes it in sessions where that mutation is forbidden.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR supplies after-fix dark and light Control UI screenshots showing the action and its absence after rerender/reload, plus linked Testbox browser evidence; reviewer-side network access could not retrieve the media anew.

Evidence

What I checked:

Likely related people:

  • steipete: Introduced the merged durable progress-card feature that this PR extends. (role: feature owner; confidence: high; commits: 7170a6231a4a; files: src/session-cards/progress-card-store.ts, ui/src/pages/chat/chat-pane-render.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Suppress dismissal for participation-blocked sessions and add focused viewer-versus-owner coverage.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-19T01:04:51.673Z sha 46892f8 :: needs changes before merge. :: [P2] Hide dismissal for participation-blocked sessions

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/composer-task-dismiss branch from 8818381 to 142f8e9 Compare August 19, 2026 01:32
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 19, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Land-ready proof for head 4ebe0713ef203e9e992eecc78029b576242a4813:

No validation, browser, mock server, build, lint, typecheck, or test ran on the workstation.

@vyctorbrzezowski
vyctorbrzezowski merged commit 2a469c1 into openclaw:main Aug 19, 2026
263 of 264 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/composer-task-dismiss branch August 19, 2026 02:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: completed progress card cannot be dismissed from the composer

1 participant