Skip to content

improve(ui): keep live tool purposes visible in activity summaries - #160881

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/improve-web-tool-narration-visibility
Sep 29, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/improve-web-tool-narration-visibility

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #160870

What Problem This Solves

The expandable web tool-activity row loses the agent’s useful purpose text between calls and falls back to counts, forcing users to open the log to follow the work.

User Impact

Users can glance at one expandable line to see the current operation. Within each disclosure, titles get a three-second reading window; rapid updates coalesce to the latest title. The last purpose remains between calls, and counts return immediately when the run ends. Failed/blocked outcomes and existing approval indicators stay visible.

Why This Change Was Made

Reuse prepared, public operation titles in the existing disclosure rather than adding another progress strip or model request. Scope the headline to the newest activity group in the current run, preserve full inline narration and disclosure state, and disable the small title animation for reduced motion.

Requested and design-approved by @steipete.

Work sessions

Evidence

  • Final exact-head CI passed for 51891775bd3b10e4f844faa537d1ea7e582f2609, including both repaired E2E suites and the enforced CI/security gate.

  • 274 focused activity, transcript, narration, nesting, and disclosure tests pass.

  • Production Control UI build passes, including its bundle-size guards.

  • Changed-check type, i18n, ratchet, coercion and dead-export gates passed. Two test-only lint issues were repaired; scoped oxlint/stylelint and all 25 headline/transcript tests then passed on the updated head.

  • Independent review completed; verified timing/outcome findings were repaired with regressions. The reading window deliberately resets at a new narration-bounded disclosure.

  • New regressions cover three-second holds, latest-pending replacement, combined completion/start updates, nested failed/blocked outcomes, expansion, final settlement, and session/run/connection changes. Two existing activity regressions moved out of the oversized message suite without removing coverage.

  • Focused single-worker wall time: headline suite 5.19s; transcript integration suite 6.21s. Test bodies use fake timers.

  • Real Control UI in Chromium with deterministic Gateway events: same prompt and live tool gap, baseline sources versus candidate; expansion continues updating, and final settlement restores counts. This is mock-Gateway boundary proof, not a live-provider end-to-end test.

  • The first CI run failed an existing avatar startup assertion and canceled remaining jobs through fail-fast. A controlled slow identity response reproduced the same assertion: the fixture froze an unanswered RPC, not an inline avatar payload. The correction waits for recorded startup responses before sampling; visibility timings, payload assertions, and timeouts stay unchanged.

  • The corrected fixture passed with the controlled slow response (22.59s test time) and the normal Gateway (16.15s test time, 43.06s wall). This used Blacksmith Testbox tbx_01m3netp5jf6frkskk95pyqvzw (environment run) and node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-loading-performance.real-gateway.e2e.test.ts. No diagnostic delay is committed. Independent review and scoped lint passed for this correction.

  • The next CI run passed both real-Gateway shards, including the avatar correction, but found a live-stream budget test still selecting the old 50 edits label. Its selector now uses the disclosure owner in both standalone and continuation layouts; exact row-count and eviction budgets are unchanged. All six runtime-budget cases pass (20.19s test time, 35.62s wall; the flood case is 8.30s) on Blacksmith Testbox tbx_01m3ngz844xhe6aecqbwg3sxd4 (environment run), using OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts. Independent review and scoped lint are clean.

Before

Before: the live gap shows only operation counts

After

After: the same expandable row retains the agent’s operation purpose

Hold current-run operation titles in the existing expandable row, coalesce rapid updates, and restore counts on settlement. Preserve nested outcomes and disclosure boundaries.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Sep 29, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 29, 2026 01:48
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 10:58 PM ET / September 29, 2026, 02:58 UTC (Revision 3).

ClawSweeper review

What this changes

The branch adds timed, run-scoped purpose text to the Control UI’s expandable chat activity row, with styling, documentation, and behavior tests.

Merge readiness

✅ Ready for maintainer review

Keep this PR open. Current main still loses the purpose text between tool calls, while the branch has direct visual proof of the requested behavior and no blocking defect found in review.

