mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +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:
committed by
copyberry
parent
8707a35113
commit
07490c7523
@@ -997,9 +997,10 @@ async fn run_exec_session(args: ExecRunArgs) -> anyhow::Result<()> {
|
||||
|
||||
match server_event {
|
||||
InProcessServerEvent::ServerRequest(request) => {
|
||||
handle_server_request(&client, request, &mut error_seen).await;
|
||||
handle_server_request(&client, *request, &mut error_seen).await;
|
||||
}
|
||||
InProcessServerEvent::ServerNotification(mut notification) => {
|
||||
InProcessServerEvent::ServerNotification(notification) => {
|
||||
let mut notification = *notification;
|
||||
if let ServerNotification::Error(payload) = ¬ification {
|
||||
if payload.thread_id == primary_thread_id_for_requests
|
||||
&& payload.turn_id == task_id
|
||||
|
||||
Reference in New Issue
Block a user