fix: rename h5 execution override to deep reasoning
This commit is contained in:
@@ -599,7 +599,7 @@ export function useTKMindChat(
|
||||
}, [resolveChatImageUploadCategoryId]);
|
||||
|
||||
const syncSessionMessages = useCallback(async (sessionId: string) => {
|
||||
// REGRESSION GUARD: Finish may arrive before Goose persists assistant turns.
|
||||
// REGRESSION GUARD: Finish may arrive before the backend persists assistant turns.
|
||||
// Never blind-replace with server snapshot — merge + retry (see chat-finish-sync.mjs).
|
||||
try {
|
||||
const localMessages = messagesRef.current;
|
||||
@@ -804,7 +804,7 @@ export function useTKMindChat(
|
||||
} else if (rid && event.request_ids.includes(rid)) {
|
||||
clearActiveRequestMissingTimer();
|
||||
} else if (rid && !event.request_ids.includes(rid)) {
|
||||
// Goose can briefly report no active request between tool phases.
|
||||
// The backend can briefly report no active request between tool phases.
|
||||
// Confirm the absence before turning the UI idle, otherwise MindSpace
|
||||
// refreshes the page while tools are still mutating it.
|
||||
if (!activeRequestMissingTimerRef.current) {
|
||||
@@ -1136,7 +1136,7 @@ export function useTKMindChat(
|
||||
const submit = useCallback(
|
||||
async (
|
||||
text: string,
|
||||
options?: { mindspaceContext?: MindSpaceChatContext; messageId?: string; forceGoose?: boolean },
|
||||
options?: { mindspaceContext?: MindSpaceChatContext; messageId?: string; forceDeepReasoning?: boolean },
|
||||
imageUrls?: string[],
|
||||
previewImageUrls?: string[],
|
||||
) => {
|
||||
@@ -1194,7 +1194,7 @@ export function useTKMindChat(
|
||||
userMessage,
|
||||
{
|
||||
...runOptions,
|
||||
...(options?.forceGoose ? { forceGoose: true } : {}),
|
||||
...(options?.forceDeepReasoning ? { forceDeepReasoning: true } : {}),
|
||||
},
|
||||
);
|
||||
const finishedRun =
|
||||
|
||||
Reference in New Issue
Block a user