Skip to content

fix(codex): restore transcripts for fresh native terminal sessions - #1567

Open
Juliusolsson05 wants to merge 2 commits into
mainfrom
fix/native-codex-transcript-identity
Open

Juliusolsson05 wants to merge 2 commits into
mainfrom
fix/native-codex-transcript-identity

Conversation

@Juliusolsson05

@Juliusolsson05 Juliusolsson05 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

User impact

Fresh native-terminal Codex 0.172.0 could process a prompt while Agent Code showed an empty transcript. Resuming a known thread worked. This fix gives a fresh pane a provider-issued identity when TLDR reporting is off and no Responses proxy is running.

Behavior

The app trusts a launch-specific SessionStart command alongside any reporting grants. Each launch owns a private directory for atomically written receipts. The receiver filters child events, stale resume events and mismatched identities. It retains the UUID while waiting for the root rollout to become readable. The existing exact-ID coordinator still verifies the filename and session metadata before leasing or tailing the file.

Codex's personal/project hooks and grants remain independent. Startup hooks are optional. A Codex installation that disables them cannot provide this evidence. Sessions that predate the fix can resume through a known thread ID.

Verification

  • Two actual native Codex 0.172.0 sessions shared the same disposable Codex home and cwd. Using a local fixture, each session delivered its own synthetic marker and a distinct root ID through Agent Code's ordinary transcript event. An independently trusted personal SessionStart hook ran exactly twice.
  • Disabling the new launch identity in the same test produced an empty transcript again. Restoring it passed.
  • All 61 Codex runtime and related hook tests passed, including the missing-file race, pre-existing receipts, conflicting IDs, child metadata and disposal. App typecheck, testing contract and the compiled Electron startup smoke passed.
  • No live remote model or existing user conversation was used.

Fixes #1565

…ties

Keep the CLI startup receipt until its root rollout becomes readable, then use the existing exact-ID lease. This restores fresh terminal transcripts independently of proxy capture or TLDR grants.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(codex): restore transcripts for fresh native terminal sessions

1 participant