Merge chore/fmt-agent-lifecycle into develop

Applique rustfmt sur agent_lifecycle.rs pour que develop repasse
`cargo fmt --check`. Fix de formatage pur, aucun changement de comportement.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-13 18:01:14 +02:00

View File

@ -2531,22 +2531,25 @@ async fn launch_with_invalid_uuid_conversation_id_omits_resume_section() {
#[tokio::test] #[tokio::test]
async fn launch_opencode_omits_api_key_when_profile_has_none() { async fn launch_opencode_omits_api_key_when_profile_has_none() {
let profile = profile(pid(91), ContextInjection::convention_file("AGENTS.md").unwrap()) let profile = profile(
.with_structured_adapter(StructuredAdapter::OpenCode) pid(91),
.with_opencode( ContextInjection::convention_file("AGENTS.md").unwrap(),
OpenCodeConfig::new( )
"http://localhost:8080/v1", .with_structured_adapter(StructuredAdapter::OpenCode)
None, .with_opencode(
"qwen3-coder-30b", OpenCodeConfig::new(
None, "http://localhost:8080/v1",
None, None,
) "qwen3-coder-30b",
.unwrap(), None,
None,
) )
.with_mcp(McpCapability::new( .unwrap(),
McpConfigStrategy::open_code_config("opencode.json").unwrap(), )
McpTransport::Stdio, .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( let (launch, agent, fs, _pty, _bus, _sessions, _tr, _session) = launch_fixture_with_profile(
profile, profile,
Some(ContextInjectionPlan::File { Some(ContextInjectionPlan::File {