Skip to content

Fix Codex turn inputs and transcript timestamps - #72

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
fix/sdk-349-350-codex-trace-fidelity
Sep 11, 2026
Merged

Fix Codex turn inputs and transcript timestamps#72
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
fix/sdk-349-350-codex-trace-fidelity

Conversation

@Qard

@Qard Stephen Belanger (Qard) commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Fixes SDK-349 and SDK-350. Also addresses the Codex recovery failure mode in SDK-351 and the resumed-session root issue tracked in SDK-353.

  • map native rollout timestamp into the translator timestamp field so reconstructed span metrics.start/metrics.end retain native chronology instead of falling back to one hook timestamp
  • use native user response items as the turn input when the legacy event is absent
  • distinguish injected runtime context from native-only prompts and retain the first real prompt
  • exclude injected native context rows from explicit-skill attribution
  • refresh the Codex session-root end time on every turn-level Stop, so a resumed second turn cannot remain outside a root ended after Turn 1
  • cover timestamp boundaries, prompt-only native rows, injected-context ordering, and multi-turn root extension

The SDK-351 pattern also flags identical top-level created values. Those record import time, while trace chronology and latency use metrics.start/metrics.end; they should not be used by that evaluator as event timestamps.

Validation: cargo test --manifest-path bt-daemon/Cargo.toml --test codex_translator --locked

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T18:35:37.136583Z a7dd09d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c56f8a602f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs Outdated
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from c56f8a6 to ae367f3 Compare September 11, 2026 15:25
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae367f3e71

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/tests/codex_translator.rs
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from ae367f3 to 75731b4 Compare September 11, 2026 16:24
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75731b424a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs Outdated
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from 75731b4 to 518bc08 Compare September 11, 2026 16:36
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 518bc0874d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs Outdated
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from 518bc08 to 13dc921 Compare September 11, 2026 16:44
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13dc9215cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs Outdated
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from dc3c943 to 62dd1ea Compare September 11, 2026 16:51
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 62dd1ea688

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs Outdated
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from 62dd1ea to d98c0c4 Compare September 11, 2026 18:22
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d98c0c4763

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread bt-daemon/src/translate/codex.rs
@Qard
Stephen Belanger (Qard) force-pushed the fix/sdk-349-350-codex-trace-fidelity branch from d98c0c4 to a7dd09d Compare September 11, 2026 18:29
@Qard

Copy link
Copy Markdown
Collaborator Author

Codex (@codex) review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: a7dd09d986

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 784cad9 into main Sep 11, 2026
34 of 35 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the fix/sdk-349-350-codex-trace-fidelity branch September 11, 2026 19:19
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.

2 participants