fix(codex): speak app-server JSON-RPC protocol#1665
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
9911bc2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c144ae69.agentv.pages.dev |
| Branch Preview URL: | https://runtime-codex-app-server.agentv.pages.dev |
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
codex-app-servertargets now drive the installed Codex app-server as the interactive JSON-RPC endpoint it is, instead of sending a one-shot custom payload and waiting forcodex exec --json-style output. The adapter initializes the app-server, starts an ephemeral thread, starts a turn with the AgentV prompt, and extracts the final assistant message from app-server notifications beforeturn/completed.The failure mode from the prior live matrix was a protocol mismatch: Codex 0.142.5 rejected AgentV's
{ type: "agentv.invoke" }stdin object with a JSON-RPC deserialization error, so AgentV reported malformed/no output. This PR keepscodex-clibehavior unchanged and scopes the interactive protocol path toprovider: codex-app-server.Related: EntityProcess/agentv-beads#20
Validation
bun test packages/core/test/evaluation/providers/codex.test.tsbunx biome check packages/core/src/evaluation/providers/codex-cli.ts packages/core/test/evaluation/providers/codex.test.tsbun --filter @agentv/core buildbun run buildcodex-app-server-localwith livelocal-openai-grader, run2026-07-05T04-10-04-659Z, 1/1 pass, 100% scoreEvidence
Private evidence branch:
EntityProcess/agentv-private:evidence/av-t2o5-4-codex-app-server-jsonrpcEvidence commit:
ba0ad96Red evidence:
EntityProcess/agentv-private:evidence/av-y7eq-9-host-runtime-live-matrixatf714ec1, run2026-07-05T03-22-35-048Z, where app-server rejected the old one-shot payload with JSON-RPC deserialization failure.