@snapcommit/cli 3.8.5 → 3.8.6

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.
@@ -191,7 +191,13 @@ async function executeCommitWithAI(intent) {
191
191
  rlFileSelect.question(chalk_1.default.cyan('Select files: ') +
192
192
  chalk_1.default.gray('(Enter=all, 1-3=specific, 1,3,5=multiple): '), (ans) => {
193
193
  // Don't close - just resolve and let it clean up
194
- setImmediate(() => rlFileSelect.close());
194
+ setImmediate(() => {
195
+ rlFileSelect.close();
196
+ // Resume stdin for parent REPL
197
+ if (process.stdin.isPaused()) {
198
+ process.stdin.resume();
199
+ }
200
+ });
195
201
  resolve(ans.trim());
196
202
  });
197
203
  });
@@ -255,7 +261,13 @@ async function executeCommitWithAI(intent) {
255
261
  const response = await new Promise((resolve) => {
256
262
  rlCommit.question(chalk_1.default.gray('→ Press Enter to commit, or edit message: '), (ans) => {
257
263
  // Don't close - just resolve and let it clean up
258
- setImmediate(() => rlCommit.close());
264
+ setImmediate(() => {
265
+ rlCommit.close();
266
+ // Resume stdin for parent REPL
267
+ if (process.stdin.isPaused()) {
268
+ process.stdin.resume();
269
+ }
270
+ });
259
271
  resolve(ans.trim());
260
272
  });
261
273
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcommit/cli",
3
- "version": "3.8.5",
3
+ "version": "3.8.6",
4
4
  "description": "Instant AI commits. Beautiful progress tracking. Never write commit messages again.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {