Box app-server event payloads (#35854)

## What changed

- Store `ServerNotification` and `ServerRequest` payloads behind `Box` in
  `AppServerEvent`, `InProcessServerEvent`, and TUI `ThreadBufferedEvent` values.
- Update app-server delivery, TUI routing and replay, exec, onboarding, and tests
  to borrow or consume the boxed payloads as appropriate.

GitOrigin-RevId: 7d0dab9aba47487114128ce55c914af5bb46c5b5
This commit is contained in:
joeytrasatti-openai authored and copyberry committed 2026-07-29 00:30:11 +00:00
1 parent 8707a35113
commit 07490c7523
16 files changed
+322 -245

No files matched your search

+6 -8
View File
@@ -85,14 +85,12 @@ impl AgentStatusThreadPreview {
let mut activity = Vec::new();
for event in events {
let item = match event {
ThreadBufferedEvent::Notification(ServerNotification::ItemCompleted(event)) => {
&event.item
}
ThreadBufferedEvent::Notification(ServerNotification::ItemStarted(event)) => {
&event.item
}
ThreadBufferedEvent::Notification(_)
| ThreadBufferedEvent::Request(_)
ThreadBufferedEvent::Notification(notification) => match notification.as_ref() {
ServerNotification::ItemCompleted(event) => &event.item,
ServerNotification::ItemStarted(event) => &event.item,
_ => continue,
},
ThreadBufferedEvent::Request(_)
| ThreadBufferedEvent::HistoryEntryResponse(_)
| ThreadBufferedEvent::FeedbackSubmission(_) => continue,
};