Skip to content

fix(smithy): update codex interactive sandbox flag#116

Open
furquanuddin94 wants to merge 1 commit into
stoneforge-ai:masterfrom
furquanuddin94:codex/codex-workspace-write-flag
Open

fix(smithy): update codex interactive sandbox flag#116
furquanuddin94 wants to merge 1 commit into
stoneforge-ai:masterfrom
furquanuddin94:codex/codex-workspace-write-flag

Conversation

@furquanuddin94
Copy link
Copy Markdown

@furquanuddin94 furquanuddin94 commented May 10, 2026

Summary

  • Replace Codex interactive --full-auto usage with the documented --sandbox workspace-write flag.
  • Extract interactive argument construction into buildCodexInteractiveArgs so the unit test exercises the production arg-building logic instead of duplicating it.
  • Keep the existing working-directory, resume, and model argument behavior intact.
  • Add coverage for the interactive argument builder and include a patch changeset.

Fixes #114.

Test Plan

  • bun test packages/smithy/src/providers/codex/provider.bun.test.ts
  • corepack pnpm --filter @stoneforge/smithy typecheck
  • git diff --check
  • Manual sanity: started the local dev stack and confirmed a Codex director session launches instead of failing on the deprecated flag.

@furquanuddin94 furquanuddin94 force-pushed the codex/codex-workspace-write-flag branch from d671a42 to 0e26f1a Compare May 10, 2026 12:17
Extract the Codex interactive argument construction into buildCodexInteractiveArgs so the unit test exercises the same production arg-building logic used by spawn instead of duplicating that logic in the test. The helper preserves the existing working-directory, resume, and model behavior.

Codex now documents --sandbox workspace-write as the replacement for the deprecated --full-auto shortcut, so use the documented sandbox flag for fresh and resumed interactive sessions.

Refs stoneforge-ai#114.
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.

bug: Codex director sessions crash with current Codex CLI flags

1 participant