feat: gate code runs by user whitelist
This commit is contained in:
@@ -347,6 +347,7 @@ export function usePageEditSubChat({
|
||||
resolveAgentRunOptions(trimmed, {
|
||||
taskType: 'page_edit_code_task',
|
||||
forceCode: true,
|
||||
userId: user?.id ?? null,
|
||||
}),
|
||||
);
|
||||
const finishedRun =
|
||||
|
||||
@@ -1173,7 +1173,10 @@ export function useTKMindChat(
|
||||
activeSessionId,
|
||||
requestId,
|
||||
userMessage,
|
||||
resolveAgentRunOptions(trimmed, { taskType: 'h5_chat_code_task' }),
|
||||
resolveAgentRunOptions(trimmed, {
|
||||
taskType: 'h5_chat_code_task',
|
||||
userId: userRef.current?.id ?? null,
|
||||
}),
|
||||
);
|
||||
const finishedRun =
|
||||
createdRun.status === 'succeeded' ? createdRun : await waitForAgentRun(createdRun.id);
|
||||
|
||||
Reference in New Issue
Block a user