dify/web/app
yyh 2b848d7e93
fix(workflow): prevent redundant sandbox download refetch after reset
Problem:\n- In variable inspect artifacts view, clicking Reset All invalidates sandbox download query keys.\n- If a previously selected file has been removed, the download-url query may still refetch with stale path and return 400.\n- Default query retry amplifies this into repeated failed requests in this scenario.\n\nSolution:\n- Extend sandbox file invalidation with an option to skip download query refetch.\n- Use that option in Reset All flow so download-url queries are marked stale without immediate refetch.\n- Derive selected file path from latest sandbox flat data and disable download-url query when file no longer exists.\n- Disable retry only for artifacts-tab download-url query to avoid repeated 400 retries in this path.\n- Align tree selectedPath with derived selectedFilePath and add hook tests for invalidation behavior.\n\nValidation:\n- pnpm vitest --run service/use-sandbox-file.spec.tsx
2026-02-07 22:43:13 +08:00
..
(commonLayout) Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-06 14:40:44 +08:00
(shareLayout) Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
account Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-06 14:40:44 +08:00
activate Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
components fix(workflow): prevent redundant sandbox download refetch after reset 2026-02-07 22:43:13 +08:00
education-apply Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-06 14:40:44 +08:00
forgot-password Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
init refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
install Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-06 14:40:44 +08:00
oauth-callback feat: the frontend part of mcp (#22131) 2025-07-10 14:14:02 +08:00
repos/[owner]/[repo]/releases chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
reset-password Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
serwist/[path] Revert "fix(web): resolve serwist precaching 404 errors" 2026-02-05 16:06:33 +08:00
signin Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
signup Revert "refactor!: replace Zustand global store with TanStack Query for systemFeatures" 2026-02-01 19:06:45 +08:00
styles fix(web): remove unwanted border on sticky elements in dark mode (#31699) 2026-01-29 15:51:51 +08:00
layout.tsx Revert "refactor!: migrate commonLayout to SSR prefetch with TanStack Query hydration" 2026-02-01 19:06:45 +08:00
page.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
routePrefixHandle.tsx chore(web): new lint setup (#30020) 2025-12-23 16:58:55 +08:00
sw.ts Revert "fix(web): resolve serwist precaching 404 errors" 2026-02-05 16:06:33 +08:00