@snapcommit/cli 3.9.4 → 3.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -324,8 +324,10 @@ async function executeCommitWithAI(intent) {
|
|
|
324
324
|
console.log(chalk_1.default.red(`\n❌ Commit failed: ${error.message}\n`));
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
|
-
// Push if requested
|
|
328
|
-
const shouldPush = intent.shouldPush ||
|
|
327
|
+
// Push if requested (always push when user says "push", even if AI action is "commit")
|
|
328
|
+
const shouldPush = intent.shouldPush ||
|
|
329
|
+
intent.action === 'push' ||
|
|
330
|
+
intent.gitCommands?.some((cmd) => cmd.includes('push'));
|
|
329
331
|
if (shouldPush) {
|
|
330
332
|
// STEP 1: Pull first to avoid conflicts (like Cursor does!)
|
|
331
333
|
try {
|