Seed realtime V3 sessions with initial text items#34067
Merged
copyberry[bot] merged 1 commit intoJul 18, 2026
Merged
Conversation
## What changed - Add an optional `initialItems` field to `thread/realtime/start` for seeding realtime V3 session history with `user`, `developer`, and `assistant` text. - Encode the items in Frameless Bidi session bootstrap payloads for websocket and WebRTC transports while preserving existing payloads when the list is omitted or empty. - Reject non-empty initial items for V1 and V2, more than 128 items, any item over 8,192 estimated tokens, or a combined total over 8,192 estimated tokens. ## Testing - Cover protocol serialization, app-server forwarding, websocket and WebRTC payloads, empty-list compatibility, version checks, and size limits. GitOrigin-RevId: 09af367f9a07543e3f8d59b7fa5387f932dc5a6a
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a
branch
from
July 18, 2026 21:01
c0ca3b8 to
312caf1
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a
branch
July 18, 2026 21:02
Mahmutakin99
temporarily deployed
to
issue-triage
July 18, 2026 22:28 — with
GitHub Actions
Inactive
Mahmutakin99
temporarily deployed
to
issue-triage
July 18, 2026 22:28 — with
GitHub Actions
Inactive
Mahmutakin99
temporarily deployed
to
issue-triage
July 18, 2026 22:28 — with
GitHub Actions
Inactive
Mahmutakin99
temporarily deployed
to
issue-triage
July 18, 2026 22:29 — with
GitHub Actions
Inactive
austinkennethtucker
temporarily deployed
to
issue-triage
July 18, 2026 22:42 — with
GitHub Actions
Inactive
austinkennethtucker
temporarily deployed
to
issue-triage
July 18, 2026 22:42 — with
GitHub Actions
Inactive
austinkennethtucker
temporarily deployed
to
issue-triage
July 18, 2026 22:42 — with
GitHub Actions
Inactive
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.
Seed realtime V3 sessions with initial text items
What changed
initialItemsfield tothread/realtime/startfor seedingrealtime V3 session history with
user,developer, andassistanttext.and WebRTC transports while preserving existing payloads when the list is
omitted or empty.
over 8,192 estimated tokens, or a combined total over 8,192 estimated tokens.
Testing
payloads, empty-list compatibility, version checks, and size limits.