Repository navigation
fix: hold a bot whose runtime does not exist yet - #297
Merged
Merged
Conversation
A bot created before any runtime of its agent existed was claimed every tick, failed spawning with 'unknown agent', and was paused after three failures. The node now holds it like a bot with unhealthy runtimes: no claim, no run, no failure; its wakes run once the runtime is added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task 2548. A bot created before any runtime of its agent existed (pilot first-bot:
coson agentclaudebefore the first /runtimes login) was claimed every tick, failed spawning with "unknown agent claude", and was paused after 3 consecutive failed runs, leaving 3 usage rows.Root cause:
crates/axe-node/src/dispatch/bots.rsmappedNoPick::Missingto "claim and let spawning report it". NowMissingholds the bot likeNoPick::Unhealthy: no claim, no run, no failure, no pause; its wakes run once a matching runtime exists. The auto-resume of bots an older node already paused this way (bot::edit) stays.a_bot_without_a_runtime_waits_and_runs_once_one_is_added(four--oncepasses, then the runtime is added and the wake runs). It fails on main and passes here.paused_for_missing_runtime_resumes_when_given_onenow builds the legacy pause directly.docs/user/guides/runtimes-from-telegram.md,docs/design/bots.md.Local: fmt, clippy -D warnings, cargo test, ts_bindings, shellcheck, test_install.sh, check_doc_links all pass.
🤖 Generated with Claude Code