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/api/src | |
| 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/api/src')
| -rw-r--r-- | packages/api/src/agent-manager.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/api/src/agent-manager.ts b/packages/api/src/agent-manager.ts index 2991ee1..45e195c 100644 --- a/packages/api/src/agent-manager.ts +++ b/packages/api/src/agent-manager.ts @@ -69,6 +69,7 @@ export class AgentManager { async processMessage(message: string): Promise<void> { const agent = this.getOrCreateAgent(); + this.status = "running"; this.messageCount += 1; try { |
