diff options
| author | Adam Malczewski <[email protected]> | 2026-05-19 20:50:12 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-19 20:50:12 +0900 |
| commit | de6df4abdd8a6eb9a0217050ce17e0925f04602b (patch) | |
| tree | 17866778894054732e082e0ca381d33c9e9d6560 /packages/frontend/src/lib/components | |
| parent | b3d16aa62a1b8724fe57ab3846a83f03a4a3fbc0 (diff) | |
| download | dispatch-de6df4abdd8a6eb9a0217050ce17e0925f04602b.tar.gz dispatch-de6df4abdd8a6eb9a0217050ce17e0925f04602b.zip | |
fix: review findings — multi-turn history, race condition, collapse UI
- Core: toCoreMessages now includes tool calls and tool results in history
- Core: isError read from step tool results instead of hardcoded false
- API: status set synchronously before async generator to prevent race
- Frontend: DaisyUI collapse-open class applied dynamically on expanded state
- Frontend: removed duplicate isConnected update in wsClient.onEvent
Diffstat (limited to 'packages/frontend/src/lib/components')
| -rw-r--r-- | packages/frontend/src/lib/components/ToolCallDisplay.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/lib/components/ToolCallDisplay.svelte b/packages/frontend/src/lib/components/ToolCallDisplay.svelte index f8e1f38..83d21ba 100644 --- a/packages/frontend/src/lib/components/ToolCallDisplay.svelte +++ b/packages/frontend/src/lib/components/ToolCallDisplay.svelte @@ -10,7 +10,7 @@ function toggle() { } </script> -<div class="collapse collapse-arrow bg-base-200 my-1 rounded-lg border border-base-300"> +<div class="collapse collapse-arrow bg-base-200 my-1 rounded-lg border border-base-300 {isExpanded ? 'collapse-open' : ''}"> <button type="button" class="collapse-title flex items-center gap-2 text-sm font-medium cursor-pointer w-full text-left" |
