Skip to content

Allow spawning codex by passing cli subcommand#127

Merged
benbrandt merged 2 commits into
agentclientprotocol:mainfrom
SteffenDE:sd-cli
May 21, 2026
Merged

Allow spawning codex by passing cli subcommand#127
benbrandt merged 2 commits into
agentclientprotocol:mainfrom
SteffenDE:sd-cli

Conversation

@SteffenDE
Copy link
Copy Markdown
Contributor

This allows clients to implement interactive terminal authentication, similar to --cli in claude-agent-acp:

https://github.com/agentclientprotocol/claude-agent-acp/blob/5b9311938d97f47400debd66f2b4792e50639c6b/src/index.ts#L7-L36

I did not change the reported auth methods in this PR.

Resolve conflict in src/index.ts caused by agentclientprotocol#135 (codex app-server is
now started via node when using the bundled codex.js). Drop the local
getCodexPath() helper and pass process.env["CODEX_PATH"] (possibly
undefined) to both startCodexConnection and runCodexCli, mirroring
the same bundled-path + node-spawn fallback inside runCodexCli.
@benbrandt benbrandt merged commit 48412ff into agentclientprotocol:main May 21, 2026
1 check passed
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.

3 participants