mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
8707a35113
commit
07490c7523
16 files changed
+322
-245
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user