diff --git a/crates/application/tests/agent_lifecycle.rs b/crates/application/tests/agent_lifecycle.rs index 1b230f5..9474242 100644 --- a/crates/application/tests/agent_lifecycle.rs +++ b/crates/application/tests/agent_lifecycle.rs @@ -2531,22 +2531,25 @@ async fn launch_with_invalid_uuid_conversation_id_omits_resume_section() { #[tokio::test] async fn launch_opencode_omits_api_key_when_profile_has_none() { - let profile = profile(pid(91), ContextInjection::convention_file("AGENTS.md").unwrap()) - .with_structured_adapter(StructuredAdapter::OpenCode) - .with_opencode( - OpenCodeConfig::new( - "http://localhost:8080/v1", - None, - "qwen3-coder-30b", - None, - None, - ) - .unwrap(), + let profile = profile( + pid(91), + ContextInjection::convention_file("AGENTS.md").unwrap(), + ) + .with_structured_adapter(StructuredAdapter::OpenCode) + .with_opencode( + OpenCodeConfig::new( + "http://localhost:8080/v1", + None, + "qwen3-coder-30b", + None, + None, ) - .with_mcp(McpCapability::new( - McpConfigStrategy::open_code_config("opencode.json").unwrap(), - McpTransport::Stdio, - )); + .unwrap(), + ) + .with_mcp(McpCapability::new( + McpConfigStrategy::open_code_config("opencode.json").unwrap(), + McpTransport::Stdio, + )); let (launch, agent, fs, _pty, _bus, _sessions, _tr, _session) = launch_fixture_with_profile( profile, Some(ContextInjectionPlan::File {