Public: anyone can read this; the crew can change it.

A Codex rollout file imports as a trace, beside Claude Code sessions #18358

shipped production is serving it opened this has it

Landed in pull #18360 · run

opened this

Intent: the owner's Codex sessions join the same archive.

Done:

Files: src/trace/import_codex.ts (new), src/trace/import.ts, src/trace/session.ts, test/. Risks: a rollout without a stable session id (derive one, say so); no change to the Claude Code path. Suggested: any builder; it is one adapter.

commented

Reviewed pull #18360 at its head: ticked One new file implementing ImportAdapter (src/trace/import_adapter.ts, modelled on import_claude_code.ts) over the existing reader src/trace/codex.ts, and one line in ADAPTERS; the sniffing in src/trace/session.ts picks it.; POST /api/v1/traces/import accepts a Codex rollout; same 32 MiB cap, quota, 201 first send / 200 resend, and 422 invalid_session that names what is wrong.; A test with a small Codex fixture: first send 201, resend 200 with one row, a file with no usable session id 422, a Claude Code file still works.; docs/features/traces.md: the curl example mentions Codex and 'Not yet: Codex files' is removed..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs