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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user