Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(harness_embed): disable session dual writes and shadow reads in offline config

Steven Enamakel610c992faf4b
diff --git a/tests/harness_embed.rs b/tests/harness_embed.rs
index da30b268e9..302a928b10 100644
--- a/tests/harness_embed.rs
+++ b/tests/harness_embed.rs
@@ -57,6 +57,13 @@ fn offline_config() -> Config {
// unrelated to this test's provider/session/concurrency contract and would
// race the final ephemeral-workspace cleanup assertion.
config.memory.auto_save = false;
+ // Session-store dual writes and shadow reads are also deliberately
+ // fire-and-forget. This test already verifies the authoritative session
+ // database; leaving the migration mirrors enabled makes their detached
+ // filesystem work race the harness's synchronous ephemeral cleanup after
+ // the 100-turn stress case.
+ config.agent.session_dual_write = false;
+ config.agent.session_shadow_reads = false;
config.default_temperature = 0.0;
config
}