feat: implement ACP session/prompt

This commit is contained in:
2026-07-27 17:48:31 -06:00
parent f11d4ca760
commit 02dd14394b
3 changed files with 187 additions and 13 deletions
+2 -2
View File
@@ -502,7 +502,7 @@ pub async fn call_chat_completions_streaming(
let (text, tool_calls, thinking) = handler.take();
match send_ret {
Ok(_) => {
if !text.is_empty() && !text.ends_with('\n') {
if !silent && !text.is_empty() && !text.ends_with('\n') {
println!();
}
let mut tool_results = eval_tool_calls(ctx, tool_calls).await?;
@@ -515,7 +515,7 @@ pub async fn call_chat_completions_streaming(
Ok((text, tool_results))
}
Err(err) => {
if !text.is_empty() {
if !silent && !text.is_empty() {
println!();
}
Err(err)