From ad335cc47ed3b78b50dc229cccd44512554bc645 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Sat, 29 Nov 2025 16:27:02 +0100 Subject: [PATCH] feat(aichat): stream tool arguments (#7244) --- .../copilot/chat/ToolContentDisplay.svelte | 54 ++++++++++--- .../copilot/chat/ToolExecutionDisplay.svelte | 36 ++++++--- .../lib/components/copilot/chat/anthropic.ts | 76 ++++++++++++++----- .../copilot/chat/openai-responses.ts | 49 +++++++++++- .../components/copilot/chat/script/core.ts | 16 +++- .../src/lib/components/copilot/chat/shared.ts | 41 ++++++++++ frontend/src/lib/components/copilot/lib.ts | 34 ++++++++- 7 files changed, 258 insertions(+), 48 deletions(-) diff --git a/frontend/src/lib/components/copilot/chat/ToolContentDisplay.svelte b/frontend/src/lib/components/copilot/chat/ToolContentDisplay.svelte index 99e1251a26..c4214640d4 100644 --- a/frontend/src/lib/components/copilot/chat/ToolContentDisplay.svelte +++ b/frontend/src/lib/components/copilot/chat/ToolContentDisplay.svelte @@ -1,5 +1,6 @@ -{#if showWhileLoading || (!loading && hasContent)} +{#if showWhileLoading || (!loading && hasContent) || streaming}
{error}
{formatJson($state.snapshot(content))}