Skip to content

Restore elapsed time for replayed in-progress turns - #54047

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/36a48f43d0d7aa530f1bfe6dbefa9f0885cbd6c7
Oct 14, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/36a48f43d0d7aa530f1bfe6dbefa9f0885cbd6c7

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Restore elapsed time for replayed in-progress turns

Why

Replaying an in-progress turn reset the TUI's Working timer to zero, hiding time already spent on the turn.

What changed

Initialize the status timer from the turn's started_at timestamp when replaying turns or turn-start notifications. Keep the zero-time fallback when the timestamp is missing, and clamp future timestamps to zero elapsed time.

Testing

Extend history replay tests to verify elapsed time for both thread snapshots and replayed in-progress turns, and normalize the timer in rendering snapshots.

## Why

Replaying an in-progress turn reset the TUI's `Working` timer to zero, hiding time already spent on the turn.

## What changed

Initialize the status timer from the turn's `started_at` timestamp when replaying turns or turn-start notifications. Keep the zero-time fallback when the timestamp is missing, and clamp future timestamps to zero elapsed time.

## Testing

Extend history replay tests to verify elapsed time for both thread snapshots and replayed in-progress turns, and normalize the timer in rendering snapshots.

GitOrigin-RevId: 36a48f43d0d7aa530f1bfe6dbefa9f0885cbd6c7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/36a48f43d0d7aa530f1bfe6dbefa9f0885cbd6c7 branch from 4c041ac to 764a70f Compare October 14, 2026 17:34
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-14T17:34:58.089508Z 4c041ac 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 764a70f into main Oct 14, 2026
6 of 9 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/36a48f43d0d7aa530f1bfe6dbefa9f0885cbd6c7 branch October 14, 2026 17:35
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 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