Skip to content

feat(ui): add task progress disclosure preference - #132137

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/task-progress-collapsed-default
Aug 29, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/task-progress-collapsed-default

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Active task progress currently expands automatically in the Control UI composer, and operators have no preference for keeping the compact summary visible instead.

Why This Change Was Made

Adds a browser-local Collapse task progress by default toggle under Settings → Appearance → Chat. The toggle defaults off, preserving current main behavior; when enabled, active task progress starts collapsed until the operator opens it. Native disclosure state still preserves later manual toggles across progress rerenders.

The preference is presentation-only, so it stays out of openclaw.json and synced Gateway preferences. This adds one default-off browser-local preference with no migration requirement.

User Impact

Operators can choose between the existing automatically expanded task checklist and a compact task-progress summary. Existing users see no behavior change unless they enable the setting.

AI-assisted implementation; the behavior and proof were reviewed by the PR authoring agent.

Evidence

Default off (current main behavior)

Collapse task progress by default toggle off

Enabled

Collapse task progress by default toggle on

The screenshots come from the production-built Control UI connected to an isolated real Gateway. The live flow verified defaultOff: true and enabledAfterClick: true.

Validation:

  • pnpm --dir ui test --run src/app/settings.preferences.node.test.ts src/components/session-progress-card.test.ts src/pages/config/settings-search.test.ts src/pages/config/view.browser.test.ts — 146 passed
  • OPENCLAW_CAPTURE_UI_PROOF=1 pnpm exec vitest run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts ui/src/e2e/appearance-settings-defaults.e2e.test.ts — 12 passed
  • node scripts/check-changed.mjs -- <17 changed UI paths> — passed formatting, i18n, dead-code, typecheck, and lint lanes
  • pnpm ui:build — passed, including Control UI performance budgets
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted — clean, no accepted/actionable findings
  • git diff --check — passed

Production LOC: +44/-2. Tests: +185/-0.

@clawsweeper

clawsweeper Bot commented Aug 28, 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 size: XS maintainer Maintainer-authored PR labels Aug 28, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 5:39 PM ET / 21:39 UTC.

ClawSweeper review

What this changes

The branch adds a browser-local Control UI setting that starts an incomplete composer task-progress disclosure collapsed when enabled.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for maintainer handling. The branch is a focused, default-off browser-local setting with no blocking correctness or security finding; the recorded sponsorship resolves the feature-direction concern, while member authorship and the protected maintainer label preclude automated closure.

Priority: P3
Reviewed head: 04850bdbf5fa3743b691700cc0f9cd3405427819
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered implementation with no supported correctness or security defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this member-authored PR. The included source coverage drives the built Control UI through the setting, reload, collapsed disclosure, and manual expansion; the linked screenshots could not be inspected from this reviewer environment because GitHub DNS was unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this member-authored PR. The included source coverage drives the built Control UI through the setting, reload, collapsed disclosure, and manual expansion; the linked screenshots could not be inspected from this reviewer environment because GitHub DNS was unavailable.
Evidence reviewed 7 items Default and persistence boundary: The introduced preference defaults to false, rejects non-boolean persisted values, and serializes only the true opt-in, preserving existing browser behavior by default.
Owner-path wiring: The chat pane reads the browser setting, the composer forwards it, and the disclosure owner uses it only for its initial open state while preserving later native disclosure toggles.
Not Gateway-synced: The synchronized-preference registry remains an explicit finite map and does not include the new browser-local setting, so its change listener cannot write it to Gateway configuration.
Findings None None.
Security None None.

How this fits together

The Control UI stores per-browser presentation preferences and passes them from the chat pane through the composer to the task-progress disclosure. This changes the disclosure’s initial state without changing Gateway-synced preferences or task execution.

flowchart LR
  A[Appearance setting] --> B[Browser-local settings]
  B --> C[Chat pane]
  C --> D[Chat composer]
  D --> E[Task-progress disclosure]
  E --> F[Operator view]
Loading

Decision needed

Question Recommendation
Should the recorded sponsorship be accepted to land this new browser-local Control UI setting? Accept the sponsored setting: Merge the default-off browser-local preference, which preserves existing behavior and has focused coverage.

Why: The implementation is sound, but this PR intentionally adds a user-facing setting and carries the protected maintainer label.

Before merge

None.

