feat(middleware): implement LIVE=1 smoke test for Codex CLI runtime (#37)#40
Merged
alexey-pelykh merged 1 commit intomainfrom Feb 26, 2026
Merged
feat(middleware): implement LIVE=1 smoke test for Codex CLI runtime (#37)#40alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
c9447e4 to
a3312de
Compare
) Add codex.live.test.ts with single-turn and session resumption tests, gated behind LIVE=1. Fix two pre-existing CodexCliRuntime bugs discovered during live testing: - serializeMcpServersToToml: emit command as TOML string with separate args array (codex expects string, not array) - buildArgs for resume: include prompt and drop unsupported --color flag Co-Authored-By: Claude Opus 4.6 <[email protected]>
a3312de to
7b1432e
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/middleware/__smoke__/codex.live.test.ts— end-to-end smoke test for the Codex CLI runtimeChannelBridge→CodexCliRuntime→codexCLI → NDJSON streaming → assertionLIVE=1environment variable (skipped in CI)git initin temp dir setup (codex requires a trusted git directory)CodexCliRuntimebugs discovered during live testing:serializeMcpServersToToml: emitcommandas TOML string with separateargsarray (codex expects string, not array)buildArgsfor resume: include prompt and drop unsupported--colorflagTest plan
LIVE=1(verified: 2 tests skipped)LIVE=1smoke test passes (single-turn: 11s, resume: 1.8s)pnpm format)pnpm lint)pnpm tsgo)Closes #37
🤖 Generated with Claude Code