Skip to content

fix(agents): reap stale active slots on cancel#220

Merged
shiny-code-bot merged 1 commit into
mainfrom
fix/stale-agent-slot-cleanup
May 29, 2026
Merged

fix(agents): reap stale active slots on cancel#220
shiny-code-bot merged 1 commit into
mainfrom
fix/stale-agent-slot-cleanup

Conversation

@shiny-code-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Treat explicit agent cancel as a successful stale-slot cleanup when an active agent record remains but its task handle is already gone.
  • Mark the stale record cancelled, stamp completion time, compact terminal state, and free active-agent capacity.
  • Add a regression for the stale active-record/no-handle case.

Refs #214
Refs #124

Validation

  • cargo test -p code-core cancel_agent_reaps_stale_active_record_without_handle
  • ./build-fast.sh

@shiny-code-bot shiny-code-bot merged commit 66fa099 into main May 29, 2026
1 check passed
@shiny-code-bot shiny-code-bot deleted the fix/stale-agent-slot-cleanup branch May 29, 2026 22:16
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.

2 participants