Record realtime conversation history in Core (#41924)

## Why

Realtime history should be recorded consistently for every Core host, including
when no app-server event listener is attached.

## What changed

- Move transcript segmentation, session boundaries, and backing-agent artifact
  promotion into Core for paginated threads.
- Persist canonical realtime items through the thread store in event order and
  emit dedicated history lifecycle events for hosts to present.
- Translate those Core events into the existing app-server realtime item
  notifications without app-server persisting the items a second time.

## Testing

- Cover Core-only persistence across repeated sessions, ephemeral sessions,
  accepted and rejected steering, typed input ordering, and artifact promotion.
- Verify app-server notifications correspond to the persisted timeline.

GitOrigin-RevId: 7cbef14129d77f6d6d7099b733be91f5279c55f5
This commit is contained in:
guinness-oai authored and copyberry committed 2026-08-31 22:38:23 +00:00
1 parent 34c4f7e72d
commit 64c9cde458
22 files changed
+971 -472

No files matched your search

-2
View File
@@ -122,8 +122,6 @@ mod models_refresh_worker;
mod notification_media;
mod otel_reloader;
mod outgoing_message;
mod realtime_event_handling;
mod realtime_history;
mod request_processors;
mod request_serialization;
mod server_request_error;