huskies: merge 1176 bug base_branch fallback hardcodes master instead of auto-detecting

This commit is contained in:
Huskies Agent
2026-07-16 16:22:46 +00:00
parent a4e2d4bc25
commit efd0097f76
11 changed files with 301 additions and 50 deletions
+5 -4
View File
@@ -189,10 +189,10 @@ pub(super) async fn run_agent_spawn(
let wt_info = {
let wt_path = crate::worktree::worktree_path(&project_root_clone, &sid);
let branch = format!("feature/story-{sid}");
let base_branch = config_clone
.base_branch
.clone()
.unwrap_or_else(|| crate::worktree::detect_base_branch(&project_root_clone));
let base_branch = crate::worktree::resolve_base_branch(
&project_root_clone,
config_clone.base_branch.as_deref(),
);
let deadline =
tokio::time::Instant::now() + std::time::Duration::from_secs(worktree_wait_secs);
loop {
@@ -260,6 +260,7 @@ pub(super) async fn run_agent_spawn(
}
let (command, mut args, mut prompt) = match config_clone.render_agent_args(
&project_root_clone,
&wt_path_str,
&sid,
Some(&aname),