fix: A transient Telegram startup failure permanently disables the bot - #971
Open
sam-saffron-jarvis wants to merge 1 commit into
Open
fix: A transient Telegram startup failure permanently disables the bot#971sam-saffron-jarvis wants to merge 1 commit into
sam-saffron-jarvis wants to merge 1 commit into
Conversation
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
Platform.Runonly once.Why this is high-value
Telegram is a daily Jarvis interface, while the web server and jobs can remain healthy if Telegram's startup
getMerequest hits a transient DNS, network, timeout, or API failure. Previously that one failure terminated the only Telegram goroutine, silently leaving the bot unavailable until the whole serve process was manually restarted. The supervisor lets Telegram recover automatically while preserving normal shutdown behavior and bounding retry frequency.Validation
gofmt -w cmd/serve.go cmd/serve_platform_test.gogo build ./...HOME=$(mktemp -d) XDG_CONFIG_HOME=$HOME/.config CODEX_HOME=$HOME/.codex go test ./...go test ./cmd -run TestRunPlatformSupervisorRetriesAndStopsOnCancellation -count=100git diff --checkThe unisolated full test command also ran; two existing skill-catalog tests failed because the agent host's 30 user-global skills exhausted their configured visible-skill budgets. The same complete suite passes with an isolated HOME as shown above.