Public: anyone can read this; the crew can change it.
A Codex rollout file imports as a trace, beside Claude Code sessions #18360
Merged 1h 44m ago, live in production
A Codex rollout now imports through POST /api/v1/traces/import the same way a Claude Code session does (#18358). The tests I ran pass (test/traces-import.test.ts, test/trace.test.ts, and the dead-code and duplicate-import checks), tsc --noEmit is clean, and gate --fix leaves nothing uncommitted.
-
Reviews
ApprovedA Codex rollout imports through the existing route with the same cap, quota and 201/200 behaviour, and a bad rollout gets a 422 that names session_meta. I read the diff and did not exercise the preview. The Codex sniff is now one function (
isCodexFile) shared byparseSessionand the adapter. Theforeignflag keeps Claude Code's generic refusal from overwriting a specific Codex one. Two things I would do next: (1) the Claude Code assertion in the new test is onlytoBeLessThan(300), so assert 201 andsource: claude_code, and add a case where a rollout has records but no usable turns, to pin that refusal text; (2) docs/features/traces.md has no blank line before## One trace as a tree, so add one. -
Checks
shipped production is serving it deploy 69ce311
-
History
- One sniff for Codex files, shared by the import and parseSession (#18358) 158e0bd
- A Codex rollout imports as a trace beside Claude Code sessions 54f8070
- Every bare "No …" empty state is drawn from src/core/empty_words.ts, and the OWN_WORDS count table is deleted (#18355) e036110
- A map file over 600 KB is served in parts instead of failing the whole 3D view (#18350) b6d2692
- The terminal and the Apple app's API offer no captain (#18353) 9a9ebf0
- The lane-stopped card carries a Merge action for each green pull waiting on a person (#18348) 67ae93f
- Talk no longer lists, selects or routes to the captain on the web (#18346) 7406da3
- Publishing an app from the tab forge mints the visitor principal, and only then (#18243) 64017fd
- A server's page shows whether its map answers, with the reason, before anyone opens the 3D view (#18349) bca1c31
- The Apple app can list and answer the actions Talk is holding for a person (#18342) 8a995aa
- The Apple app can read the game door, lock it and open a write window, through one JSON route (#18341) 37d7870
- The game map says which way it failed: not listening, too large, too slow or refused by BlueMap (#18347) f1e92e5
- Full suite red: test/spawn-move-cell-sizes.test.ts (#18340) 6034a7d
- Game door: lock automatically when the player leaves the network, as a setting (#18329) f698c54
- Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it (#18327) 0ccd5dd
- Connections: one place says an email is proven, with the sign-in proof reading it (#18320) 181d662
- Talk opens on the conversation the person was in, at the place they left it (#18322) 3eab8eb
- Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch (#18291) 08c168a
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18325) 9b34956
- Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it (#18168) 278b2e3
A Codex rollout now imports through POST /api/v1/traces/import the same way a Claude Code session does (#18358). The tests I ran pass (test/traces-import.test.ts, test/trace.test.ts, and the dead-code and duplicate-import checks), tsc --noEmit is clean, and gate --fix leaves nothing uncommitted. I did not run the full suite, and design-lint wasn't needed because nothing under src/web/ changed.
- Adapter: the new
src/trace/import_codex.tsis anImportAdapterover the existingparseCodexSessionreader. It is added toADAPTERSahead ofclaudeCode, and nothing in the Claude Code path changed. - Not-my-format refusals: a refusal that only means "not my format" now carries
foreign: true.importSession(src/trace/import.ts) then tries the next adapter, and any other refusal is returned as it is. Without this, Claude Code's generic message would overwrite the Codex one on a bad rollout. - No usable session id: a rollout whose
session_metahas no usable id is refused with a 422 that namessession_meta. I did not derive an id, because a resend has to find the same row. This differs from the issue's suggestion to derive one and say so. - One sniff: the check on a file's first records is now
isCodexFileincodex.ts.parseSessionand the new adapter both use it, which cleared the gate's duplicate warning. - Unchanged limits: the 32 MiB cap, the quota, 201 on a first send and 200 on a resend all come from the existing route.
- Test: a new case in
test/traces-import.test.tscovers four things. A first Codex send is 201, and a resend is 200 with one row. A rollout with no id is 422. A Claude Code file still imports. - Docs:
docs/features/traces.mdnow gives the Codex curl line and no longer says "Not yet: Codex files". - Door rule: the commit says
No door:because only the existing route and its how-to changed.
I first pushed before the fix commit, so there are two commits on the branch. The second names #18358, which the gate required.
To try it, run curl -X POST -H "authorization: Bearer $FORGE_TOKEN" --data-binary @"$(ls -t ~/.codex/sessions////rollout-.jsonl | head -1)" "$FORGE_URL/api/v1/traces/import", then GET /api/v1/traces?kind=imported.
🤖 Generated with Claude Code
A Codex rollout now imports through
POST /api/v1/traces/importthe same way a Claude Code session does (#18358). The tests I ran pass (test/traces-import.test.ts,test/trace.test.ts, and the dead-code and duplicate-import checks),tsc --noEmitis clean, andgate --fixleaves nothing uncommitted. I did not run the full suite, anddesign-lintwasn't needed because nothing undersrc/web/changed.src/trace/import_codex.tsis anImportAdapterover the existingparseCodexSessionreader. It is added toADAPTERSahead ofclaudeCode, and nothing in the Claude Code path changed.foreign: true.importSession(src/trace/import.ts) then tries the next adapter, and any other refusal is returned as it is. Without this, Claude Code's generic message would overwrite the Codex one on a bad rollout.session_metahas no usable id is refused with a 422 that namessession_meta. I did not derive an id, because a resend has to find the same row. This differs from the issue's suggestion to derive one and say so.isCodexFileincodex.ts.parseSessionand the new adapter both use it, which cleared the gate's duplicate warning.test/traces-import.test.tscovers four things. A first Codex send is 201, and a resend is 200 with one row. A rollout with no id is 422. A Claude Code file still imports.docs/features/traces.mdnow gives the Codex curl line and no longer says "Not yet: Codex files".No door:because only the existing route and its how-to changed.I first pushed before the fix commit, so there are two commits on the branch. The second names #18358, which the gate required.
To try it, run
curl -X POST -H "authorization: Bearer $FORGE_TOKEN" --data-binary @"$(ls -t ~/.codex/sessions////rollout-.jsonl | head -1)" "$FORGE_URL/api/v1/traces/import", thenGET /api/v1/traces?kind=imported.🤖 Generated with Claude Code
Closes #18358