fix(chat): preserve routing for side-channel command replies (#6736)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-20 16:47:07 +08:00
1 parent 3e9024ea04
commit cd75dbfaac
13 files changed
+155 -34

No files matched your search

+1
View File
@@ -369,6 +369,7 @@ function parseThreadProjectionEvent(value: unknown, validatedGraphs: ReadonlySet
return value as unknown as ThreadProjectionEvent;
case "message":
if (typeof value.text !== "string") break;
if (value.side_channel !== undefined && value.side_channel !== true) break;
if (value.tool_events !== undefined && !isRecordArray(value.tool_events)) break;
if (value.trace_detail !== undefined && (
!["tool_hint", "progress"].includes(String(value.kind))