The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test: add separate test for workspace_dir being ignored in config fingerprint
Steven Enamakel5a50602c0c19
diff --git a/crates/openhuman-core/src/agent/context_breakdown_tests.rs b/crates/openhuman-core/src/agent/context_breakdown_tests.rsindex 90c4add8a7..600b766d1b 100644--- a/crates/openhuman-core/src/agent/context_breakdown_tests.rs+++ b/crates/openhuman-core/src/agent/context_breakdown_tests.rs@@ -52,11 +52,24 @@ fn est_tokens_divides_by_the_shared_bytes_per_token_constant() {#[test]fn config_fingerprint_changes_when_config_content_changes() {+ // `workspace_dir` is `#[serde(skip)]` on `Config` (a runtime path, not+ // serialized content), so the fingerprint — deliberately built from the+ // serialized form — must not react to it. Mutate an actually-serialized+ // field instead.+ let mut a = Config::default();+ a.default_temperature = 0.2;+ let mut b = Config::default();+ b.default_temperature = 0.9;+ assert_ne!(config_fingerprint(&a), config_fingerprint(&b));+}++#[test]+fn config_fingerprint_ignores_workspace_dir() {let mut a = Config::default();a.workspace_dir = std::path::PathBuf::from("/tmp/a");let mut b = Config::default();b.workspace_dir = std::path::PathBuf::from("/tmp/b");- assert_ne!(config_fingerprint(&a), config_fingerprint(&b));+ assert_eq!(config_fingerprint(&a), config_fingerprint(&b));}#[test]