Skip to content

fix: hold a bot whose runtime does not exist yet - #297

Merged
popodidi merged 1 commit into
mainfrom
axe/task-2548--work
Dec 3, 2026
Merged

popodidi merged 1 commit into
mainfrom
axe/task-2548--work

Conversation

@popodidi

@popodidi popodidi commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Task 2548. A bot created before any runtime of its agent existed (pilot first-bot: cos on agent claude before 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.rs mapped NoPick::Missing to "claim and let spawning report it". Now Missing holds the bot like NoPick::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.

  • Test a_bot_without_a_runtime_waits_and_runs_once_one_is_added (four --once passes, then the runtime is added and the wake runs). It fails on main and passes here.
  • paused_for_missing_runtime_resumes_when_given_one now builds the legacy pause directly.
  • Docs: 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

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>
@popodidi
popodidi merged commit 7e00466 into main Dec 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant