Skip to content

fix(telegram): restore verbose diagnostics in default progress mode - #168016

Merged
obviyus merged 1 commit into
mainfrom
fix/telegram-verbose-progress
Oct 9, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/telegram-verbose-progress

Conversation

@obviyus

@obviyus obviyus commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes missing tool summaries and completed tool output after /verbose on or /verbose full when 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: false and streaming off still suppress diagnostics. Shell commands remain hidden at ordinary verbosity; command details and completed output still require full.

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 /verbose by default. No configuration, SDK, stored-state, or disclosure-policy changes. This does not adopt the execution-title visibility proposal in #145902.

Evidence

  • Telegram Test Server before, main 29ea5b9a5c: /verbose on acknowledged at 74177, transient draft 74179 deleted, final 74180; /verbose full acknowledged at 74182, draft 74184 deleted, final 74185. Tools ran but no diagnostics arrived. The relevant owners are unchanged through baseline 1d09a03dc9cd53fc83e6aea1d8f59d201f4f3525.
  • Current baseline 1d09a03dc9cd repeat: 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.
  • Candidate default progress: ordinary verbosity delivered Exec at 74298, Read: from /nonexistent/verbose-proof.txt at 74299, and final 74300. Full verbosity delivered command summary 74304, completed output containing verbose-output-control at 74305, and final 74306. Verbose off produced only a transient draft 74310 (deleted) and final 74311.
  • Explicit 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.
  • Regression through the real Telegram dispatch/core reply path and HTTP transport: the two omitted-default progress cases fail on baseline; all 25 cases in the extended existing file pass on the candidate. One-worker file wall time: 230.31 seconds including compilation (219.50 seconds Vitest, 75% test execution). This existing transport suite exercises the config-to-core suppression boundary and durable delivery, which a formatter test cannot cover; seven table rows replace one previous verbose case.
  • Isolated Linux/Node 24.16 build passed; scoped formatting and lint passed. The broader lint wrapper exceeded its local 180-second limit preparing declaration artifacts; no full typecheck is claimed.
  • Built candidate CLI with real gpt-5-mini: returned OPENCLAW_VERBOSE_LIVE_OK without tools; one completed model call. Telegram scenarios use the deterministic mock provider.
  • Paired same-lease Test Server replay: baseline 1d09a03dc9cd produced draft 74357 (deleted) and final 74358; candidate 29a6877e82e38f8dc673d2c8c51e7075f9969445 produced 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.

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: telegram Channel integration: telegram size: S labels Oct 9, 2026
@obviyus

obviyus commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus
obviyus marked this pull request as ready for review October 9, 2026 23:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. 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 Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Telegram’s default progress mode delivers tool summaries requested with /verbose on and completed output requested with /verbose full, while respecting explicit opt-outs.

Example: A Telegram user enables /verbose full and runs a tool in default progress mode.

  • Before: The temporary draft disappears and only the final answer arrives.
  • After: Separate command-summary and output messages arrive before the final answer, including the demonstrated verbose-output-control output.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with convincing paired Telegram observations and useful existing-boundary regression coverage.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied paired Telegram Test Server observations exercise isolated Gateways running the exact candidate through real Telegram transport with deterministic provider input: standalone command summary and completed output arrive after the fix, whereas the baseline produces only the final answer. Separate controls preserve verbose off, explicit toolProgress false, and partial-mode behavior. No stored-data format or migration changes are introduced.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Telegram users enable verbose diagnostics but receive no tool summaries or completed output in the default progress mode.
Reason: The existing verbosity documentation promises these diagnostics. Restoring them requires a small change to the existing Telegram owner without adding configuration or changing disclosure policy.

Regression provenance

Possible 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
Reviewed head: 29a6877e82e38f8dc673d2c8c51e7075f9969445

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -3, Tests +10, Docs +2. Total +9 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 5 -3
Tests 1 43 33 +10
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 47 38 +9

Labels

Label changes:

  • add P2: Requested diagnostic messages are suppressed in Telegram’s default mode, while normal final replies remain functional.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • add proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Standalone verbose summaries and completed output are visible Telegram behavior; the supplied Test Server evidence exercises that change.

Label justifications:

  • P2: Requested diagnostic messages are suppressed in Telegram’s default mode, while normal final replies remain functional.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Standalone verbose summaries and completed output are visible Telegram behavior; the supplied Test Server evidence exercises that change.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 9, 2026, 7:21 PM ET / 23:21 UTC.

@obviyus
obviyus merged commit f3f9bf9 into main Oct 9, 2026
196 of 198 checks passed
@obviyus
obviyus deleted the fix/telegram-verbose-progress branch October 9, 2026 23:28
@obviyus

obviyus commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in f3f9bf9. /verbose works again in default progress mode; Test Server before/after evidence is in the PR body.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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