fix: rename h5 execution override to deep reasoning
This commit is contained in:
@@ -12,7 +12,7 @@ export function isDirectChatSessionId(sessionId) {
|
||||
return String(sessionId ?? '').startsWith(DIRECT_CHAT_SESSION_PREFIX);
|
||||
}
|
||||
|
||||
const GOOSE_REQUIRED_PATTERNS = [
|
||||
const TASK_EXECUTION_REQUIRED_PATTERNS = [
|
||||
/\b(public\/[^\s"'<>]+\.html)\b/i,
|
||||
/\b(html|h5|web\s?page|landing\s?page|microsite|docx|word)\b/i,
|
||||
/\b(write|create|generate|publish|download|export|save|edit)\b.{0,40}\b(file|page|html|docx|word|asset)\b/i,
|
||||
@@ -99,9 +99,9 @@ function isTextOnlyUserMessage(message) {
|
||||
});
|
||||
}
|
||||
|
||||
function requiresGooseExecution(message) {
|
||||
function requiresTaskExecution(message) {
|
||||
const text = `${messageText(message)}\n${assistantFacingText(message)}`.trim();
|
||||
return GOOSE_REQUIRED_PATTERNS.some((pattern) => pattern.test(text));
|
||||
return TASK_EXECUTION_REQUIRED_PATTERNS.some((pattern) => pattern.test(text));
|
||||
}
|
||||
|
||||
function renderMemoryLines(memories) {
|
||||
@@ -181,7 +181,7 @@ export function createDirectChatService({
|
||||
if (toolMode !== 'chat') return false;
|
||||
if (sessionId && !isDirectChatSessionId(sessionId)) return false;
|
||||
if (!isTextOnlyUserMessage(userMessage)) return false;
|
||||
if (requiresGooseExecution(userMessage)) return false;
|
||||
if (requiresTaskExecution(userMessage)) return false;
|
||||
return Boolean(userAuth && llmProviderService && sessionSnapshotService);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user