Skip to content

fix(transcript): record the codex session model from turn_context#499

Open
Yurii214 wants to merge 1 commit into
vouchdev:testfrom
Yurii214:fix/codex-transcript-model
Open

fix(transcript): record the codex session model from turn_context#499
Yurii214 wants to merge 1 commit into
vouchdev:testfrom
Yurii214:fix/codex-transcript-model

Conversation

@Yurii214

Copy link
Copy Markdown
Contributor

parse_codex_transcript populated session.model from nowhere — it only handled session_meta, which carries cwd, branch and timestamps but not the model. codex records the turn's model on a separate turn_context record, so the normalized transcript's session.model was always None for codex, while parse_claude_transcript fills it from the assistant message.

this reads the model off turn_context (first non-empty wins, since the model can change across turns), so both agents expose the session model symmetrically. no other field is touched.

verified: pytest tests/, mypy src, ruff check src tests all green. the codex transcript test now asserts the model is extracted.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0728b797-342c-4d59-b346-52afe3bd43fd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added tests tests and fixtures size: XS less than 50 changed non-doc lines dual-solve dual-solve orchestration labels Jul 16, 2026
@Yurii214 Yurii214 force-pushed the fix/codex-transcript-model branch from 3a7f7ae to 1d88d8b Compare July 16, 2026 03:04
@github-actions github-actions Bot removed the dual-solve dual-solve orchestration label Jul 16, 2026
parse_codex_transcript only read session_meta, which carries cwd, branch and
timestamps but not the model — codex puts the turn model on the turn_context
record. so the normalized transcript's session model was always none for
codex, while the claude parser fills it from the assistant message. read the
model off turn_context (first non-empty wins) so both agents expose it.
@Yurii214 Yurii214 force-pushed the fix/codex-transcript-model branch from 1d88d8b to 92cb630 Compare July 16, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XS less than 50 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants