summaryrefslogtreecommitdiffhomepage
path: root/src/features/chat/ui/ChatView.svelte
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-08-25 23:54:36 +0900
committerAdam Malczewski <[email protected]>2026-08-25 23:54:36 +0900
commit4e56e548872a162129efee1b09987af7893b0e0c (patch)
tree8b753624d2ca3d8cc97542a401efe7d9b28f8632 /src/features/chat/ui/ChatView.svelte
parentab693af7a22d979b96768a37e851c4835ae3fca3 (diff)
downloaddispatch-web-4e56e548872a162129efee1b09987af7893b0e0c.tar.gz
dispatch-web-4e56e548872a162129efee1b09987af7893b0e0c.zip
fix(tabs): never crash on duplicate toolCallIds in tool batches
Diffstat (limited to 'src/features/chat/ui/ChatView.svelte')
-rw-r--r--src/features/chat/ui/ChatView.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/chat/ui/ChatView.svelte b/src/features/chat/ui/ChatView.svelte
index e67ca5b..6805b20 100644
--- a/src/features/chat/ui/ChatView.svelte
+++ b/src/features/chat/ui/ChatView.svelte
@@ -301,7 +301,7 @@
<div class="chat chat-start [&>.chat-bubble]:max-w-5xl [&>.chat-bubble]:p-0">
<div class="chat-bubble w-full bg-transparent">
<div class="flex flex-col gap-1">
- {#each row.group.entries as entry (entry.call.toolCallId)}
+ {#each row.group.entries as entry, entryIndex (entryIndex)}
<div class="collapse w-full rounded-box bg-base-200 text-sm">
<input type="checkbox" aria-label="Toggle tool call" />
<div class="collapse-title flex min-h-0 items-center gap-2 py-2 font-medium">