Skip to content

Seed realtime V3 sessions with initial text items#34067

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a
Jul 18, 2026
Merged

Seed realtime V3 sessions with initial text items#34067
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 18, 2026

Copy link
Copy Markdown

Seed realtime V3 sessions with initial text items

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a branch from c0ca3b8 to 312caf1 Compare July 18, 2026 21:01
@copyberry
copyberry Bot merged commit 312caf1 into main Jul 18, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/09af367f9a07543e3f8d59b7fa5387f932dc5a6a branch July 18, 2026 21:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 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.