feat: implement ACP session/prompt

This commit is contained in:
Dark-Alex-17 committed 2026-07-27 17:48:31 -06:00
1 parent f11d4ca760
commit 02dd14394b
3 files changed
+187 -13

No files matched your search

+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)