fix(#1940): carry pr_number on the live approval_added event

This commit is contained in:
damocles 2026-06-23 15:11:28 +02:00 committed by mara
commit 4c53898382
4 changed files with 74 additions and 31 deletions

View file

@ -1663,7 +1663,15 @@ async fn post_request_spawn(
// refetch. Spawn approvals carry no diff/sha.
state
.coord
.emit_approval_added(id, &name, "spawn", None, None, None);
.emit_approval_added(crate::coordinator::ApprovalAdded {
id,
agent: &name,
approval_kind: "spawn",
sha_short: None,
diff: None,
description: None,
pr_number: None,
});
(StatusCode::OK, "ok").into_response()
}
Err(e) => error_response(&format!("request-spawn {name} failed: {e:#}")),