Priority: P2
Reviewed head: 51891775bd3b10e4f844faa537d1ea7e582f2609

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual proof and focused behavior coverage support a sound, bounded UI change.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): For the changed Control UI disclosure, the PR supplies inspected before and after screenshots from a real Chromium UI with deterministic Gateway events: the live gap changes from counts to a purpose title. Focused tests supplement that visible result; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): For the changed Control UI disclosure, the PR supplies inspected before and after screenshots from a real Chromium UI with deterministic Gateway events: the live gap changes from counts to a purpose title. Focused tests supplement that visible result; no stored-data contract changes.
Evidence reviewed 8 items Introduced UI behavior: The PR selects visible activity from the current run and renders its title in the existing disclosure, returning to a count summary when no live headline applies.
Headline timing and cleanup: The directive holds a title for three seconds, coalesces pending titles, shows failed or blocked outcomes immediately, and clears its timer on disconnect.
Current main still lacks the requested gap behavior: Main selects a title only while an operation is running; otherwise it renders the count summary. The new headline module is absent there.
Findings None None.
Security None None.

How this fits together

The Control UI turns Gateway tool activity into expandable rows in the chat transcript. This change selects a headline for the active run and changes what the row shows while tools run and after the run settles.

flowchart LR
A[Gateway tool activity] --> B[Chat transcript]
B --> C[Active run and newest group]
C --> D[Timed purpose headline]
D --> E[Expandable tool details]
C --> F[Settled count summary]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +201, Tests +544, Docs +10. Total +755 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 4 230 29 +201
Tests 5 678 134 +544
Docs 1 10 0 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 918 163 +755

Review metrics

Metric Value Why it matters
Net code delta production +201 lines, tests +544 lines The new timing and run-scoping behavior explains the production growth; most test growth checks observable chat behavior.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #160870
Summary: This PR explicitly targets the still-open request for a readable purpose in the web chat activity row.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the existing disclosure as the live activity surface, with readable current-run context and intact expansion, outcome, and approval indicators.

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

Not applicable as a new UI behavior. Current-main source and the inspected baseline screenshot show the count-only gap the request aims to improve.

Is this the best way to solve the issue?

Yes. The branch reuses the existing disclosure and prepared activity titles, with local presentation timing and run scoping instead of another progress surface.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves readability of an existing chat workflow without evidence of an urgent runtime failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): For the changed Control UI disclosure, the PR supplies inspected before and after screenshots from a real Chromium UI with deterministic Gateway events: the live gap changes from counts to a purpose title. Focused tests supplement that visible result; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. For the changed Control UI disclosure, the PR supplies inspected before and after screenshots from a real Chromium UI with deterministic Gateway events: the live gap changes from counts to a purpose title. Focused tests supplement that visible result; no stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. For the changed Control UI disclosure, the PR supplies inspected before and after screenshots from a real Chromium UI with deterministic Gateway events: the live gap changes from counts to a purpose title. Focused tests supplement that visible result; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: 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 (2 earlier review cycles)
  • reviewed 2026-09-29T02:04:17.488Z sha 7070556 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-29T02:35:04.608Z sha e8fda7c :: needs maintainer review before merge. :: none

Preserve visibility measurements and payload assertions while waiting for recorded agent responses before freezing the startup sample. Delayed real-Gateway identity proof reproduces the original assertion and passes with this correction.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 29, 2026 02:31
Preserve the exact retained-row and eviction budgets while allowing purpose headlines and continuation presentation in the live tool flood.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 8426973 into main Sep 29, 2026
93 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/improve-web-tool-narration-visibility branch September 29, 2026 03:06
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…penclaw#160881)

* improve(ui): keep live tool purposes visible in activity summaries

Hold current-run operation titles in the existing expandable row, coalesce rapid updates, and restore counts on settlement. Preserve nested outcomes and disclosure boundaries.

Co-authored-by: steipete <[email protected]>

* test(ui): align activity headline fixtures with lint rules

Co-authored-by: steipete <[email protected]>

* test(ui): await startup avatar responses before sampling

Preserve visibility measurements and payload assertions while waiting for recorded agent responses before freezing the startup sample. Delayed real-Gateway identity proof reproduces the original assertion and passes with this correction.

Co-authored-by: steipete <[email protected]>

* test(ui): select live activity disclosures by their owner

Preserve the exact retained-row and eviction budgets while allowing purpose headlines and continuation presentation in the live tool flood.

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

[Feature]: Show readable live purposes in the web tool-activity row

1 participant