Skip to content

Reset app-server turn summaries when a turn starts - #60434

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/19989b55d20df7b9a265bd0a1dfb3f00b6e8a9c5
Nov 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/19989b55d20df7b9a265bd0a1dfb3f00b6e8a9c5

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reset app-server turn summaries when a turn starts

Why

An error recorded before a turn starts can cause a successful turn to be reported as failed.

What changed

Reset TurnSummary on TurnStarted, preserving the new turn's started_at timestamp while clearing accumulated errors, command start times, and the last agent message.

Testing

Extend turn completion tests to cover clearing an error recorded before turn start and retaining an error recorded during the turn.

## Why

An error recorded before a turn starts can cause a successful turn to be reported as failed.

## What changed

Reset `TurnSummary` on `TurnStarted`, preserving the new turn's `started_at` timestamp while clearing accumulated errors, command start times, and the last agent message.

## Testing

Extend turn completion tests to cover clearing an error recorded before turn start and retaining an error recorded during the turn.

GitOrigin-RevId: 19989b55d20df7b9a265bd0a1dfb3f00b6e8a9c5
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/19989b55d20df7b9a265bd0a1dfb3f00b6e8a9c5 branch from bebee8f to ac37f98 Compare November 9, 2026 19:28
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-09T19:29:00.551972Z bebee8f PR opened
ℹ️ 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 review" or "@codex security review".

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

@copyberry
copyberry Bot merged commit ac37f98 into main Nov 9, 2026
7 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/19989b55d20df7b9a265bd0a1dfb3f00b6e8a9c5 branch November 9, 2026 19:29
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 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.

1 participant