Fix invalid model names and preserve worktrees for debugging
model = "sonnet-4.6" is not a valid Claude CLI model identifier, causing all coder/qa/mergemaster agents to get 404 errors from the API and exit immediately with no work done. Change to "claude-sonnet-4-6". Also disable automatic worktree cleanup on archive so agent work can be inspected post-mortem. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -714,18 +714,20 @@ impl AgentPool {
|
||||
if let Err(e) = move_story_to_archived(&project_root, story_id) {
|
||||
eprintln!("[pipeline] Failed to archive '{story_id}': {e}");
|
||||
}
|
||||
let config =
|
||||
crate::config::ProjectConfig::load(&project_root).unwrap_or_default();
|
||||
if let Err(e) =
|
||||
worktree::remove_worktree_by_story_id(&project_root, story_id, &config)
|
||||
.await
|
||||
{
|
||||
eprintln!(
|
||||
"[pipeline] Failed to remove worktree for '{story_id}': {e}"
|
||||
);
|
||||
}
|
||||
// TODO: Re-enable worktree cleanup once we have persistent agent logs.
|
||||
// Removing worktrees destroys evidence needed to debug empty-commit agents.
|
||||
// let config =
|
||||
// crate::config::ProjectConfig::load(&project_root).unwrap_or_default();
|
||||
// if let Err(e) =
|
||||
// worktree::remove_worktree_by_story_id(&project_root, story_id, &config)
|
||||
// .await
|
||||
// {
|
||||
// eprintln!(
|
||||
// "[pipeline] Failed to remove worktree for '{story_id}': {e}"
|
||||
// );
|
||||
// }
|
||||
eprintln!(
|
||||
"[pipeline] Story '{story_id}' archived and worktree cleaned up."
|
||||
"[pipeline] Story '{story_id}' archived. Worktree preserved for inspection."
|
||||
);
|
||||
} else {
|
||||
eprintln!(
|
||||
|
||||
Reference in New Issue
Block a user