From 3a2fa11fcde9acf091f48fe1ccd277c11ed11ff9 Mon Sep 17 00:00:00 2001 From: SOV710 Date: Sun, 5 Apr 2026 03:36:46 +0000 Subject: [PATCH] fix(commit): preserve context and skip-confirm flag across regenerate When the user answers "No" at the confirmation prompt and chooses to regenerate, the recursive call to generateCommitMessageFromGitDiff forwarded only `diff`, `extraArgs`, and `fullGitMojiSpec`. Both `context` and `skipCommitConfirmation` were silently dropped, so: - `-c/--context` was honored only on the first attempt and lost on every regeneration; - `-y/--yes` was honored only on the first attempt, forcing a manual confirmation after regeneration. Forward both fields through the recursive call so the user's flags are respected for the full lifetime of the commit() invocation. --- src/commands/commit.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 6cd7048..08c4760 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -203,7 +203,9 @@ ${chalk.grey('——————————————————')}` await generateCommitMessageFromGitDiff({ diff, extraArgs, - fullGitMojiSpec + context, + fullGitMojiSpec, + skipCommitConfirmation }); } }