From 4c6fcf4cbeb64f02484f914d1562a47b347a0b54 Mon Sep 17 00:00:00 2001 From: Wang Zichong Date: Mon, 16 Nov 2026 20:11:14 +0800 Subject: [PATCH] fix: skip a late tool event that has no name A terminal tool event can arrive without its starting one; adding a blank row for it is worse than waiting for the next page read. Bump version to 0.1.12 (build 13). --- asuka.json | 4 ++-- internal/appui/chat.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/asuka.json b/asuka.json index c9e3813..d3d361a 100644 --- a/asuka.json +++ b/asuka.json @@ -1,7 +1,7 @@ { "name": "OpenChamber", "id": "com.openchamber.native", - "version": "0.1.11", - "build": 12, + "version": "0.1.12", + "build": 13, "orientations": ["portrait", "landscape"] } diff --git a/internal/appui/chat.go b/internal/appui/chat.go index c12cadd..2a80d0a 100644 --- a/internal/appui/chat.go +++ b/internal/appui/chat.go @@ -554,6 +554,12 @@ func (ch *chat) applyToolEvent(ev ocapi.Event) { } } if idx < 0 { + // A terminal event can arrive without the starting one (a + // stream joined late). Without a name the row would be + // blank; the next page read adds the call properly. + if d.Name == "" { + return + } m.Content = append(m.Content, ocapi.ContentPart{ Type: "tool", ID: d.ID, Name: d.Name, State: &ocapi.ToolState{Status: "running"},