Skip to content

Commit 62c5d4e

Browse files
committed
style: format agent lifecycle fallback
1 parent b57fde5 commit 62c5d4e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

apps/server/src/services/agent.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ fn fallback_agent_lifecycle_from_output(
2626
return None;
2727
}
2828
state.emitted_tool_started = true;
29-
Some(("tool_started", "AgentProcessOutput", r#"{"source":"agent_process_output"}"#))
29+
Some((
30+
"tool_started",
31+
"AgentProcessOutput",
32+
r#"{"source":"agent_process_output"}"#,
33+
))
3034
}
3135

3236
fn fallback_agent_lifecycle_from_exit(
@@ -36,7 +40,11 @@ fn fallback_agent_lifecycle_from_exit(
3640
return None;
3741
}
3842
state.emitted_turn_completed = true;
39-
Some(("turn_completed", "AgentProcessExit", r#"{"source":"agent_process_exit"}"#))
43+
Some((
44+
"turn_completed",
45+
"AgentProcessExit",
46+
r#"{"source":"agent_process_exit"}"#,
47+
))
4048
}
4149

4250
fn terminate_agent_runtime(runtime: Arc<AgentRuntime>) {
@@ -330,7 +338,10 @@ mod tests {
330338
r#"{"source":"agent_process_output"}"#,
331339
)),
332340
);
333-
assert_eq!(fallback_agent_lifecycle_from_output(&mut state, "fixture-still-running\n"), None);
341+
assert_eq!(
342+
fallback_agent_lifecycle_from_output(&mut state, "fixture-still-running\n"),
343+
None
344+
);
334345
}
335346

336347
#[test]

0 commit comments

Comments
 (0)