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
With [session] resume_agents_on_restore = true, a Claude Code pane is restored as claude --resume=<id> and the flags it was originally launched with are dropped.
I launch agents as claude --dangerously-skip-permissions. That flag is launch-only, there is no config-side workaround: permissions.defaultMode = "bypassPermissions" in ~/.claude/settings.json is rejected on startup.
Cannot set permission mode to bypassPermissions because the session was not launched with --dangerously-skip-permissions
So after every restart the restored panes start asking for permission again. Same for other agents whose autonomy level is a launch flag only (codex --full-auto etc).
Two ways this could work, either is fine:
reuse the argv the pane was originally started with when resuming
a config escape hatch:
[session.resume_args]
claude = ["--dangerously-skip-permissions"]
Current workaround is a zsh function shadowing claude that re-injects the flag when --resume is present, which only works because the resume command goes through the shell.
herdr 0.7.5, macOS 26.5.2 arm64, claude code 2.1.220
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
With
[session] resume_agents_on_restore = true, a Claude Code pane is restored asclaude --resume=<id>and the flags it was originally launched with are dropped.I launch agents as
claude --dangerously-skip-permissions. That flag is launch-only, there is no config-side workaround:permissions.defaultMode = "bypassPermissions"in~/.claude/settings.jsonis rejected on startup.So after every restart the restored panes start asking for permission again. Same for other agents whose autonomy level is a launch flag only (codex
--full-autoetc).Two ways this could work, either is fine:
Current workaround is a zsh function shadowing
claudethat re-injects the flag when--resumeis present, which only works because the resume command goes through the shell.herdr 0.7.5, macOS 26.5.2 arm64, claude code 2.1.220
All reactions