Skip to content

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

chore: files changed crates/openhuman-core/src/agent/harness/host_definition_tests.rs,vendor/tinyage

Steven Enamakelcbdfbbdcdb54
diff --git a/crates/openhuman-core/src/agent/harness/host_definition_tests.rs b/crates/openhuman-core/src/agent/harness/host_definition_tests.rs
index 3dc0a8688d..6c0b5f1cff 100644
--- a/crates/openhuman-core/src/agent/harness/host_definition_tests.rs
+++ b/crates/openhuman-core/src/agent/harness/host_definition_tests.rs
@@ -225,9 +225,6 @@ when_to_use = "CUSTOM OVERRIDE"
[system_prompt]
inline = "custom prompt"
-
-[tools]
-wildcard = {}
"#,
);
@@ -428,3 +425,38 @@ fn coding_hint_resolves_auto_tokenjuice_to_light() {
Profile::Full
);
}
+
+/// Pins tinyagents#441: existing definitions on disk spell an unrestricted
+/// scope as `[tools] wildcard = {}`. Needs `vendor/tinyagents` at or after
+/// tinyagents `2e706e81`; the pin stays at `a7c9d23c` until the host moves to
+/// the session-thread store that landed in tinyagents#440 (openhuman#7688),
+/// so this fails at the current pin.
+#[test]
+fn a_legacy_wildcard_table_tool_scope_still_loads_from_a_user_definition() {
+ let ws = fresh_workspace();
+ let agents_dir = ws.path().join("agents");
+ fs::create_dir_all(&agents_dir).unwrap();
+ write_toml(
+ &agents_dir.join("legacy.toml"),
+ r#"
+id = "legacy_wildcard"
+when_to_use = "legacy tools table"
+
+[system_prompt]
+inline = "legacy"
+
+[tools]
+wildcard = {}
+"#,
+ );
+ let defs = user_defs(ws.path());
+ assert_eq!(
+ defs.len(),
+ 1,
+ "the legacy wildcard spelling must not be skipped"
+ );
+ assert!(matches!(
+ defs[0].tools,
+ tinyagents_definition::ToolScope::Wildcard
+ ));
+}
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 2e706e81f4..a7c9d23cae 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 2e706e81f43805bb89cd5952ea7be2212afcc167
+Subproject commit a7c9d23cae087b305dbaece7d44e01d1161235d3