feat(connector-codex): headless host-mode Codex peer over app-server#97
Open
Lanzelot1 wants to merge 1 commit into
Open
feat(connector-codex): headless host-mode Codex peer over app-server#97Lanzelot1 wants to merge 1 commit into
Lanzelot1 wants to merge 1 commit into
Conversation
Drives a live codex app-server thread over JSON-RPC (turn/start=wake, turn/steer=mid-turn, turn/interrupt). Verified E2E against codex 0.137. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Revives a Codex connector as a headless host-mode mesh peer. The old pull-only connector was removed (
5b3eb21) because Codex had noclaude/channelanalog to wake an idle TUI. This routes around that entirely: it drives acodex app-serverthread over JSON-RPC, so a mesh message becomes a real Codex turn.What it adds
@cotal-ai/connector-codex(extensions/connector-codex/):app-server.ts— v2 JSON-RPC driver:turn/start(wake),turn/steer(true mid-turn inject),turn/interrupt; presence read off the event stream.host.ts— embeds aMeshAgent+ driver; ack-on-completion (only interrupted/crash redelivers) and scope isolation (a DM never rides a channel turn). Directed-only (DM / anycast / @-mention), ambient channel chatter dropped.extension.ts— registers thecodex-app-serverconnector; child env throughlaunchEnv()(forwards onlyOPENAI_API_KEY, no operator-env bleed).bin/cotal.ts; docs (docs/codex-integration.md, architecture.md, AGENTS.md).c+c.>) #52/feat: self-serve channel join — core-sub live reads + Plane-3 durable backstop (SPEC v0.3) #78) — no rebase needed.Verified (live, against real codex 0.137)
codex app-server generate-ts.pnpm typecheck+ build green.COTAL_E2E_CODEX=1 pnpm smoke:codex(own nats-server + real codex): handshake → threadId, peer online, DM → "PONG" round-trip.#team→ reply "42" on the channel.Fast-follow (not in this PR)
cotal_*tools — needs routing through the host's singleMeshAgent(else two presences). Reply-driven only today.codexTUI) — rides codex's newer--remotepath (codex#18203, codex#21551).🤖 Generated with Claude Code