fix: keep foreground consultations responsive

This commit is contained in:
Jesse_Chen
2026-08-11 11:59:14 +08:00
parent 8eed0603f9
commit 620131d6a8
9 changed files with 191 additions and 36 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ export async function POST(request: Request) {
theme: parsed.data.theme,
});
const workflowContext = applyBirthTimeModeToWorkflowContext(
await runConsultationWorkflow(toolInput),
await runConsultationWorkflow(toolInput, { foreground: true }),
consultationMode,
);
const workflowReceipt = consultationWorkflowReceipt(workflowContext);