From 7ddf4d46b91621ea6fd5d81fa13df2bbd9f3580f Mon Sep 17 00:00:00 2001 From: Blomios Date: Mon, 13 Jul 2026 17:59:26 +0200 Subject: [PATCH] chore(fmt): appliquer rustfmt sur agent_lifecycle.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reformate `launch_opencode_omits_api_key_when_profile_has_none` selon rustfmt (le fichier committé échouait `cargo fmt --check`). Aucun changement de comportement, purement du formatage. Co-Authored-By: Claude Opus 4.8 --- crates/application/tests/agent_lifecycle.rs | 33 +++++++++++---------- 1 file changed, 18 insertions(+), 15 deletions(-) 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 {