feat: add gated h5 code run entry
This commit is contained in:
@@ -50,6 +50,7 @@ import {
|
||||
CHAT_IMAGE_UPLOAD_MAX_INPUT_BYTES,
|
||||
} from '../utils/imageUpload';
|
||||
import { buildAbsoluteAssetImageUrl } from '../utils/mindspaceCards';
|
||||
import { resolveAgentRunOptions } from '../utils/agentRunMode';
|
||||
import {
|
||||
buildUserMessage,
|
||||
normalizeConversationMessages,
|
||||
@@ -1168,7 +1169,12 @@ export function useTKMindChat(
|
||||
}
|
||||
|
||||
try {
|
||||
const createdRun = await createAgentRun(activeSessionId, requestId, userMessage);
|
||||
const createdRun = await createAgentRun(
|
||||
activeSessionId,
|
||||
requestId,
|
||||
userMessage,
|
||||
resolveAgentRunOptions(trimmed, { taskType: 'h5_chat_code_task' }),
|
||||
);
|
||||
const finishedRun =
|
||||
createdRun.status === 'succeeded' ? createdRun : await waitForAgentRun(createdRun.id);
|
||||
activeSessionId = finishedRun.sessionId;
|
||||
|
||||
Reference in New Issue
Block a user