Box the resume future in the agents overview permissions test (#49822)

GitOrigin-RevId: c56597b54aee83d07a05f94258b420e81a859229
This commit is contained in:
sayan-oai
2026-10-01 02:16:27 +00:00
committed by copyberry
parent cda82a2c68
commit 799324821d
@@ -1847,7 +1847,7 @@ async fn overview_selection_applies_user_permissions_only_to_unloaded_threads()
// The picker must also abort when a session-only choice violates destination policy.
std::fs::write(&requirements, "allowed_approval_policies = [\"never\"]\n")?;
app.harness_overrides.approval_policy = Some(codex_protocol::protocol::AskForApproval::Never);
app.resume_target_session(
Box::pin(app.resume_target_session(
&mut tui,
&mut app_server,
SessionTarget {
@@ -1856,7 +1856,7 @@ async fn overview_selection_applies_user_permissions_only_to_unloaded_threads()
cwd: None,
history_mode: None,
},
)
))
.await?;
assert_eq!(app.primary_thread_id, Some(thread_ids[3]));
assert_eq!(