fix(telegram): retain work log before final answer#1096
Merged
Conversation
34f9935 to
2f28e7d
Compare
added 2 commits
July 7, 2026 13:42
- what: retain Telegram progress previews as a compact Work log with Show/Hide details before final text starts. - why: prevents final-answer text from briefly appearing inside the progress bubble and removes internal counts/tool labels from consumer UI. - risk: Telegram live behavior still needs isolated tester-bot proof; covered here with targeted dispatch/progress/callback unit tests.
- what changed: force final answer text through durable send when progress is retained as Work Log - why: Telegram could finalize a post-progress preview into a blank answer bubble while TTS spoke the real final - behavior/risk: scoped to Work Log final-boundary routing; normal streamed finals still use preview finalization
2f28e7d to
a3e3e06
Compare
- What: keep meaningful internal newlines inside retained Telegram Work Log entries. - Why: expanded plan/checklist progress should stay readable instead of collapsing into one line. - Risk: low; scoped to Work Log normalization and covered by focused tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Work logmessage before final-answer deliveryWork logcollapsed and natural entries expanded, with no counts/tool footerValidation
pnpm exec vitest run extensions/telegram/src/work-log.test.ts extensions/telegram/src/bot-message-dispatch.test.tsec7be0445ecfc5319052687e54b72f0c20bb7bff88746ac70559671cd14fa7c4b9984fde9a5107cf, which includes this PR. Baseline passed against@Artem_jarvis_email_bot; TTS remained enabled. Transcript proof: prompt54905, Work Log54906, final answer54908, voice54909.Proof Gaps
openclaw screen record --app Telegramfailed with gateway1006, so no screen recording artifact was produced.