Repository navigation
fix(telegram): preserve progress preambles with verbose logging - #168225
Conversation
|
🦞👀 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. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesPreserve temporary Telegram preamble headlines while verbose tool diagnostics are delivered separately. Example: A Telegram user enables /verbose on and runs tools with the preamble “Inspecting the requested files”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current Telegram progress defect with a focused implementation and convincing paired Test Server evidence; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Telegram dispatch adapter receives agent progress events, feeds the shared progress compositor, and sends temporary drafts, durable diagnostics, and final replies to Telegram. flowchart LR
A[Agent events] --> B[Telegram dispatch adapter]
B --> C[Shared progress compositor]
C --> D[Temporary Telegram draft]
B --> E[Verbose diagnostic messages]
B --> F[Final answer and draft cleanup]
Technical reviewBest possible solution: Keep work-gate activity independent from verbose diagnostic delivery within the existing Telegram adapter and shared compositor. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the blocked work gate, and the supplied paired Test Server observations demonstrate the failure; this review executed no target code. Is this the best way to solve the issue? The patch repairs the Telegram-specific coupling through existing SDK operations, preserves lifecycle checks and diagnostic opt-outs, and extends meaningful boundary coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4d311c911ae. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +21, Tests +18, Docs +4. Total +43 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 10, 2026, 1:19 AM ET / 05:19 UTC. |
|
Landed in 13844a7. /verbose no longer hides the live preamble headline in Telegram progress mode; Test Server before/after evidence is in the PR body. |
…claw#168225) In Telegram's default progress mode, /verbose on or full stopped model preambles from opening the documented live status headline, because tool events under verbose no longer counted as work for the draft. Tool rows still give way to durable verbose diagnostics, but work tools now keep the preamble headline's activity gate, and an empty draft is not opened. The preamble stays out of the final answer as before. Found by our Telegram Test Server bug hunt. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes missing model preambles in Telegram's default progress draft after
/verbose onor/verbose full.Related: #168016.
User Impact
Verbose tool diagnostics still arrive separately, but they no longer prevent the temporary preamble headline from appearing while tools run. The draft is deleted after the clean final answer. Turns without a preamble do not gain an empty
Workingdraft. Partial/off modes and explicit diagnostic opt-outs retain their behavior.Why This Change Was Made
Telegram suppressed the work event that opens the shared compositor's delayed start gate whenever durable verbose diagnostics were active. Preambles reached the compositor but could never become visible. The Telegram adapter now records meaningful work independently of tool-row delivery, while retaining lifecycle checks and the shared non-work-tool policy. No configuration, SDK, or stored-state changes.
The only related history overlap is #126480 documentation for Slack compact finalization; that section and Slack's runtime are unchanged.
Evidence
56e7dbab5bb261c9a04efbc1a6194713e99be388, Telegram Test Server, default progress with commentary unset: two settled repetitions delivered verbose tool messages and finals but no preamble draft. First: diagnostics 75164/75166/75167/75168, final 75169. Repeat: diagnostics 75337–75340, final 75341. Each run made ten scripted provider requests across its control and verbose turn.gpt-5-mini, low reasoning, through the built candidate and Test Server: four successful HTTP 200 responses, diagnostics 75600/75601, final 75602 containingREAL_PREAMBLE_OK. This model emitted narration only in its final answer, so the real-provider run proves delivery compatibility, not the streamed-preamble defect. The deterministic Responses commentary fixture proves that path.Merge danger: two-way door; a revert fully restores the previous behavior. Blast radius is Telegram progress-mode preamble visibility with verbose diagnostics enabled; no persistent state or public contracts change.