Skip to content

fix(cli): forward Codex passthrough args#1523

Draft
davidrimshnick-pplx wants to merge 1 commit into
slopus:mainfrom
davidrimshnick-pplx:psi/codex-passthrough-args
Draft

fix(cli): forward Codex passthrough args#1523
davidrimshnick-pplx wants to merge 1 commit into
slopus:mainfrom
davidrimshnick-pplx:psi/codex-passthrough-args

Conversation

@davidrimshnick-pplx

@davidrimshnick-pplx davidrimshnick-pplx commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Fixes #1246 by adding Codex-only -- pass-through support for users who need to forward Codex CLI flags such as --dangerously-bypass-approvals-and-sandbox.

Changes

  • Split happy codex arguments at the first --, keeping Happy-owned flags before the delimiter and forwarding only the trailing args to Codex.
  • Pass forwarded args into the codex app-server --listen stdio:// launch before the app-server subcommand, matching Codex global option ordering.
  • Preserve existing happy codex behavior when no delimiter is provided.
  • Document the Codex pass-through syntax in the root and CLI READMEs.

Validation

  • NPM_CONFIG_MANAGE_PACKAGE_MANAGER_VERSIONS=false pnpm --filter @slopus/happy-wire build
  • NPM_CONFIG_MANAGE_PACKAGE_MANAGER_VERSIONS=false pnpm --filter happy exec vitest run src/codex/cliArgs.test.ts src/commands/codexCommand.test.ts src/codex/codexAppServerClient.test.ts
  • NPM_CONFIG_MANAGE_PACKAGE_MANAGER_VERSIONS=false pnpm --filter happy typecheck
  • NPM_CONFIG_MANAGE_PACKAGE_MANAGER_VERSIONS=false pnpm --filter happy build

@davidrimshnick-pplx
davidrimshnick-pplx force-pushed the psi/codex-passthrough-args branch from 177448b to b42f5f5 Compare July 14, 2026 03:23
@davidrimshnick-pplx
davidrimshnick-pplx force-pushed the psi/codex-passthrough-args branch from b42f5f5 to a74caf8 Compare July 14, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

happy codex does not forward Codex sandbox flags, causing bwrap failures in WSL/devcontainer environments

1 participant