[Fix] Telegram live task messages lose progress and stop updating after a task completes - #2597
Open
roomote-roomote[bot] wants to merge 1 commit into
Open
Conversation
Contributor
roomote-roomote
Bot
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
September 12, 2026 08:09
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.
What changed
When a Telegram coding task finished successfully, its single live status message was edited one last time into a terminal
Completed.line, which discarded whatever progress the message was showing. Because that edit settled the message's visible content, a resumed run no longer surfaced current live status there.Successful completion is now a no-op for the Telegram live message. The message keeps exactly the content it had immediately before completion, and the task-scoped message pointer is preserved, so the next resumed run keeps editing that same message with live progress again. The now-unreachable
completedstate was dropped from the Telegram live-message formatter.Why this change was made
The owning Fast Session already posts the authoritative final result for the task, so the live status message repeating
Completed.added nothing while actively destroying the last useful progress line and blocking later live updates.Impact
Telegram users keep seeing the final live progress of a finished coding task instead of a bare
Completed., and resuming that task updates the same message with current status.Failure, stopped, waiting-for-input, launch, and in-progress rendering are unchanged. Slack live task cards are unaffected: the shared worker lifecycle and control-plane render path are untouched, and only the Telegram branch of the renderer changed. Pre-worker and control-plane settle paths already handled only
Failed/Canceled, so they needed no change.How it was tested
packages/sdk/src/server/lib/telegram-live-task-stream.test.tsasserting that acompleterender performs no provider lookup and noeditMessageText, and that a following in-progress render still edits the samemessageId. Verified it fails against unmodified source and passes with this change.@roomote/sdk(telegram-live-task-stream,task-runs/slack-live-task-stream,task-runs/settle-live-task-message-on-exit),@roomote/communication(telegram-live-task-message,telegram-provider), and@roomote/worker(callbacks/slack-live-task-stream, 37 tests) all pass.pnpm check-types(27 packages),pnpm lint, andpnpm knippass.Checklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locallypnpm changeset