Agent review details

Security

None.

PR surface

Source +41, Tests +185. Total +226 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 11 43 2 +41
Tests 6 185 0 +185
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 228 2 +226

Review metrics

Metric Value Why it matters
Production versus test delta production +43/-2; tests +185/-0 The modest production growth is directly required to expose and carry one default-off browser-local setting; the larger test delta covers persistence, visibility, and disclosure behavior.

Technical review

Best possible solution:

Land the focused browser-only preference while retaining the existing expanded default and the native disclosure’s per-session manual-toggle ownership.

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

Not applicable: this PR adds a new optional presentation setting rather than fixing a reported failure.

Is this the best way to solve the issue?

Yes. It reuses the existing browser-local settings store and native disclosure lifecycle; syncing the preference through Gateway or adding runtime configuration would broaden scope without serving the stated per-browser use case.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P3: This is an optional presentation setting whose default preserves all existing operator behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this member-authored PR. The included source coverage drives the built Control UI through the setting, reload, collapsed disclosure, and manual expansion; the linked screenshots could not be inspected from this reviewer environment because GitHub DNS was unavailable.

Evidence

What I checked:

  • Default and persistence boundary: The introduced preference defaults to false, rejects non-boolean persisted values, and serializes only the true opt-in, preserving existing browser behavior by default. (ui/src/app/settings.ts:191, 04850bdbf5fa)
  • Owner-path wiring: The chat pane reads the browser setting, the composer forwards it, and the disclosure owner uses it only for its initial open state while preserving later native disclosure toggles. (ui/src/components/session-progress-card.ts:318, 04850bdbf5fa)
  • Not Gateway-synced: The synchronized-preference registry remains an explicit finite map and does not include the new browser-local setting, so its change listener cannot write it to Gateway configuration. (ui/src/app/server-prefs-state.ts:66, 04850bdbf5fa)
  • Focused coverage: The added coverage checks the default, boolean persistence, settings-row interaction, search discoverability, reload behavior, collapsed disclosure, and manual expansion after rerender. (ui/src/e2e/session-progress-live-placement.e2e.test.ts:137, 04850bdbf5fa)
  • Current-main necessity: The fetched current-main snapshot has no task-progress-collapse setting or disclosure parameter, so the requested capability is not already implemented there. (ui/src/app/settings.ts:190, caec1885b7de)
  • Area history: The current disclosure module appears in the available history as a full-file addition by Peter Steinberger; its recorded parent is unavailable locally, so this is routing evidence rather than a verified line-introduction claim. (ui/src/components/session-progress-card.ts:96, d8458b6984b5)

Likely related people:

  • VACInc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (5 earlier review cycles)
  • reviewed 2026-08-28T21:35:51.371Z sha fac4ddf :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T22:56:04.782Z sha a8175f4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T19:01:52.994Z sha e2cdfcd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T21:21:02.439Z sha 04850bd :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T21:27:20.584Z sha 04850bd :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot force-pushed the fix/task-progress-collapsed-default branch from fac4ddf to a8175f4 Compare August 28, 2026 22:48
@roboclaw-bot roboclaw-bot changed the title fix(ui): collapse task progress by default feat(ui): add task progress disclosure preference Aug 28, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 28, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/task-progress-collapsed-default branch from a8175f4 to e2cdfcd Compare August 29, 2026 18:54
@roboclaw-bot
roboclaw-bot force-pushed the fix/task-progress-collapsed-default branch from e2cdfcd to 04850bd Compare August 29, 2026 21:14
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Maintainer sponsorship is explicit: @VACInc requested this browser-local setting and is a co-author on the exact head. The setting remains default-off and outside Gateway-synced configuration.

Exact-head CI is now fully green on 04850bdbf5fa3743b691700cc0f9cd3405427819.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 29, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Maintainer decision record (relayed by roboclaw-bot): Vito / @VACInc, the direct requester in the authoritative OpenClaw team conversation for this PR, explicitly approved proceeding with this browser-local, default-off setting after the approval requirement was explained.

This records the operator decision; it is not a comment posted under or impersonating the VACInc GitHub identity.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 29, 2026
@roboclaw-bot
roboclaw-bot merged commit 98816b3 into main Aug 29, 2026
158 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the fix/task-progress-collapsed-default branch August 29, 2026 21:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant