[BUG] Choosing fullscreen renderer offered on tui after starting claude first removes bypassPermissions mode arguments
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I run the "claude" command first and I am asked whether I want to try the "fullscreen renderer", if I choose "yes", my original cli arguments are reset. Some arguments are kept like "--allow-dangerously-skip-permissions", but others are removed like "--dangerously-skip-permissions" or "--permissionMode bypassPermissions".
When I chose "no" and later manually run "/tui fullscreen", arguments are changed. "--dangerously-skip-permissions" replaced with "--allow-dangerously-skip-permissions --permissionMode bypassPermissions" so it still works as expected, but not when I choose it on the TUI immediately.
What Should Happen?
Permissions should still by bypassed even if with different arguments so claude could be used more freely in an isolated environment like Docker Sandboxes.
Error Messages/Logs
`ps auxf` output before changing the renderer
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
agent 443 0.0 0.0 5120 3952 pts/1 Ss 15:34 0:00 bash
agent 444 0.0 0.0 6320 3568 pts/1 R+ 15:34 0:00 \_ ps auxf
agent 356 9.9 1.0 6558160 337104 pts/0 Ssl+ 15:34 0:02 claude --allow-dangerously-skip-permissions --permission-mode bypassPermissions --dangerously-skip-permissions --no-chrome
`ps auxf` output after using `/tui fullscreen`
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
agent 529 0.0 0.0 4624 3968 pts/1 Ss 15:37 0:00 bash
agent 530 0.0 0.0 6288 3568 pts/1 R+ 15:37 0:00 \_ ps auxf
agent 351 25.5 1.5 6628416 527920 pts/0 Rsl+ 15:37 0:10 /home/agent/.local/bin/claude --allow-dangerously-skip-permissions --permission-mode bypassPermissions
`ps auxf` output after choosing "fullscreen renderer" during the initialization of the sandbox on the tui:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
agent 443 0.0 0.0 5120 3952 pts/1 Ss 15:34 0:00 bash
agent 530 0.0 0.0 6176 3584 pts/1 R+ 15:36 0:00 \_ ps auxf
agent 356 7.3 1.4 6558928 472464 pts/0 Rsl+ 15:34 0:07 /home/agent/.local/bin/claude --allow-dangerously-skip-permissions
Steps to Reproduce
- Have a clean environment like a container or a new machine, or remove
/.claudeand settings files like~/.claude.json - Run
claude --dangerously-skip-permissionsor evenclaude --allow-dangerously-skip-permissions --permissions bypassPermissions - Do the initialization (select a color profile, authenticate, acccept security notes, trust the folder, accept that claude code is running in "Bypass Permissions mode") until the question about "Fullscreen renderer".
- Choose "Yes, try it"
- Check the output of
ps auxfooking for the claude command and confirm parameters were changed. - Ask claude to create a file and confirm it asks back for permission.
Claude Model
_No response_
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.231 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