Announce provider failures to the active Telegram chat - #78
Merged
Merged
Conversation
added 2 commits
September 19, 2026 01:12
Keep chat and prompt-tool state until terminal settlement. Stop failure lookup at the current assistant result or user boundary, so healthy turns cannot announce historical errors. Require omp 18.1.16+ for the continuation lifecycle contract.
# Conflicts: # src/outbound.test.ts
Owner
|
I pushed two fixes to this branch before merging:
The regressions failed on the original revision and pass now. They cover retry exhaustion, successful recovery and its answer in the original topic, prompt-tool preservation, and historical errors. I also integrated #80 and checked that failure notices stay plain text with rich output enabled. The combined tree passes typechecking and all 380 tests on Bun 1.3.14. The documented minimum is now omp 18.1.16 because this relies on the continuation lifecycle contract. |
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.
Fixes #77.
A Telegram-initiated run that fails at the provider (quota exhausted, 429, ...) died silently: the extension only forwarded assistant text, and a failed run has none.
This change narrates the failure lifecycle to every chat with a live Telegram turn (same routing as replies, plain text):
Plus Outbound.activeTargets()/announce() (gated on live Telegram turns by construction), lastRunError() helper, wiring + unit tests (6 + 3 new), and a Notifications entry in docs/guide.md.
Checks: tsc --noEmit clean, bun test 324 pass / 2 pre-existing env failures (inbox, voice transcription — fail on clean HEAD on Windows too).