Repository navigation
improve: make Telegram tool progress easier to scan - #197523
Conversation
Keep concise activity metadata in the existing display registry, separate operation titles from context, and preserve node targets for titled execution. Diagnostic detail and status-only command privacy remain unchanged. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: a9ba7eac-0bb9-4d6a-b47c-9180e3495935
Separate lifecycle markers, operation labels, and context in both Telegram rendering modes. Preserve status text, literal details, and bounded row lengths. Co-authored-by: vincentkoc <[email protected]>
Keep diagnostic Knowledge record identifiers available separately and use a human subagent title without changing native lifecycle, metadata, or authority. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 6772c643-23c5-4914-841b-781395419174
Co-authored-by: vincentkoc <[email protected]>
Keep tool/category icons as the row anchor, with bold operation labels, regular context separators, and separate italic lifecycle status. Reuse the shared HTML/native RichText content budget. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: ce0011c1-34a4-40b8-922f-3090830ff87f
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Preserve task labels while showing a four-character UUID suffix in semantic progress, continued child status, and native subagent activity. Keep full routing, lifecycle, and diagnostic identities unchanged. Share one display-only formatter across core and the native harness boundary. Co-authored-by: vincentkoc <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR retires completed dispatcher duplicates earlier, separates Telegram operation labels from context, and adds short subagent references. Example: A catalog-dispatched subagent named Check marker completes spawning while another command remains running.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a useful, demonstrated progress-display fix that current main lacks; no actionable correctness or security findings were identified, but required CI remains blocked. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent tool lifecycles and native worker notifications enter shared activity preparation; the progress compositor and Telegram renderer turn those prepared facts into visible message updates. flowchart LR
A[Agent tool execution] --> B[Shared activity preparation]
C[Native worker notifications] --> B
B --> D[Progress compositor]
D --> E[Telegram renderer]
E --> F[Telegram message updates]
Technical reviewBest possible solution: Retain the existing-owner implementation and land once the required CI failures have an evidence-backed disposition. Do we have a high-confidence way to reproduce the issue? Current-main source delays wrapper retirement until agent settlement, and the supplied real Telegram baseline capture shows the resulting duplicate rows; this read-only review ran no target code. Is this the best way to solve the issue? The patch fixes retirement at the existing lifecycle owner, shares one display-reference formatter, and keeps Telegram formatting in its transport adapter without introducing a competing owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c77413716dd9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +65, Tests +217, Docs +16, Other +18. Total +316 across 28 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed November 12, 2026, 9:24 AM ET / 14:24 UTC (Revision 3). |
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 8ce38166-7e4c-4f2e-bb15-9eb54b22b404
Co-authored-by: vincentkoc <[email protected]> Co-authored-by: obviyus <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 044e8527-f228-4068-ac3c-ef0e32be5628
Actual Telegram Test Server client — whole-stack before/afterActual official Telegram WebK Test Server message bubbles, using the real OpenAI Responses service and gpt-5.5. This compares the original whole-stack base with the completed readable-feed stack, not an isolated PR2-only diff. Before — original whole-stack base 4092d35 After — tested 62846e0, tree-identical published e3add1a Actual final reply — after run Both progress captures are 480 × 114, from the same unchanged Chromium/WebK context, light theme, viewport 780 × 437, DPR 1. Both real-model scenarios used the same preamble, first 20 lines of feed-proof.txt, and a single 30-second read-only command titled Capture fixture. The baseline Read row emphasizes its path/limits with the action and has no action/context separator; the stack keeps the original icons, bolds only the action, separates regular context with ·, and keeps running italic. No message, HTML, CSS, or image was reconstructed. Baseline was clean-built through the maintained qaRuntime profile before a four-file, uncommitted test-harness overlay. Baseline product tree: 72e7cced722ef67fff3637004a7150b235585cbc; built entry SHA-256: 40a5de77b4c2fd18a275694991f470d296237a465b49831e1f7da8c1414a20e8. inputsClean was true, and product source remained unchanged. Baseline received actual read marker FEED_READ_OK, actual command marker FEED_CAPTURE_SHELL_OK, exit 0, and a separate final reply. Four real HTTP 200 provider requests; zero mocks. Only SUT bubbles were captured. Temporary Web sessions were confirmed from the healthy leased QA user, matched to the QA identity/SUT, and revoked by their exact creation receipts before lease release; original QA authorization was preserved. Actual logout was observed. Recorders, Gateways, proxies, ports, scratch state, leases and only the owned browser tabs were cleaned up. No QR/account/sidebar/header or credentials appear in these images. Before capture and verification: task session (linked for team reference; sign-in may be required). This updates the existing evidence comment. The two after assets are reused, not uploaded again. Other draft proof gaps remain explicit in the PR body. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Update the two exact generic public kickoff forms to keep the icon outside the bold operation label. Align positive and adversarial fixtures without relaxing private-content, target, media, transient, wire, count or lifecycle assertions. The actual YAML replay is red before correction (4 failed, 16 passed) and green afterward (20 QA and 18 Telegram tests). No production code or test-line allocation changes. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: obviyus <[email protected]>
Project only client-consumed tool metadata at the existing catalog generator. Preserve canonical server progress labels and references, client icons, titles, actions and argument details. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: obviyus <[email protected]>
Co-authored-by: obviyus <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer override: two red jobs on this head were not caused by this PR.
The one red job this PR did cause ( Exact-head proof: live Telegram Test Server before/after (see the PR body), focused tests passing, and ClawSweeper |
|
Landed in e6ac403.
Thanks @vincentkoc for the work. |
…plugin-reload-runtime-20261112 * commit '5d6a026e43757ea6302e4c1151d6ace28468ced0': fix(logging): avoid main-thread stalls when resolving default log files (#197742) fix(sessions): commit selected invitations with original messages (#184512) improve: make Telegram tool progress easier to scan (#197523) fix(test): keep queued Stop cleanup on real timers (#197734) fix: keep usage pricing from blocking the Gateway on filesystem lookups (#197599)
## What Problem This Solves Fixes: Telegram's progress draft shows one operation twice when the agent calls a tool through the catalog dispatcher (`dispatch_action`). The dispatcher row stays visible next to the real operation until the turn ends. Tool rows also run the action label into its context, and parallel subagents with the same label cannot be told apart. ## User Impact - A successful dispatcher call collapses into its real operation as soon as the nested result is accepted. Failed or blocked dispatchers stay visible as before. - Tool rows read `🛠️ **Exec** · command…`: the icon stays outside the bold label, and ` · ` separates the action from its context. Running and failed status words stay italic. Completed rows drop the redundant word. - Subagent rows, and progress rows for `sessions_send`, `sessions_history` and `subagents steer|kill`, add a four-character UUID suffix such as `…2633`. An unlabeled child shows `Subagent …a4f0`, not `Delegated work`. The suffix is display only: routing, lifecycle keys and diagnostics keep the full identity. No new configuration, schema or permissions. ## Why This Change Was Made - The existing wrapper-retirement owner (`finalizeToolActivity`) now runs when a nested call's result is accepted, not only at `agent_end`. It records each retirement, so later events cannot retract the same row again. - The Telegram renderer formats the icon, bold label, separator and context. The separator counts toward the row width budget. - One display-only helper, `formatSubagentProgressReference`, makes the short reference. Codex native worker threads pass their own thread IDs; nothing infers a session ID from a task path. - The shared client tool catalog no longer ships Gateway-only `progress` metadata. No web, iOS, macOS or Android client reads it. ## Evidence Live Telegram Test Server run through the real QA user (TDLib recorder) and the official Telegram Web K client. The same scenario ran on the merge base `3ec27b6f` (before) and on this branch (after): exec, read, `sessions_spawn` and `sessions_history` through the catalog dispatcher (`dispatch_action`, because both tools are catalog-only in this config), then a held command. The model is a scripted Responses provider; the Gateway, tools, catalog dispatcher, subagent spawn and Telegram delivery are real. Config: `streaming.mode: progress` with `progress.toolProgress: true`. **Before:** each dispatched operation shows twice until the turn ends.  **After:** one row per operation, `·` separators, and the child's short reference.  A second recorded run shows the same thing in the TDLib edit history (HTML rebuilt from Telegram entities; the child reference changes per run): | | Before (`3ec27b6f`) | After (this branch) | |---|---|---| | Read row | `<b>📖 Read</b> lines 1-20 from feed-proof.txt` | `📖 <b>Read</b> · lines 1-20 from feed-proof.txt` | | Spawn row | `<b>🤖 Start subagent</b> Check marker` ×2 | `🤖 <b>Start subagent</b> · Check marker …707e` ×1 | | History row | `<b>📖 Read session history</b>` ×2 | `📖 <b>Read session history</b> · …707e` ×1 | | Duplicates | visible in every edit from the dispatch until the edit just before the final reply (~11 s here) | none in any edit | Both turns delivered `FEED_FINAL_OK` and retired the draft. The Telegram Web session was terminated by its exact ID, and the lease was released. Focused tests on this head: `progress-draft-preview`, `embedded-agent-subscribe.tool-result-ordering`, `tool-display`, `channels/streaming`, `subagent-control.worker`: **148 passed**. `bot-message-dispatch.preview.telegram-http`: **41 passed** (this head updates its stale `🛠️ Exec` expectation to `🛠️ <b>Exec</b>`). Limits: the model is scripted, so this does not show model commentary. The candidate Gateway ran a `dist` built from `5ed94ec`; this head (`79f4ffb`) differs from it only in that one test file. ## Compatibility and merge risk - **Public SDK:** one additive export, `formatSubagentProgressReference`, in `openclaw/plugin-sdk/agent-harness-runtime`. No existing export changes or is removed. - **Two-way door:** no stored state, config or protocol changes. A revert fully undoes it. - **Blast radius:** progress rows on Telegram and the other consumers of the shared display registry (Slack, ClickClack, Codex projection), and when a dispatcher row is retired in the progress feed. Contributor credit: @vincentkoc. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>



What Problem This Solves
Fixes: Telegram's progress draft shows one operation twice when the agent calls a tool through the catalog dispatcher (
dispatch_action). The dispatcher row stays visible next to the real operation until the turn ends. Tool rows also run the action label into its context, and parallel subagents with the same label cannot be told apart.User Impact
🛠️ **Exec** · command…: the icon stays outside the bold label, and·separates the action from its context. Running and failed status words stay italic. Completed rows drop the redundant word.sessions_send,sessions_historyandsubagents steer|kill, add a four-character UUID suffix such as…2633. An unlabeled child showsSubagent …a4f0, notDelegated work. The suffix is display only: routing, lifecycle keys and diagnostics keep the full identity.No new configuration, schema or permissions.
Why This Change Was Made
finalizeToolActivity) now runs when a nested call's result is accepted, not only atagent_end. It records each retirement, so later events cannot retract the same row again.formatSubagentProgressReference, makes the short reference. Codex native worker threads pass their own thread IDs; nothing infers a session ID from a task path.progressmetadata. No web, iOS, macOS or Android client reads it.Evidence
Live Telegram Test Server run through the real QA user (TDLib recorder) and the official Telegram Web K client. The same scenario ran on the merge base
db964b78(before) and on this branch (after): exec, read,sessions_spawnandsessions_historythrough the catalog dispatcher (dispatch_action, because both tools are catalog-only in this config), then a held command. The model is a scripted Responses provider; the Gateway, tools, catalog dispatcher, subagent spawn and Telegram delivery are real. Config:streaming.mode: progresswithprogress.toolProgress: true.Before: each dispatched operation shows twice until the turn ends.
After: one row per operation,
·separators, and the child's short reference.A second recorded run shows the same thing in the TDLib edit history (HTML rebuilt from Telegram entities; the child reference changes per run):
db964b78)<b>📖 Read</b> lines 1-20 from feed-proof.txt📖 <b>Read</b> · lines 1-20 from feed-proof.txt<b>🤖 Start subagent</b> Check marker×2🤖 <b>Start subagent</b> · Check marker …707e×1<b>📖 Read session history</b>×2📖 <b>Read session history</b> · …707e×1Both turns delivered
FEED_FINAL_OKand retired the draft. The Telegram Web session was terminated by its exact ID, and the lease was released.Focused tests on this head:
progress-draft-preview,embedded-agent-subscribe.tool-result-ordering,tool-display,channels/streaming,subagent-control.worker: 148 passed.bot-message-dispatch.preview.telegram-http: 41 passed (this head updates its stale🛠️ Execexpectation to🛠️ <b>Exec</b>).Limits: the model is scripted, so this does not show model commentary. The candidate Gateway ran a
distbuilt from5ed94ec; this head (79f4ffb) differs from it only in that one test file.Compatibility and merge risk
formatSubagentProgressReference, inopenclaw/plugin-sdk/agent-harness-runtime. No existing export changes or is removed.Contributor credit: @vincentkoc.