chore(fmt): appliquer rustfmt sur agent_lifecycle.rs
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 <noreply@anthropic.com>
This commit is contained in:
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user