Preserve timestamps when importing external agent sessions - #34989
Merged
copyberry[bot] merged 1 commit intoJul 23, 2026
Conversation
## Why Imported sessions previously used the import time for their thread metadata, discarding the chronology recorded by the source session. ## What changed - Set `created_at` and `updated_at` from the earliest turn start and latest turn completion timestamps in the imported rollout. - Use the latest source timestamp for thread recency, while retaining the current time as a fallback when the rollout has no valid turn timestamps. ## Testing - Update the external agent import integration test to verify the persisted creation, update, and recency timestamps. GitOrigin-RevId: 396d5b7e7463a305a5a828ba3a432b4a97e5d2b9
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/396d5b7e7463a305a5a828ba3a432b4a97e5d2b9
branch
from
July 23, 2026 18:36
562f2e8 to
0d49103
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/396d5b7e7463a305a5a828ba3a432b4a97e5d2b9
branch
July 23, 2026 18:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve timestamps when importing external agent sessions
Why
Imported sessions previously used the import time for their thread metadata,
discarding the chronology recorded by the source session.
What changed
created_atandupdated_atfrom the earliest turn start and latest turncompletion timestamps in the imported rollout.
time as a fallback when the rollout has no valid turn timestamps.
Testing
creation, update, and recency timestamps.