From de6df4abdd8a6eb9a0217050ce17e0925f04602b Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Tue, 19 May 2026 20:50:12 +0900 Subject: fix: review findings — multi-turn history, race condition, collapse UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- packages/api/src/agent-manager.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/api') 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 { const agent = this.getOrCreateAgent(); + this.status = "running"; this.messageCount += 1; try { -- cgit v1.2.3