Repository navigation
Description
What happened
2026-09-23, PR #1336 at 03c17d67e on dev@17ae56d34, a plain codeaf chat in a workspace, conversation on codex/gpt-5.5 then codex/gpt-5.6-sol. The transcript's call rows name the model the ChatGPT backend answered with, and nothing else about where the answer came from:
{"type":"call","call":{"model":"gpt-5.5","input":14072,"cacheRead":4608,"output":5},"timestamp":"2026-09-23T13:44:34Z"}
Every other row in the same profile carries the server that answered — "endpoint":"Alibaba", "StreamLake", "Baidu" on OpenRouter-served DeepSeek calls, "Modal" on GLM. A reader working out which machine answered a Codex turn, or counting endpoint hops across a conversation, finds the column blank for exactly the service that was just added.
Replication
Deterministic (no model). The real-agent shape in internal/session/codex_client_test.go (a fake issuer, a fake backend answering one /responses stream) followed by a read of the transcript: the call row for that turn has no endpoint field. The same test against an httptest OpenRouter-shaped endpoint whose completion carries "provider":"Alibaba" writes "endpoint":"Alibaba".
Field (real models). A ChatGPT plan: codeaf connect codex, one turn on codex/gpt-5.5, then
grep -h '"type":"call"' ~/.codeaf/v3/projects/*/*/transcript.jsonl | tail -1
No money.
Where
The endpoint column is the server's own name for itself: servedResponse.Provider in internal/provider/client.go is read into the turn's slot by note in internal/provider/velocity.go, whose attribution law says an answer that does not identify itself replaces nothing. The Responses stream from the ChatGPT backend carries no provider, and the translating transport in internal/codexauth/transport.go (the chunk literal in its stream mapper and the whole-response literal beside it) hands the client chunks with model but no provider, so the slot is never written and the row is left blank.
The fix
The transport names the server on every chunk and every whole response it hands the client, spelled Codex — the service's written name, which is what the model column beside it (gpt-5.5) is read against and what every other codeaf surface calls it — so the existing attribution road writes "endpoint":"Codex" with no change to the client or the session. Not the host name: the column elsewhere carries the upstream's name, not an address.
Acceptance
- e2e: the fixture drive of the built binary (fake issuer + fake backend): after a turn on
codex/gpt-5.5, the transcript'scallrow for that turn carries"endpoint":"Codex". - e2e: the control — an OpenRouter-served turn whose completion says
"provider":"Alibaba"still writes"endpoint":"Alibaba", and a completion with no provider still writes nothing. - Unit: every chunk and whole response the codex transport produces carries
provider: "Codex"; the mapped stream's terminal chunk included. - The models-and-cost manual page says a Codex call row names
Codexas its endpoint, and the change entry'sinvalidatesnames the blank column.
Found while proving which model answered a Codex turn (the backend's own model field is journaled and was correct); not part of #1336.
Activity
chat: a Codex model carries its 272k window, and a Codex call row nam…