ccmanager 3.1.1 → 3.1.3

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.
package/README.md CHANGED
@@ -43,13 +43,31 @@ Claude Squad doesn't show session states in its menu, making it hard to know whi
43
43
  ### 🎯 Simple and intuitive interface
44
44
  Following Claude Code's philosophy, CCManager keeps things minimal and intuitive. The interface is so simple you'll understand it in seconds - no manual needed.
45
45
 
46
+ ## Requirements
47
+
48
+ - **Node.js 22 or later** is required to run CCManager.
49
+
46
50
  ## Install
47
51
 
48
52
  ```bash
49
53
  npm install -g ccmanager
50
54
  ```
51
55
 
52
- Or for local development:
56
+ ### Using mise
57
+
58
+ If you use [mise](https://mise.jdx.dev/) as a version manager, you can install CCManager with:
59
+
60
+ ```bash
61
+ mise install npm:ccmanager && mise use -g npm:ccmanager
62
+ ```
63
+
64
+ To run CCManager with Node.js 22:
65
+
66
+ ```bash
67
+ mise exec node@22 -- ccmanager
68
+ ```
69
+
70
+ ### Local Development
53
71
 
54
72
  ```bash
55
73
  npm install
@@ -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.3",
4
4
  "description": "TUI application for managing multiple Claude Code sessions across Git worktrees",
5
5
  "license": "MIT",
6
6
  "author": "Kodai Kabasawa",