fix(chat): preserve routing for side-channel command replies (#6736)
This commit is contained in:
1 parent
3e9024ea04
commit
cd75dbfaac
13 files changed
+155
-34
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user