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"},