Skip to content

improve: show readable agent and chat tool activity - #204399

Merged
vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/chat-tool-agents
Nov 25, 2026
Merged

vyctorbrzezowski merged 11 commits into
mainfrom
brzezowski/chat-tool-agents

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Chat tool rows show internal names such as Tool Describe and can display a list limit as though it were the number of results.

User Impact

People can tell when an agent checks a goal, lists chats, or reads tool instructions. Goal rows use the same glyph as the goal indicator.

Why This Change Was Made

Use the existing chat renderer and localized operation labels. Keep session names and delivery receipts authoritative. The MCP description uses the book from the board; custom MCP service branding is separate.

This consolidates the Agents changes from #203975 and #203987 in the first layer of the seven-area tool-call presentation series.

Risk and coverage

Control UI presentation only. Tool execution, permissions, and retained arguments and results are unchanged.

Evidence

Same recorded tool calls in the built Control UI, rendered against synthetic Gateway history. No external tools or services were called. The Control UI build, type check, targeted lint, English catalog verification, and 51 focused tests passed. Local autoreview (P0–P2) found no actionable issues after review and repair of the staged patch.

The operation catalog loads with expanded tool rows. See the paired measurements under Chat startup payload for the size regression and its fix; the budget was not changed.

Agents comparison board

Clean comparison

Before After
Before: Agents tool activity After: Agents tool activity

Annotated comparison

Before After
Before: highlighted row After: highlighted row

Landing verification

Queued and suppressed messages no longer appear as sent. The row distinguishes a sent message whose reply timed out from a send whose delivery remains unconfirmed. The English operations catalog now changes the version of its cached assets when the labels change.

On 517b1f173603, 156 focused Node/jsdom tests passed, including the mounted tool rows and the Vite source-hash contract. UI typechecking, English catalog verification, and focused lint and formatting passed. Independent local review of 5e5ecba4..517b1f17 found no actionable P0–P2 issues. The existing images above cover goal, chat list, and tool instructions; they do not show the receipt cases. No new browser or Gateway session was used for this repair.

Skills catalog: last row after scrolling

On the previous head, hosted WebKit placed the last skill below the viewport. Commit 7b24d4a6 keeps the catalog at the end when rows change height after the user scrolls there; elsewhere it keeps the existing scroll behavior. The browser regression requires the last skill to stay visible without a second scroll.

In a controlled jsdom reproduction on base ffa7d745, the last skill was outside a 500px viewport in both event orders (534px and 678px). With the fix it was inside (422px) in both; focus and mid-list scrolling were preserved. On 7b24d4a6, 125 focused tests, UI typechecking, and touched lint and formatting passed. Independent review of the delta found no actionable P0–P2 issues. This simulation does not establish the cause of the previous native failure or prove WebKit behavior; the replacement-head CI run supplies the browser result.

Chat startup payload

The previous public head, 7b24d4a6, passed the hosted WebKit check. It failed the paired startup-size check: 1,336,184 → 1,336,842 gzip bytes for chat (+658; 21 requests).

Commit 4cd62247 keeps tool names and icons available at startup but leaves per-action details for the code that actually renders them. All 77 complete tool specs serialize identically to the previous head, including the 12 per-action tables. The generated native-client catalog is unchanged. No labels, receipts, visuals, or budgets changed in this fix.

In paired production builds against PR merge base 5e5ecba4 (Node 26.13.1, Vite 8.3.5), initial chat JavaScript fell from 1,335,587 to 1,334,873 gzip bytes (−714; 21 requests both times). New-conversation JavaScript fell from 819,747 to 818,732 bytes (−1,015; 17 requests both times). The local comparison passed. The existing total-CSS warnings were not hidden: total gzip fell by 21 bytes and raw bytes were unchanged. This is a different base and toolchain from the hosted comparison above.

The agent and channel tool-display tests, 67 UI tests, core/UI/scripts type checks, native catalog check, targeted lint/format, and diff check passed. Independent review of this incremental change reported no actionable P0–P2 findings. The built source maps put the per-action tables with the deferred detail renderer, not the chat boot code. No local Gateway, app or browser was launched for this fix.

The hosted performance check on 4cd62247 passed on Node 24.22.1. Against its paired base, normalized gzip JavaScript fell from 1,336,047 to 1,335,475 bytes for chat (−572; 21 requests) and from 819,817 to 818,721 bytes for a new conversation (−1,096; 17 requests). Neither path added a request or needed a higher limit.

@clawsweeper

clawsweeper Bot commented Nov 24, 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 the scripts Repository scripts label Nov 24, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 24, 2026 05:06
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 24, 2026
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds readable, localized chat-tool activity labels, receipt-aware message outcomes, and consistent goal icons.

Example: A completed sessions_list call has limit: 20.

  • Before: The activity row reads “Sessions 20,” making the limit look like a result count.
  • After: The activity row reads “Listed chats,” while expansion retains the original arguments.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and the earlier defects are repaired, but supplied browser evidence covers only part of the final behavior.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Chat activity exposes internal tool names and routing arguments, and can make a requested list limit look like a result count.
