Retain native task identity across partial progress notifications

This commit is contained in:
2026-11-07 16:23:49 +00:00
parent 1d8076ebdc
commit 5d38ba3352
2 changed files with 16 additions and 1 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ func (h *host) trackTasksLocked(line []byte) {
delete(h.taskOrigins, fallback)
}
}
h.tasks[id] = event.TaskID
if _, exists := h.tasks[id]; !exists || event.TaskID != "" {
h.tasks[id] = event.TaskID
}
origin := h.taskOrigins[id]
if event.ToolUseID != "" {
origin.ToolUseID = event.ToolUseID