fix: console logs branch names directly for close confirmation

This commit is contained in:
2026-03-21 16:41:54 +05:30
parent fc7feb2095
commit b2621a10de
+2 -2
View File
@@ -69,10 +69,10 @@ export async function closeMultiModel(options: CloseSessionOptions): Promise<Clo
// If cleanup requested and not forced, ask for confirmation // If cleanup requested and not forced, ask for confirmation
if (options.cleanupWorktrees && !options.force && worktrees.length > 0) { if (options.cleanupWorktrees && !options.force && worktrees.length > 0) {
instructionsArr.push(chalk.red('The following worktrees and branches will be removed:')); console.log(chalk.red('The following worktrees and branches will be removed:'));
worktrees.forEach((wt) => { worktrees.forEach((wt) => {
const msg = ` - ${wt.path} (branch: ${wt.branch})`; const msg = ` - ${wt.path} (branch: ${wt.branch})`;
instructionsArr.push(msg.trim()); console.log(msg.trim());
}); });
const answer = await promptUser(chalk.bold("\nDo you want to proceed? (y/N): ")); const answer = await promptUser(chalk.bold("\nDo you want to proceed? (y/N): "));