Skip to content

fix(codex): remove unsupported --full-auto and transition to modern flags#34

Closed
khoant94 wants to merge 1 commit into
aannoo:mainfrom
khoant94:fix/codex-launch-full-auto
Closed

fix(codex): remove unsupported --full-auto and transition to modern flags#34
khoant94 wants to merge 1 commit into
aannoo:mainfrom
khoant94:fix/codex-launch-full-auto

Conversation

@khoant94

@khoant94 khoant94 commented May 1, 2026

Copy link
Copy Markdown
Contributor

Problem

hcom hardcodes the --full-auto flag when launching Codex agents. Modern codex-cli (v0.128.0+) rejects this flag, causing launch failures with an 'unexpected argument' error.

Solution

  • Replaced --full-auto with modern flags (--sandbox workspace-write --ask-for-approval on-request) in src/tools/codex_preprocessing.rs.
  • Removed --full-auto from the Codex argument parser in src/tools/codex_args.rs.
  • Updated src/config.rs to normalize legacy 'full-auto' sandbox mode to 'workspace' instead of 'danger-full-access'.
  • Updated unit tests in codex_preprocessing, codex_args, config, and terminal.

Test Plan

  • Ran cargo test codex_args
  • Ran cargo test codex_preprocessing
  • Ran cargo test config
  • Verified that --full-auto is now rejected by the parser and correctly replaced in preprocessing logic.

…lags

Problem:
hcom hardcodes the --full-auto flag when launching Codex agents.
Modern codex-cli (v0.128.0+) rejects this flag, causing launch failures
with an 'unexpected argument' error.

Solution:
- Replaced --full-auto with modern flags (--sandbox workspace-write
  --ask-for-approval on-request) in src/tools/codex_preprocessing.rs.
- Removed --full-auto from the Codex argument parser in src/tools/codex_args.rs.
- Updated src/config.rs to normalize legacy 'full-auto' sandbox mode
  to 'workspace' instead of 'danger-full-access'.
- Updated unit tests in codex_preprocessing, codex_args, config, and terminal.
@mmkzer0

mmkzer0 commented May 1, 2026

Copy link
Copy Markdown
Contributor

Encountered the same issue and independently came to the same conclusion as @khoant94 ; validated locally after codex update broke hcom usage semantics. Combined with #35 locally and both PRs compound without issue.

@aannoo

aannoo commented May 1, 2026

Copy link
Copy Markdown
Owner

@aannoo aannoo closed this May 1, 2026
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.

3 participants