@@ -203,7 +203,7 @@ Examples:
203203
204204Advanced:
205205 deva.sh codex -v ~/.ssh:/home/deva/.ssh:ro -- -m gpt-5-codex
206- deva.sh claude -- --trace --continue # Trace requests with cctrace
206+ deva.sh claude --trace -- --continue # Trace requests with cctrace
207207 deva.sh --show-config # Debug configuration
208208 deva.sh --no-docker claude # Disable Docker-in-Docker auto-mount
209209USAGE
@@ -3278,12 +3278,17 @@ else
32783278 parse_wrapper_args
32793279fi
32803280
3281+ # Preserve the -- boundary so agent_prepare can distinguish deva-level
3282+ # flags (--auth-with, --trace) from agent CLI args: flags are only
3283+ # interpreted before the sentinel; everything after passes verbatim (#427).
32813284if [ ${# AGENT_ARGS[@]} -gt 0 ]; then
32823285 if [ ${# AGENT_ARGV[@]} -gt 0 ]; then
3283- AGENT_ARGV=(" ${AGENT_ARGS[@]} " " ${AGENT_ARGV[@]} " )
3286+ AGENT_ARGV=(" ${AGENT_ARGS[@]} " " -- " " ${AGENT_ARGV[@]} " )
32843287 else
32853288 AGENT_ARGV=(" ${AGENT_ARGS[@]} " )
32863289 fi
3290+ elif [ ${# AGENT_ARGV[@]} -gt 0 ]; then
3291+ AGENT_ARGV=(" --" " ${AGENT_ARGV[@]} " )
32873292fi
32883293
32893294_step " start"
@@ -3409,8 +3414,13 @@ fi
34093414# Warn if explicit --config-home is missing the agent's auth directory.
34103415# Only warn for default OAuth flows — api-key/bedrock/vertex/copilot don't need local auth dirs.
34113416# Peek at AGENT_ARGV + AGENT_ARGS to detect --auth-with before agent_prepare() runs.
3417+ # Only scan before the -- sentinel; post-side --auth-with belongs to the
3418+ # agent CLI and must not suppress the missing-dir warning (#427).
34123419_config_home_uses_default_auth= true
34133420for _arg in " ${AGENT_ARGV[@]+" ${AGENT_ARGV[@]} " } " " ${AGENT_ARGS[@]+" ${AGENT_ARGS[@]} " } " ; do
3421+ if [ " $_arg " = " --" ]; then
3422+ break
3423+ fi
34143424 if [ " $_arg " = " --auth-with" ]; then
34153425 _config_home_uses_default_auth=false
34163426 break
0 commit comments