You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stabilize Claude permission mode for unattended loops
- default Claude Code loops to permission-mode auto\n- validate and normalize Claude permission mode config\n- preserve managed .ralphrc upgrades and env precedence
-**Copilot driver**_(experimental)_ — invokes `copilot --autopilot --yolo` with plain-text output
400
400
-**Cursor driver**_(experimental)_ — invokes `cursor-agent -p --force --output-format json`, persists `session_id` for `--resume`, and switches to `stream-json` only for live output
|`CLAUDE_TIMEOUT_MINUTES`|`15`| Timeout per loop driver invocation |
62
62
|`CLAUDE_OUTPUT_FORMAT`|`json`| Output format (json or text) |
63
63
|`ALLOWED_TOOLS`|`Write,Read,Edit,MultiEdit,Glob,Grep,Task,TodoWrite,WebFetch,WebSearch,NotebookEdit,Bash`| Claude Code only. Ignored by codex, cursor, and copilot |
64
+
|`CLAUDE_PERMISSION_MODE`|`auto`| Claude Code only. Prevents interactive approval workflows from blocking unattended loops |
64
65
|`PERMISSION_DENIAL_MODE`|`continue`| How Ralph responds to permission denials: continue, halt, or threshold |
65
66
|`SESSION_CONTINUITY`|`true`| Maintain context across loops |
66
67
|`SESSION_EXPIRY_HOURS`|`24`| Session expiration time |
@@ -340,9 +341,10 @@ When using `--monitor` with `--live`, tmux creates a 3-pane layout:
340
341
341
342
**Solutions:**
342
343
1. For Claude Code, update `ALLOWED_TOOLS` in `.ralph/.ralphrc` to include needed tools
343
-
2. For codex, cursor, and copilot, review the driver's native permission settings; `ALLOWED_TOOLS` is ignored
344
-
3. If you want unattended behavior, keep `PERMISSION_DENIAL_MODE="continue"` in `.ralph/.ralphrc`
345
-
4. Reset circuit breaker if needed: `bash .ralph/ralph_loop.sh --reset-circuit`
344
+
2. For Claude Code unattended loops, keep `CLAUDE_PERMISSION_MODE="auto"` in `.ralph/.ralphrc`
345
+
3. For codex, cursor, and copilot, review the driver's native permission settings; `ALLOWED_TOOLS` is ignored
346
+
4. If you want unattended behavior, keep `PERMISSION_DENIAL_MODE="continue"` in `.ralph/.ralphrc`
347
+
5. Reset circuit breaker if needed: `bash .ralph/ralph_loop.sh --reset-circuit`
0 commit comments