Propagate auto-compact errors with Result

This commit is contained in:
Ahmed Ibrahim
2026-02-06 10:21:59 -08:00
parent d839bfe680
commit 4b0e7ac4e7
4 changed files with 41 additions and 31 deletions

View File

@@ -2279,8 +2279,12 @@ async fn auto_compact_failure_stops_follow_up_sampling_loop() {
})
.await;
assert!(
error_message.contains("Error running remote compact task"),
"expected remote auto compact failure message, got: {error_message}"
!error_message.contains("Error running remote compact task"),
"expected propagated compact error instead of wrapper message, got: {error_message}"
);
assert!(
!error_message.is_empty(),
"expected non-empty compact error message"
);
wait_for_event(&codex, |msg| matches!(msg, EventMsg::TurnComplete(_))).await;