Reason: Readable, factual activity improves an existing primary UI surface, and the maintainer-authored PR establishes direction without introducing configuration or execution changes.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides a useful, maintainer-approved presentation improvement, and all three prior findings are addressed with no new actionable defect found.

Priority: P2
Reviewed head: 517b1f1736039ec93e1dd5d4a7c782c9677cf271

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Show the corrected session and conversation receipt states in the built Control UI, including queued or suppressed delivery, reply timeout, and pending admission; the latest receipt tests also have no reported red-on-base run.
Agent review details

How this fits together

The Control UI converts recorded tool calls, results, and session names into transcript activity rows; these changes affect presentation without changing execution or delivery.

flowchart LR
  A[Recorded tool calls] --> C[Display normalization]
  B[Tool results and receipts] --> C
  C --> D[Operation presentation]
  E[English catalogs and icons] --> D
  F[Session roster names] --> D
  D --> G[Chat activity rows]
Loading

Technical review

Best possible solution:

Retain the existing renderer and authoritative receipt contracts while supplying the remaining browser evidence for the corrected delivery labels.

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

Current-main source retains the generic tool-name/detail fallback, and the inspected before screenshots demonstrate the misleading labels; no target code was executed during this review.

Is this the best way to solve the issue?

The change uses existing display normalization, localization, session naming, and result contracts, and removes the duplicate goal SVG without adding execution or persistence machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 61ecfe12d37a.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned change and current main: Reviewed the introduced merge-base-to-head diff and original presentation code. Fetched main retains the earlier presentation in the central row, operation-label, session-name, and icon files, so it does not already provide this change. (ui/src/pages/chat/components/chat-tool-card-row.solid.tsx:73, 517b1f173603)
  • Prior findings addressed: The operation catalog is now included in raw source-hash inputs; conversation sends distinguish sent, queued, suppressed, and unknown receipts; conversation turns describe sending and waiting for a reply. (scripts/lib/control-ui-i18n-catalog.ts:176, 517b1f173603)
  • Receipt contracts: Session-send schemas and producers distinguish acceptance, queueing, deferred admission, successful replies, and errors after sending; conversation producers separately record suppressed delivery, reply timeout, and received replies. The new mappings preserve those distinctions. (ui/src/pages/chat/components/chat-tool-operation-copy.ts:74, 517b1f173603)
  • Inspected visual evidence: Directly inspected all four prepared screenshots: the clean and annotated comparisons show “Checked goal,” “Listed chats,” and “Read tool instructions.” The PR explicitly states that these captures omit the later receipt corrections. (517b1f173603)
  • Related contributions: The author identifies this PR as consolidating the readable-action work in fix: show readable tool actions in chat #203975 and goal-icon work in fix: match goal checks to the goal indicator #203987; both remain open and document browser comparisons using synthetic Gateway history.
  • Repository guidance applied: Read the complete root, UI, and scripts AGENTS.md files and applied the maintainer, Solid, test-audit, and simplification guidance; maintainer notes are absent. Installed Solid cheat sheets are unavailable, and some older history reads encounter unavailable objects with lazy fetching disabled. (AGENTS.md, 517b1f173603)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 18136c9 adds ui/src/pages/chat/components/chat-tool-card-row.solid.tsx:65 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18136c960eaf; files: ui/src/pages/chat/components/chat-tool-card-row.solid.tsx)
  • Peter Steinberger: Raw commit 42ebb9d adds ui/src/lib/chat/tool-display-icon.ts:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 42ebb9d73483; files: ui/src/lib/chat/tool-display-icon.ts)
  • Ayaan Zaidi: Raw commit 3370acf adds ui/src/pages/chat/chat-spawned-subagent.ts:125 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3370acfc7477; files: ui/src/pages/chat/chat-spawned-subagent.ts)

PR surface

Source +564, Tests +145, Other +3. Total +712 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 592 28 +564
Tests 2 149 4 +145
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 13 744 32 +712

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove proof: sufficient: Current real behavior proof status is not_applicable, not sufficient.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P2: Misleading activity summaries affect transcript comprehension, with a limited presentation-only blast radius.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-24T05:35:32.197Z sha 5499018 :: needs changes before merge. :: [P2] Include the new catalog in the raw source-hash inputs | [P2] Preserve delivery outcomes for conversation sends | [P2] Describe conversation turns as sending and awaiting a reply

Reviewed November 24, 2026, 3:14 PM ET / 20:14 UTC (Revision 2).

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 24, 2026 20:08
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL and removed size: L labels Nov 25, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 09998bd into main Nov 25, 2026
149 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/chat-tool-agents branch November 25, 2026 05:45
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
* improve: show readable agent and chat tool activity

* perf: load operation labels with expanded chat tool rows

* fix: resolve chat tool labels without a type assertion

* fix(ui): version the English tool operation catalog

* fix(ui): describe conversation activity from delivery receipts

* refine(ui): shorten conversation receipt labels

* fix(ui): distinguish a sent message from a failed reply

* fix(ui): keep pending session delivery unconfirmed

* fix(ui): keep the final catalog row visible while it resizes

* perf(ui): defer per-action tool metadata until details are needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts 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.

1 participant