Repository navigation
fix(telegram): restore verbose diagnostics in default progress mode - #168016
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesTelegram’s default progress mode delivers tool summaries requested with Example: A Telegram user enables
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes a documented Telegram behavior that remains broken on current main. The narrow implementation and paired Telegram proof support landing; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Telegram plugin receives agent progress and replies from OpenClaw’s shared reply dispatcher. It renders temporary progress drafts and sends durable diagnostics and final answers to the originating chat. flowchart LR
A[Agent tool events] --> B[Shared reply dispatcher]
C[Session verbosity] --> B
D[Telegram streaming settings] --> E[Diagnostic visibility]
E --> B
B --> F[Quiet progress draft]
B --> G[Separate verbose diagnostics]
B --> H[Final Telegram answer]
Technical reviewBest possible solution: Keep quiet draft rendering independent from durable diagnostics while using the existing verbosity and explicit opt-out controls. Do we have a high-confidence way to reproduce the issue? Yes: current-main source clearly suppresses requested diagnostics when progress-mode toolProgress is omitted, and the supplied paired Test Server runs demonstrate that path. This review did not execute target code. Is this the best way to solve the issue? Yes: changing the existing diagnostic gate’s fallback is the narrow repair; the compositor continues to own quiet drafts, and explicit opt-outs and command-disclosure rules remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db776fa6a762. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -3, Tests +10, Docs +2. Total +9 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed October 9, 2026, 7:21 PM ET / 23:21 UTC. |
|
Landed in f3f9bf9. /verbose works again in default progress mode; Test Server before/after evidence is in the PR body. |
…penclaw#168016) In Telegram's default progress streaming mode, the quiet-draft default for tool progress also set suppressToolProgressMessages, so /verbose on and /verbose full sent no tool summaries or tool output despite the documented behavior. The durable verbose path now defaults on in progress mode; an explicit toolProgress: false and streaming.mode off still suppress it. Found by our Telegram Test Server bug hunt. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes missing tool summaries and completed tool output after
/verbose onor/verbose fullwhen Telegram uses its default progress streaming mode.User Impact
Default progress mode now delivers the same standalone verbose diagnostics as partial mode. The ordinary quiet draft and final answer are unchanged. Explicit
toolProgress: falseand streamingoffstill suppress diagnostics. Shell commands remain hidden at ordinary verbosity; command details and completed output still requirefull.Why This Change Was Made
Telegram used the progress draft's quiet default to disable durable verbose delivery too. The dispatch suppression gate now defaults to allowing explicitly requested verbose diagnostics, while the draft retains its separate quiet default.
This preserves the explicit opt-out policy introduced in 6626a85 and the quiet draft from #137342 (f804e08). That PR describes quiet tool rows, not disabling
/verboseby default. No configuration, SDK, stored-state, or disclosure-policy changes. This does not adopt the execution-title visibility proposal in #145902.Evidence
29ea5b9a5c:/verbose onacknowledged at 74177, transient draft 74179 deleted, final 74180;/verbose fullacknowledged at 74182, draft 74184 deleted, final 74185. Tools ran but no diagnostics arrived. The relevant owners are unchanged through baseline1d09a03dc9cd53fc83e6aea1d8f59d201f4f3525.1d09a03dc9cdrepeat: ordinary verbosity draft 74368 (deleted), final 74369; full verbosity draft 74373 (deleted), final 74374. Default verbose off separately produced draft 74394 (deleted) and final 74395, matching the candidate's unchanged off behavior.Execat 74298,Read: from /nonexistent/verbose-proof.txtat 74299, and final 74300. Full verbosity delivered command summary 74304, completed output containingverbose-output-controlat 74305, and final 74306. Verbose off produced only a transient draft 74310 (deleted) and final 74311.toolProgress: false, baseline → candidate: ordinary verbosity draft/final 74381/74382 → 74315/74316; full verbosity 74386/74387 → 74320/74321. Both refs deleted their drafts and sent no diagnostics. Partial-mode candidate controls retained ordinary summaries 74338/74339 and full summary/output 74344/74345, with finals 74340/74346.gpt-5-mini: returnedOPENCLAW_VERBOSE_LIVE_OKwithout tools; one completed model call. Telegram scenarios use the deterministic mock provider.1d09a03dc9cdproduced draft 74357 (deleted) and final 74358; candidate29a6877e82e38f8dc673d2c8c51e7075f9969445produced command summary 74362, output 74363, and final 74364. Both isolated Gateways used the same prompt, provider fixture, and default progress configuration. All leases and the task-owned browser authorization were released.Merge danger: two-way door; reverting fully restores the prior behavior. Blast radius is Telegram standalone tool diagnostics when progress streaming uses its omitted/default tool-progress setting. Explicit opt-outs, other streaming modes, other channels, configuration and persistent state are unchanged.