Repository navigation
fix: supervisor: repair targets the agent that executed the work job (#765) - #940
Conversation
…ets the agent that ran the work (#765) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Agentflare-Agent: claude-code Agentflare-Branch: task/765-supervisor-repair-fallback-should-use-th Agentflare-Item: 765 Agentflare-Session: a7614f3b-ff30-4e5c-b80d-dfc51b946b70
…tion_agent, test it end to end (#765) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Agentflare-Agent: claude-code Agentflare-Branch: task/765-supervisor-repair-fallback-should-use-th Agentflare-Item: 765 Agentflare-Session: a7614f3b-ff30-4e5c-b80d-dfc51b946b70
|
Tracking this PR for automated review ( |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
…ge and doc comment (#765) clippy's double_must_use rejected the attribute: Registration is already #[must_use], so the builder inherits it. Also joins the split eprintln! message with a line continuation instead of an 18-space gap, and reflows the last_agent_for_item doc comment. Agentflare-Agent: claude-code_2-1-305_agent Agentflare-Branch: task/765-supervisor-repair-fallback-should-use-th Agentflare-Item: 765 Agentflare-Session: b39fb7c8-e549-4da4-9407-4c3a3392da34
|
@coderabbitai review |
|
Follow-up to #764 / PR #934 (CodeRabbit Major on the repair fallback).
resolve_repair_agentfell back to the enqueue-timeargs[1]of the last work job.WorkItemExecutor::executecan switch agents throughprelaunch_failover, so after the work job clearedassignee_agent, repair could target an agent that never ran the work.agent_jobsgets aneffective_agentcolumn (migration) plusQueue::set_effective_agent;last_agent_for_itemnow returnsCOALESCE(effective_agent, args[1]).cancel::Registration::with_agent_sink/record_effective_agentlet an executor report the agent it settled on; the worker persists it best-effort (a failed write leaves the enqueue-time fallback).settle_execution_agentincli/work.rsapplies the pre-launch failover and records the resulting agent beforeexecute_work. A mid-run exhaustion failover ends the job and re-queues the item, so the agent never changes within one job.args[1], and a self-repair test that repair resolves the failover agent.Closes agentflare item #765.
Summary by CodeRabbit
New Features
Bug Fixes