Skip to content

[codex] tighten codex provider contracts#2361

Draft
chiptoe-svg wants to merge 1 commit into
nanocoai:providersfrom
chiptoe-svg:codex-provider-doc-contracts
Draft

[codex] tighten codex provider contracts#2361
chiptoe-svg wants to merge 1 commit into
nanocoai:providersfrom
chiptoe-svg:codex-provider-doc-contracts

Conversation

@chiptoe-svg
Copy link
Copy Markdown

Summary

  • replace the stale Codex SDK provider sketch with the current codex app-server JSON-RPC contract
  • make CODEX_MODEL an optional override so Codex CLI/app-server can use its configured default when unset
  • remove stale 40K/manual-compaction guidance and document Codex-owned context management
  • add focused tests for the pinned @openai/codex install contract and the container-bound auto-approval assumption

Why

The providers branch already runs Codex through codex app-server, but docs and examples still described parts of the older SDK and client-driven compaction design. That made the provider contract look different from the implementation and kept a stale hardcoded model default in code.

Validation

  • cd container/agent-runner && bun test src/providers/codex.factory.test.ts src/providers/codex-app-server.test.ts
  • cd container/agent-runner && bun run typecheck
  • pnpm run typecheck
  • git diff --check

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.

1 participant