From 7850b08a185e68afdb391b1b957ec301ec81eb99 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sun, 7 Jun 2026 22:56:35 -0700 Subject: [PATCH] Address PR review feedback (#1502) - Bump workflow model lane changeset to minor - Clear pending workflow model edits after value reload failures - Exclude Vite source module requests with query strings from API proxy --- .changeset/workflow-model-lanes-settings.md | 2 +- .../app/components/settings/sections/ProjectModelsSection.tsx | 1 + packages/dashboard/vite.config.ts | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.changeset/workflow-model-lanes-settings.md b/.changeset/workflow-model-lanes-settings.md index 9479088e9c..cd8249a5fc 100644 --- a/.changeset/workflow-model-lanes-settings.md +++ b/.changeset/workflow-model-lanes-settings.md @@ -1,5 +1,5 @@ --- -"@runfusion/fusion": patch +"@runfusion/fusion": minor --- Expose default-workflow Plan/Triage, Executor, and Reviewer model lanes from Project Models settings while keeping workflow setting values as the source of truth. diff --git a/packages/dashboard/app/components/settings/sections/ProjectModelsSection.tsx b/packages/dashboard/app/components/settings/sections/ProjectModelsSection.tsx index 28edbdd817..7c249099a7 100644 --- a/packages/dashboard/app/components/settings/sections/ProjectModelsSection.tsx +++ b/packages/dashboard/app/components/settings/sections/ProjectModelsSection.tsx @@ -167,6 +167,7 @@ export function ProjectModelsSection({ } catch { if (reqSeq.current === seq) { setWorkflowPayload(null); + setWorkflowPending({}); setWorkflowRejections({}); setResolvedWorkflowId(defaultWorkflowId); addToast(t("settings.models.workflowLanesLoadFailed", "Failed to load workflow model settings"), "error"); diff --git a/packages/dashboard/vite.config.ts b/packages/dashboard/vite.config.ts index d1a8c35762..d49bde4c15 100644 --- a/packages/dashboard/vite.config.ts +++ b/packages/dashboard/vite.config.ts @@ -199,7 +199,8 @@ export default defineConfig({ }, server: { proxy: { - "^/api(?!/.*\\.ts$)(/|$)": { + // Keep Vite source modules under app/api* on the dev server while proxying real API endpoints. + "^/api(?!/.*\\.[jt]sx?(?:\\?|$))(/|$)": { target: `http://localhost:${process.env.FUSION_API_PORT ?? "4040"}`, changeOrigin: true, ws: true,