Skip to content

Commit f16d17b

Browse files
improvement(mothership): do not silently re-route missing stream id (#4295)
1 parent e6fefc8 commit f16d17b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/sim/lib/copilot/request/session/contract.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ function isStreamRef(value: unknown): value is MothershipStreamV1StreamRef {
165165
return (
166166
isRecord(value) &&
167167
typeof value.streamId === 'string' &&
168+
value.streamId.length > 0 &&
168169
isOptionalString(value.chatId) &&
169170
isOptionalString(value.cursor)
170171
)

0 commit comments

Comments
 (0)