Skip to content

Commit 8d8e43e

Browse files
lroolleclaude
andcommitted
fix: stale trace examples in usage/changelog, config-home peek respects --
Per review on #428: - usage() trace example and CHANGELOG #418 entry updated to put --trace before -- - config-home --auth-with peek stops at the -- sentinel so a post-side --auth-with (agent's own flag) doesn't suppress the missing-dir warning Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 97b91f0 commit 8d8e43e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
declared adjacent — a cctrace-only bump no longer rebuilds the npm
2020
agent layer or (rust image) the Playwright layer (#419)
2121
- `--trace` for codex and grok via cctrace client profiles (#418).
22-
`deva codex -- --trace exec "..."` / `deva grok -- --trace -p "..."`
22+
`deva codex --trace -- exec "..."` / `deva grok --trace -- -p "..."`
2323
wrap the agent with `cctrace <client> --no-open --`; always MITM capture
2424
- Container-scoped CA trust for traced sessions (#414): the entrypoint
2525
installs the cctrace MITM CA into the container system store when

deva.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Examples:
203203
204204
Advanced:
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
209209
USAGE
@@ -3414,8 +3414,13 @@ fi
34143414
# Warn if explicit --config-home is missing the agent's auth directory.
34153415
# Only warn for default OAuth flows — api-key/bedrock/vertex/copilot don't need local auth dirs.
34163416
# 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).
34173419
_config_home_uses_default_auth=true
34183420
for _arg in "${AGENT_ARGV[@]+"${AGENT_ARGV[@]}"}" "${AGENT_ARGS[@]+"${AGENT_ARGS[@]}"}"; do
3421+
if [ "$_arg" = "--" ]; then
3422+
break
3423+
fi
34193424
if [ "$_arg" = "--auth-with" ]; then
34203425
_config_home_uses_default_auth=false
34213426
break

0 commit comments

Comments
 (0)