mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 22:09:44 +02:00
Codex agents spawn via `codex app-server --listen stdio://`, which does not accept `-m` / `--model` (those belong to the normal Codex CLI). When a user's custom_args still carried those tokens the process exited before the JSON-RPC initialize handshake with `codex process exited`, with no actionable error. Extract `-m <v>`, `--model <v>`, and `--model=<v>` from opts.CustomArgs before invoking app-server and promote the value into opts.Model, so that startOrResumeThread can pass it through the `thread/start` payload where Codex actually reads the field. Fixes #1308.