Skip to content

fix(codex): speak app-server JSON-RPC protocol#1665

Merged
christso merged 1 commit into
mainfrom
runtime-codex-app-server
Jul 5, 2026
Merged

fix(codex): speak app-server JSON-RPC protocol#1665
christso merged 1 commit into
mainfrom
runtime-codex-app-server

Conversation

@christso

@christso christso commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

codex-app-server targets 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 for codex 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 before turn/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 keeps codex-cli behavior unchanged and scopes the interactive protocol path to provider: codex-app-server.

Related: EntityProcess/agentv-beads#20

Validation

  • bun test packages/core/test/evaluation/providers/codex.test.ts
  • bunx biome check packages/core/src/evaluation/providers/codex-cli.ts packages/core/test/evaluation/providers/codex.test.ts
  • bun --filter @agentv/core build
  • bun run build
  • Live green dogfood: codex-app-server-local with live local-openai-grader, run 2026-07-05T04-10-04-659Z, 1/1 pass, 100% score

Evidence

Private evidence branch: EntityProcess/agentv-private:evidence/av-t2o5-4-codex-app-server-jsonrpc

Evidence commit: ba0ad96

Red evidence: EntityProcess/agentv-private:evidence/av-y7eq-9-host-runtime-live-matrix at f714ec1, run 2026-07-05T03-22-35-048Z, where app-server rejected the old one-shot payload with JSON-RPC deserialization failure.


Compound Engineering
GPT--5_Codex

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9911bc2
Status: ✅  Deploy successful!
Preview URL: https://c144ae69.agentv.pages.dev
Branch Preview URL: https://runtime-codex-app-server.agentv.pages.dev

View logs

@christso christso marked this pull request as ready for review July 5, 2026 04:26
@christso christso merged commit 5725b76 into main Jul 5, 2026
8 checks passed
@christso christso deleted the runtime-codex-app-server branch July 5, 2026 04:32
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