-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
omc team: Claude Code bypass permissions TUI dialog auto-selects 'No, exit' in small tmux panes #2184
Description
Problem
When running omc team, worker panes in tmux are typically 11-12 rows tall. Claude Code's bypass permissions confirmation dialog renders with the cursor on "No, exit" (the first/default option). Because the pane is too short to display the "Yes, I accept" option, the dialog auto-selects "No, exit" and Claude Code exits immediately.
This means omc team with Claude workers cannot start in the default tmux layout.
Environment
- omc version: 4.10.2
- Claude Code version: 2.1.92
- OS: Ubuntu (WSL2)
- tmux session created by omc team with default
-y 50(or inheriting terminal size)
Steps to Reproduce
- Run
omc team 3:claude "any task" - Observe worker panes are ~11 rows tall (50 rows split across leader + 2 workers)
- Claude Code launches with
--permission-mode bypassPermissions(or--dangerously-skip-permissions) - The TUI confirmation dialog renders, but auto-selects "No, exit" because the pane is too short
- Claude exits, omc sends task text to raw bash, which errors with
syntax error near unexpected token
What I Tried
- Setting
hasTrustDialogAccepted: truein~/.claude.jsonfor the project ✅ (doesn't help - different dialog) - Setting
skipDangerousModePermissionPrompt: truein~/.claude.json❌ (doesn't seem to take effect for child processes) - Patching
model-contract.jsto use--permission-mode bypassPermissionsinstead of--dangerously-skip-permissions✅ (correct flag, but dialog still appears) - Increasing tmux session size with
-y 80in thenew-sessioncall ❌ (detached sessions ignore size flags without a client attached)
Root Cause
In team.js (bundled in oh-my-claude-sisyphus), the tmux session is created and split into panes. With 2 workers + 1 leader in a ~50 row window, each pane gets ~11-12 rows. Claude Code's Ink-based TUI dialog for bypass permissions needs at least ~15 rows to render both options visible.
Suggested Fixes
Option A (best): Launch Claude Code workers with --print mode + --permission-mode bypassPermissions to avoid the TUI dialog entirely. The --print flag skips the trust/permissions dialogs.
Option B: Add an environment variable (e.g., CLAUDE_CODE_NONINTERACTIVE=1 or CLAUDE_CODE_ACCEPT_BYPASS=1) that Claude Code respects to skip the bypass permissions confirmation.
Option C: When creating the tmux session for teams, use larger pane sizes. For detached sessions, attach a phantom client or use tmux resize-window after creation.
Option D: Use a vertical-only split layout so worker panes get more rows (full window width, half height each instead of quarter).
Workaround
Currently none that works reliably. The dialog cannot be bypassed programmatically in small panes.