chore(tui/branch): prefix auto-submitted task with '[branch created]' so message history clearly reflects branch start

This commit is contained in:
James Peter
2025-09-08 10:27:51 +10:00
parent 5970a97798
commit a78a225644
+2 -1
View File
@@ -6132,7 +6132,8 @@ impl ChatWidget<'_> {
}
// Switch cwd and optionally submit the task
let initial_prompt = task_opt.map(|s| s.to_string());
// Prefix the auto-submitted task so it's obvious it started in the new branch
let initial_prompt = task_opt.map(|s| format!("[branch created] {}", s));
let _ = tx.send(AppEvent::SwitchCwd(worktree, initial_prompt));
});
}