Skip to content

Commit 7f8d4ce

Browse files
author
Sprite
committed
Fix workflow chat project scope lookup
1 parent 63098fe commit 7f8d4ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/websocket/src/session/chat-turn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3411,6 +3411,8 @@ export class ChatTurnHandler {
34113411
: this.deps.defaults.provider;
34123412
const model = isString(data.model) ? data.model : this.deps.defaults.model;
34133413
const userId = this.session.requireUserId();
3414+
const chatProjectId =
3415+
(await Project.findByThread(userId, threadId))?.id ?? undefined;
34143416
const jobId = randomUUID();
34153417

34163418
log.info("Workflow message", { threadId, workflowId, jobId });

0 commit comments

Comments
 (0)