Skip to content

Codex runtime: WriteSyntheticSession JSONL support #321

Description

@birdmanmandbir

Context

The unified spawn plan (#8802e3a8) migrates all spawn patterns to use breathe.WriteSyntheticSession() to write a synthetic JSONL session, then claude --resume <id> -- "<trigger>" to launch.

BuildResumeCommand now has a Codex case (codex resume --yolo <sessionID> '<trigger>'), but Codex may not support resuming from Claude Code's JSONL session format. The JSONL files are CC-specific (~/.claude/projects/<dir>/sessions/<id>.jsonl).

What needs investigation

  1. Does codex resume <sessionID> read CC's JSONL format, or does it have its own session storage?
  2. If Codex has its own format, does WriteSyntheticSession need a Codex-specific writer?
  3. If Codex can't resume from JSONL at all, the Codex spawn path needs to stay on the old pattern (or a Codex-native equivalent).

Current state

  • BuildResumeCommand has the Codex case ready (outputs codex resume --yolo <sessionID> '<trigger>')
  • Worker spawn migration (Task 3 of the unified spawn plan) will use this for Codex-tagged tasks
  • If Codex doesn't support JSONL resume, Codex workers will fail at runtime

Scope

This is not blocking the unified spawn plan — Claude Code is the primary runtime and should be migrated first. This issue tracks making Codex work with the new pattern (or keeping a fallback).

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