Skip to content

Conversation

@celia-oai
Copy link
Collaborator

@celia-oai celia-oai commented Feb 2, 2026

codex debug app-server forwards the message through codex-app-server-test-client’s send_message_v2 library entry point, using std::env::current_exe() to resolve the codex binary.

for how it looks like, see:

celia@com-92114 codex-rs % cargo build -p codex-cli && target/debug/codex debug app-server --help                       
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s
Tooling: helps debug the app server

Usage: codex debug app-server [OPTIONS] <COMMAND>

Commands:
  send-message-v2  
  help             Print this message or the help of the given subcommand(s)

and

celia@com-92114 codex-rs % cargo build -p codex-cli && target/debug/codex debug app-server send-message-v2 "hello world"
   Compiling codex-cli v0.0.0 (/Users/celia/code/codex/codex-rs/cli)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.38s
> {
>   "method": "initialize",
>   "id": "f8ba9f60-3a49-4ea9-81d6-4ab6853e3954",
>   "params": {
>     "clientInfo": {
>       "name": "codex-toy-app-server",
>       "title": "Codex Toy App Server",
>       "version": "0.0.0"
>     },
>     "capabilities": {
>       "experimentalApi": true
>     }
>   }
> }
< {
<   "id": "f8ba9f60-3a49-4ea9-81d6-4ab6853e3954",
<   "result": {
<     "userAgent": "codex-toy-app-server/0.0.0 (Mac OS 26.2.0; arm64) vscode/2.4.27 (codex-toy-app-server; 0.0.0)"
<   }
< }
< initialize response: InitializeResponse { user_agent: "codex-toy-app-server/0.0.0 (Mac OS 26.2.0; arm64) vscode/2.4.27 (codex-toy-app-server; 0.0.0)" }
> {
>   "method": "thread/start",
>   "id": "203f1630-beee-4e60-b17b-9eff16b1638b",
>   "params": {
>     "model": null,
>     "modelProvider": null,
>     "cwd": null,
>     "approvalPolicy": null,
>     "sandbox": null,
>     "config": null,
>     "baseInstructions": null,
>     "developerInstructions": null,
>     "personality": null,
>     "ephemeral": null,
>     "dynamicTools": null,
>     "mockExperimentalField": null,
>     "experimentalRawEvents": false
>   }
> }
...

@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch 4 times, most recently from 9c96e05 to c2d74ad Compare February 2, 2026 05:06
@celia-oai celia-oai changed the title changes add codex debug app-server tooling Feb 2, 2026
@celia-oai celia-oai changed the title add codex debug app-server tooling chore: add codex debug app-server tooling Feb 2, 2026
@celia-oai celia-oai requested a review from bolinfest February 2, 2026 05:09
@celia-oai celia-oai marked this pull request as ready for review February 2, 2026 05:09
@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch 4 times, most recently from ddde0b8 to 6ac69ce Compare February 2, 2026 20:41
@celia-oai celia-oai requested a review from bolinfest February 2, 2026 20:41
@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch from 6210111 to 06cbf99 Compare February 2, 2026 23:42
@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch from 06cbf99 to 9fdf129 Compare February 3, 2026 00:33
@celia-oai celia-oai requested a review from owenlin0 February 3, 2026 04:55
@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch 2 times, most recently from 54add7f to 2311edd Compare February 3, 2026 22:47
@celia-oai celia-oai requested a review from bolinfest February 3, 2026 22:53
@celia-oai celia-oai force-pushed the dev/cc/new-debug-command branch from 2311edd to f9875e8 Compare February 3, 2026 23:01
@celia-oai celia-oai enabled auto-merge (squash) February 3, 2026 23:13
@celia-oai celia-oai merged commit 16647b1 into main Feb 3, 2026
32 checks passed
@celia-oai celia-oai deleted the dev/cc/new-debug-command branch February 3, 2026 23:17
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants