Fixes issue #220 where the second message in a Codex session would fail with "error: unexpected argument '--json' found" because the --json flag was placed before the thread_id positional argument instead of after it. The codex CLI requires the --json flag to be placed after the subcommand and positional arguments (thread_id) for the resume command to work correctly. Before: codex exec resume --json --skip-git-repo-check <thread_id> <prompt> After: codex exec resume --skip-git-repo-check <thread_id> --json --cd <dir> <prompt> Co-authored-by: Ubuntu <ubuntu@localhost.localdomain> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>