ccmanager 3.1.1 → 3.1.2

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.
@@ -381,10 +381,6 @@ export class SessionManager extends EventEmitter {
381
381
  session.autoApprovalFailed = false;
382
382
  session.autoApprovalReason = undefined;
383
383
  }
384
- // Handle auto-approval if state is pending_auto_approval
385
- if (detectedState === 'pending_auto_approval') {
386
- this.handleAutoApproval(session);
387
- }
388
384
  // Execute status hook asynchronously (non-blocking) using Effect
389
385
  void Effect.runPromise(executeStatusHook(oldState, detectedState, session));
390
386
  this.emit('sessionStateChanged', session);
@@ -396,6 +392,13 @@ export class SessionManager extends EventEmitter {
396
392
  session.pendingState = undefined;
397
393
  session.pendingStateStart = undefined;
398
394
  }
395
+ // Handle auto-approval if state is pending_auto_approval and no verification is in progress.
396
+ // This ensures auto-approval is retried when the state remains pending_auto_approval
397
+ // but the previous verification completed (success, failure, timeout, or abort).
398
+ if (session.state === 'pending_auto_approval' &&
399
+ !session.autoApprovalAbortController) {
400
+ this.handleAutoApproval(session);
401
+ }
399
402
  }, STATE_CHECK_INTERVAL_MS);
400
403
  // Setup exit handler
401
404
  this.setupExitHandler(session);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccmanager",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "TUI application for managing multiple Claude Code sessions across Git worktrees",
5
5
  "license": "MIT",
6
6
  "author": "Kodai Kabasawa",