From 0afbd2b8ec63748bf5b63558c856a12972f0e81f Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Mon, 26 Oct 2026 01:09:04 +0000 Subject: [PATCH 1/3] test(tinycomputer): cover browser egress config alongside executable Extend the browser configuration test to assert that an executable and an egress policy are both read from the same config, and add a case where browser args are rejected even when a valid egress block is present. Vendor submodule pointers are bumped to match. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- .../tinybus_module/tinybus_module_tests/config_tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs index ce57f7910..bd3631086 100644 --- a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs @@ -181,6 +181,14 @@ fn the_browser_configuration_is_read_or_refused() { .unwrap(); assert_eq!(egress.egress.as_ref().unwrap().policy_id, "host-policy"); assert_eq!(egress.egress.as_ref().unwrap().generation, 7); + let egress_with_executable = BrowserDefaults::from_config(&json!({"browser": { + "executable": "/usr/bin/chromium", + "egress": {"policy_id": "host-policy", "generation": 7} + }})) + .unwrap(); + assert_eq!(egress_with_executable.executable.as_deref(), Some("/usr/bin/chromium")); + assert_eq!(egress_with_executable.egress.as_ref().unwrap().policy_id, "host-policy"); + assert_eq!(egress_with_executable.egress.as_ref().unwrap().generation, 7); // Settling promptly and opening the browser early are on unless turned // off. let unset = BrowserDefaults::default(); From cf7d40ba462887272cc407abab6fe5cfe2342f73 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Mon, 26 Oct 2026 01:13:41 +0000 Subject: [PATCH 2/3] fix(tinybus_module): allow executable key in browser egress config The browser egress validation rejected configs that set an executable path, even though the field is supported and read elsewhere. The check now only rejects the args key, and the test assertions were reformatted to match. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- crates/tinycomputer/src/tinybus_module/config.rs | 5 +---- .../tinybus_module_tests/config_tests.rs | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/crates/tinycomputer/src/tinybus_module/config.rs b/crates/tinycomputer/src/tinybus_module/config.rs index 588c72d49..251f18e52 100644 --- a/crates/tinycomputer/src/tinybus_module/config.rs +++ b/crates/tinycomputer/src/tinybus_module/config.rs @@ -171,10 +171,7 @@ impl BrowserDefaults { let expected_egress_keys = 2 + usize::from( cfg!(feature = "test-connector") && egress.contains_key("test_connector_map"), ); - if egress.len() != expected_egress_keys - || browser.contains_key("args") - || browser.contains_key("executable") - { + if egress.len() != expected_egress_keys || browser.contains_key("args") { return Err(invalid()); } Some(BrowserEgressConfig { diff --git a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs index bd3631086..6c1a540e1 100644 --- a/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs +++ b/crates/tinycomputer/src/tinybus_module/tinybus_module_tests/config_tests.rs @@ -186,9 +186,18 @@ fn the_browser_configuration_is_read_or_refused() { "egress": {"policy_id": "host-policy", "generation": 7} }})) .unwrap(); - assert_eq!(egress_with_executable.executable.as_deref(), Some("/usr/bin/chromium")); - assert_eq!(egress_with_executable.egress.as_ref().unwrap().policy_id, "host-policy"); - assert_eq!(egress_with_executable.egress.as_ref().unwrap().generation, 7); + assert_eq!( + egress_with_executable.executable.as_deref(), + Some("/usr/bin/chromium") + ); + assert_eq!( + egress_with_executable.egress.as_ref().unwrap().policy_id, + "host-policy" + ); + assert_eq!( + egress_with_executable.egress.as_ref().unwrap().generation, + 7 + ); // Settling promptly and opening the browser early are on unless turned // off. let unset = BrowserDefaults::default(); From 16698469378ebc0b53039b377305280f02ab7311 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Mon, 26 Oct 2026 01:15:46 +0000 Subject: [PATCH 3/3] chore(vendor): bump agent-browser, agent-desktop, tinybus and tinyinference Update the pinned commits for the four vendored submodules to their latest revisions. Auto-committed-on: cuttlefish Co-authored-by: Medulla --- vendor/agent-browser | 2 +- vendor/agent-desktop | 2 +- vendor/tinybus | 2 +- vendor/tinyinference | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/agent-browser b/vendor/agent-browser index 76e4892d1..11303656a 160000 --- a/vendor/agent-browser +++ b/vendor/agent-browser @@ -1 +1 @@ -Subproject commit 76e4892d1946e80b28b5b97fc29c44158e847c77 +Subproject commit 11303656ac6121f56bceb9769339085ef004d339 diff --git a/vendor/agent-desktop b/vendor/agent-desktop index fee077c47..72f8af2f2 160000 --- a/vendor/agent-desktop +++ b/vendor/agent-desktop @@ -1 +1 @@ -Subproject commit fee077c47cbad3317b7bf7ec7a99a2b6ae233376 +Subproject commit 72f8af2f2bfb08a691fd374b6f2163061b83ea3c diff --git a/vendor/tinybus b/vendor/tinybus index d22fb0bcc..9e14f6566 160000 --- a/vendor/tinybus +++ b/vendor/tinybus @@ -1 +1 @@ -Subproject commit d22fb0bcc3d4d35b5e5b56c37fa0292ce3d96303 +Subproject commit 9e14f65666b11782ec1054aba576114026d180f8 diff --git a/vendor/tinyinference b/vendor/tinyinference index 03adc8b92..02c01b72f 160000 --- a/vendor/tinyinference +++ b/vendor/tinyinference @@ -1 +1 @@ -Subproject commit 03adc8b92ec8ada4d69533f30731f56e7775b8c8 +Subproject commit 02c01b72f70cd3747304b2a5a696b52a49fdd4fd