Skip to content

fix(middleware): remove asymmetric ANTHROPIC_API_KEY stripping from CodexCliRuntime (#14)#15

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/remove-codex-env-stripping
Feb 25, 2026
Merged

fix(middleware): remove asymmetric ANTHROPIC_API_KEY stripping from CodexCliRuntime (#14)#15
alexey-pelykh merged 1 commit intomainfrom
fix/remove-codex-env-stripping

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Removed asymmetric ANTHROPIC_API_KEY stripping from CodexCliRuntime.buildEnv() — now returns {} consistent with Claude and Gemini runtimes
  • Updated tests to match the simplified pattern (3 env-stripping tests replaced with 2 generic empty-record tests)

Closes #14

Test plan

  • buildEnv() returns empty record
  • No auth vars injected regardless of params
  • All 47 existing tests pass
  • Build passes
  • pnpm check passes

🤖 Generated with Claude Code

…odexCliRuntime (#14)

buildEnv() now returns {} like Claude and Gemini runtimes.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@alexey-pelykh alexey-pelykh merged commit be778b9 into main Feb 25, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/remove-codex-env-stripping branch February 25, 2026 14:57
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.

Clean up cross-provider env var stripping from CodexCliRuntime

1 participant