Conversation
… status
stopFeature() was unconditionally resetting feature status to 'backlog' after
aborting the agent. This caused two zombie respawn paths:
1. When stop_agent is called and the caller subsequently sets the feature to
'done', the feature:status-changed listener called stopFeature() which
overwrote 'done' back to 'backlog', causing auto-mode to immediately
respawn the agent.
2. When stop_agent is called with targetStatus='done', the abort would reset
to 'backlog' instead of preserving the intended terminal status.
Fix: stopFeature() now accepts an optional targetStatus parameter. Terminal
statuses ('done', 'verified', 'completed') are preserved instead of being
overwritten with 'backlog'. The feature:status-changed event handler passes
the terminal status through so it is never clobbered.
Also adds targetStatus parameter to the stop_agent MCP tool, HTTP route, and
ava-tools so callers can atomically stop an agent and mark it done in one call.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe changes add support for an optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
Summary
When stop_agent is called on a running agent and the feature is set to 'done', the agent respawns within seconds. The done→backlog→in_progress cycle repeats indefinitely. stop_agent returns success:true but the agent restarts. Likely cause: auto-mode loop or a watcher re-queues the feature before the done status is persisted. The stop+done must be atomic, or auto-mode must check status before spawning. Blocking mythxengine Scene Pages project because this zombie agent occupies the concurrency sl...
Created automatically by Automaker
Summary by CodeRabbit
New Features