fix(maestro): box AcpUpdate::Notification and fix test unwrapping
Box the Notification variant to satisfy clippy's large_enum_variant lint, fix paren mismatches from the boxing pass, and update test helpers to unwrap AcpUpdate before inspecting the notification. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
5f8cc2a140
commit
474000935a
@@ -2408,7 +2408,7 @@ fn start_acp_event_pump(
|
||||
maestro_acp::AcpUpdate::Notification(notification) => {
|
||||
let append_error = {
|
||||
let mut events = events.lock().await;
|
||||
let event = PersistedEvent::Notification(Box::new(notification));
|
||||
let event = PersistedEvent::Notification(notification);
|
||||
match events.log.append(&event) {
|
||||
Ok(seq) => {
|
||||
let logged = LoggedEvent {
|
||||
@@ -2436,7 +2436,11 @@ fn start_acp_event_pump(
|
||||
break;
|
||||
}
|
||||
}
|
||||
maestro_acp::AcpUpdate::TurnDone { turn: _, result, done } => {
|
||||
maestro_acp::AcpUpdate::TurnDone {
|
||||
turn: _,
|
||||
result,
|
||||
done,
|
||||
} => {
|
||||
// Every notification for this turn has been persisted and
|
||||
// broadcast above. Signal the done oneshot so
|
||||
// finish_queued_acp_turn runs with the transcript complete.
|
||||
|
||||
Reference in New Issue
Block a user