From c370f0fcf1174be6163d04a91798fde59eb8a705 Mon Sep 17 00:00:00 2001 From: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@buzz.block.builderlab.xyz> Date: Sun, 2 Aug 2026 01:39:39 -0400 Subject: [PATCH] test(desktop): resolve the fixture launch descriptor Co-authored-by: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@buzz.block.builderlab.xyz> Signed-off-by: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@buzz.block.builderlab.xyz> --- .../src-tauri/src/commands/agents_tests.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/desktop/src-tauri/src/commands/agents_tests.rs b/desktop/src-tauri/src/commands/agents_tests.rs index f414ffb8f..df135298c 100644 --- a/desktop/src-tauri/src/commands/agents_tests.rs +++ b/desktop/src-tauri/src/commands/agents_tests.rs @@ -431,6 +431,10 @@ fn deploy_payload_matches_the_shared_full_launch_fixture() { "auth_tag": "tag-1", "acp_command": "buzz-acp", "agent_command": "goose", + "runtime": "goose", + "model": "gpt-5", + "provider": "openai", + "env_vars": {"USER_KEY": "user-value"}, "agent_args": [], "mcp_command": "", "turn_timeout_seconds": 300, @@ -444,15 +448,12 @@ fn deploy_payload_matches_the_shared_full_launch_fixture() { "updated_at": "2026-01-01T00:00:00Z" })) .expect("fixture source record"); - let descriptor = crate::managed_agents::readiness::EffectiveHarnessDescriptor { - command: "goose".into(), - args: vec!["run".into(), "--session".into()], - env: std::collections::BTreeMap::from([ - ("GOOSE_MODEL".into(), "gpt-5".into()), - ("GOOSE_PROVIDER".into(), "openai".into()), - ("USER_KEY".into(), "user-value".into()), - ]), - }; + let descriptor = crate::managed_agents::resolve_effective_harness_descriptor( + &record, + &[], + &crate::managed_agents::GlobalAgentConfig::default(), + ) + .expect("resolve fixture source record descriptor"); let launch = super::deploy::build_launch_block( &record, &descriptor,