Skip to content

Use final answers in turn history summaries#33457

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/59d9c7fd23dd32037516883e964cf5869c5932a1
Jul 16, 2026
Merged

Use final answers in turn history summaries#33457
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/59d9c7fd23dd32037516883e964cf5869c5932a1

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 16, 2026

Copy link
Copy Markdown

Use final answers in turn history summaries

What changed

  • Track only agent messages with the final_answer phase as a turn's final
    summary item, so commentary is excluded.
  • Recover final answers when items arrive before the turn lifecycle record, and
    fall back to phase-less agent messages for terminal turns.

Testing

  • Cover delayed turn lifecycle records and commentary-only turns when listing
    summary items.

## What changed

- Track only agent messages with the `final_answer` phase as a turn's final
  summary item, so commentary is excluded.
- Recover final answers when items arrive before the turn lifecycle record, and
  fall back to phase-less agent messages for terminal turns.

## Testing

- Cover delayed turn lifecycle records and commentary-only turns when listing
  summary items.

GitOrigin-RevId: 59d9c7fd23dd32037516883e964cf5869c5932a1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/59d9c7fd23dd32037516883e964cf5869c5932a1 branch from 7f5607b to a514757 Compare July 16, 2026 00:39
@copyberry
copyberry Bot merged commit a514757 into main Jul 16, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/59d9c7fd23dd32037516883e964cf5869c5932a1 branch July 16, 2026 00:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants