Skip to content

[Bug]: Codex session import skips long sessions (transcript over 32 MiB memory budget); #29183 fixed Claude only #46436

Backlog

Description

@blurxy

Importing Codex sessions skips large rollouts. server.trace.ndjson logs:

Could not read imported transcript … TranscriptParseError → TranscriptJsonLimitError:
Transcript selected history exceeds the 32 MiB memory budget

Observed on ~/.codex/sessions/2026/11/07/rollout-…jsonl.zst (two files). The UI toast says only "N threads could not be imported" with no reason.

#29183 (closes #29153) fixed this for Claude by keeping the first user message plus a rolling window of the latest 200 records. Its description says "Codex and Pi reads are unchanged", so Codex still throws once historyBytes passes MAX_IMPORT_HISTORY_BYTES (apps/server/src/project/AgentSessionScanner.ts).

Expected: Codex imports with the same bounded window, and the toast says why a thread was skipped.

Version: T3 Code desktop 0.1.13, Windows 11. Codex .jsonl and .jsonl.zst rollouts, largest on disk 222 MB.

Not checked: whether the 100,000-record import cap also applies to these files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions