Repository navigation
Conversation
…g updates - Add appendMode parameter to createTelegramDraftStream() - When enabled, accumulates text instead of replacing on edit - Preserves full conversation history for long-running tasks - Add setAppendMode() method for dynamic mode switching - Add comprehensive tests for append mode behavior Fixes openclaw#96306
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: the Telegram history-loss problem this PR targets is already covered by merged and shipped Telegram streaming work, and this branch adds an internal append mode that is not wired into any production Telegram flow. Canonical path: Live GitHub data shows #88682 merged on 2026-06-08 and closed #87326 by preserving Telegram streamed text blocks between tool calls. So I’m closing this here and keeping the remaining discussion on #88682 and #87326. Review detailsBest possible solution: Keep the shipped block-preservation and /verbose on durable progress behavior; open a new focused issue or PR only for a current-main Telegram loss case not covered by those paths. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current Telegram draft streams edit the active preview text, while current main also shows the supported preserved-history paths through block rotation and durable verbose progress. I did not run a fresh live Telegram repro in this read-only review, and the Mantis artifact reported no visible PR delta because appendMode is not enabled by any user flow. Is this the best way to solve the issue? No. Adding an opt-in append mode inside draft-stream.ts is not the best fix because production Telegram dispatch never enables it, and the accepted shipped design preserves block boundaries plus durable verbose progress instead of changing default preview edits. Security review: Security review cleared: Security review cleared: the diff only touches Telegram TypeScript runtime/tests and does not add dependencies, workflows, package scripts, credential handling, or supply-chain surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47; fix evidence: release v2026.6.10. |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
When an agent executes multi-step tasks via Telegram (e.g., long database queries, file processing), progress updates were sent by editing the same message repeatedly. Each edit replaced the entire message content, causing users to lose previous steps and context. Users reported they "haven't finished reading the agent's reply before it changes."
Impact:
Evidence
Before (Current Behavior)
After (With appendMode)
Test Results
All 53 tests pass, including 5 new tests specifically validating append mode behavior:
Code Changes
appendModeparameter tocreateTelegramDraftStream()setAppendMode()method for dynamic mode switchingFixes #96306