From b0f4d8bd41a9dfc08251f5e2aa4283f1db57f780 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Thu, 5 Nov 2026 22:49:50 +0530 Subject: [PATCH] test(agent): answer the credential store's keyring prompts in the harness Since the session moved into the OS keyring, signing in asks the user to approve storing it. Run without the test scripts' environment, the agent harness E2E stalled at that prompt in builds with TinySecurity: its sign-in timed out and the approval tests never ran. boot_stack now opts the test build's keyring responder in unless the run already chose. --- tests/agent_harness_e2e.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/agent_harness_e2e.rs b/tests/agent_harness_e2e.rs index 156bd679ce9..d2a1972e212 100644 --- a/tests/agent_harness_e2e.rs +++ b/tests/agent_harness_e2e.rs @@ -891,6 +891,12 @@ async fn boot_stack_with_options( // are installed by the TinyHumans layer, not built into the core; without // it every turn fails with `chat_error.inference`. tinyhumans_boot::boot(); + // Signing in stores the session in the OS keyring, which asks the user + // first. Let the test build's responder answer for the credential store + // however this binary is run (scripts/test-rust-e2e.sh sets the same). + if std::env::var_os("OPENHUMAN_TEST_KEYRING_CONSENT").is_none() { + std::env::set_var("OPENHUMAN_TEST_KEYRING_CONSENT", "approve"); + } let home_is_override = home_override.is_some(); let tmp = tempdir().expect("tempdir");