dify/web/app/components/workflow/variable-inspect
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
..
artifacts-tab.tsx fix(workflow): prevent redundant sandbox download refetch after reset 2026-02-07 22:43:13 +08:00
display-content.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
empty.tsx fix: check and update doc links (#30849) 2026-01-22 16:13:09 +08:00
group.tsx refactor: type variable inspect handlers 2026-01-31 00:04:57 +08:00
index.tsx chore(web): migrate lodash-es to es-toolkit compat (#30126) 2025-12-25 09:44:57 +08:00
inspect-layout.tsx fix(web): align variable inspect tabs in empty state 2026-01-28 14:15:55 +08:00
large-data-alert.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
left.tsx refactor: type variable inspect handlers 2026-01-31 00:04:57 +08:00
listening.tsx refactor(i18n): use JSON with flattened key and namespace (#30114) 2025-12-29 14:52:32 +08:00
panel.tsx fix: scope Reset All button visibility to current tab's data 2026-02-05 11:43:54 +08:00
right.tsx refactor: streamline variable inspect editor state 2026-01-31 00:31:26 +08:00
split-panel.tsx refactor(web): extract split layout for variable inspect 2026-01-28 14:06:34 +08:00
tab-header.tsx fix: hide artifacts tab in variable inspect panel for classic mode 2026-01-30 16:10:17 +08:00
trigger.tsx refactor: type event emitter payloads 2026-01-31 00:04:57 +08:00
types.ts refactor: streamline variable inspect editor state 2026-01-31 00:31:26 +08:00
utils.tsx refactor: add json schema type guard 2026-01-31 00:57:45 +08:00
value-content.tsx refactor: streamline variable inspect editor state 2026-01-31 00:31:26 +08:00
value-types.ts refactor: streamline variable inspect editor state 2026-01-31 00:31:26 +08:00
variables-tab.tsx refactor: type event emitter payloads 2026-01-31 00:04:57 +08:00