b7f1eb9b7b
fix(markdown)!: return empty string for non-string content in preprocessors
...
Related to a9c5201485 - when switching views during active preview run,
the markdown preprocessors could receive non-string content (e.g., frozen
arrays from immer). Returning the original value caused ReactMarkdown to
fail with "Cannot assign to read only property" error.
Now both preprocessLaTeX and preprocessThinkTag return '' for non-string
input, preventing runtime errors during view switches.
2026-01-27 01:10:00 +08:00
a0188bd9b5
fix(workflow)!: add mounted guard to prevent ReactFlow operations after unmount
...
When switching from graph view to skill view during an active preview run,
SSE callbacks continue executing and attempt to update ReactFlow node/edge
states. This could cause errors since the component is unmounted.
Add optional `isMountedRef` parameter to `useNodesInteractionsWithoutSync`
and `useEdgesInteractionsWithoutSync` hooks. When provided, operations are
skipped if the component has unmounted, preventing potential errors while
allowing the SSE connection to continue running in the background.
BREAKING CHANGE: `useNodesInteractionsWithoutSync` and
`useEdgesInteractionsWithoutSync` now accept an optional `isMountedRef`
parameter. Existing callers are unaffected as the parameter is optional.
2026-01-27 00:43:58 +08:00
6b439b1699
fix: behave correctly when user is not talking Dify
2026-01-27 00:33:41 +08:00
bf12445960
fix(workflow): make FileTree and ArtifactsSection scroll independently
...
The sidebar layout was broken when ArtifactsSection expanded - it would
squeeze the FileTree and neither area could scroll. This restructures the
layout so each section has its own scroll container with proper height
constraints.
2026-01-27 00:14:33 +08:00
b57b1a6926
feat: generate better instructions
2026-01-27 00:09:11 +08:00
a9fb73fa31
fix: avoid flask backend error
2026-01-27 00:02:41 +08:00
a9c5201485
refactor(workflow)!: persist the debug state of the chatflow preview panel to the zustand store and split useChat hook into modular files
2026-01-26 23:21:44 +08:00
87d033e186
Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
2026-01-26 23:12:44 +08:00
5eaf0c733a
fix: service api doc can not gen ( #31549 )
2026-01-26 21:59:02 +09:00
f561656a89
chore: follow-up fixes for storybook vite migration ( #31545 )
2026-01-26 20:20:14 +08:00
f01f555146
chore: increase plugin cache ttl to 1 hour ( #31552 )
2026-01-26 19:48:33 +08:00
55120ea9f7
chore: prompt change also clear useless tool id
2026-01-26 18:29:38 +08:00
b99311baa0
chore: remove useless toolid
2026-01-26 18:09:46 +08:00
ec5964c419
feat: Add support for array[message](List[promptMessage]) variable type
...
in workflow
2026-01-26 17:50:18 +08:00
5ac70633a2
Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
...
# Conflicts:
# web/pnpm-lock.yaml
2026-01-26 17:09:36 +08:00
47d0e400ae
chore: update to story book nextjs-vite ( #31536 )
2026-01-26 17:07:20 +08:00
c9edd71395
Merge branch 'feat/support-agent-sandbox' of https://github.com/langgenius/dify into feat/support-agent-sandbox
2026-01-26 16:59:31 +08:00
2e954388f5
merge
2026-01-26 16:57:45 +08:00
2c02c8ac18
fix(sandbox): fetch artifacts on mount for blue dot indicator
...
Remove enabled condition so data is fetched when component mounts,
allowing blue dot to show when files exist even before expanding.
TanStack Query handles request deduplication automatically.
2026-01-26 16:53:16 +08:00
5cdd69e7e0
refactor: Refactor context generation to use available vars
2026-01-26 16:50:44 +08:00
e5e43bc2b9
fix(sandbox): fix guide line offset and use spinner for loading
...
- Adjust TreeGuideLines lineOffset to 2 to center lines under folder icons
- Replace skeleton loading with spinner in header area
2026-01-26 16:37:51 +08:00
70d88bc522
refactor(sandbox): align artifacts tree with file tree styles
...
Reuse TreeGuideLines for indent lines, use FileTypeIcon for file icons,
and match folder open/close icons with the main file tree component.
2026-01-26 16:19:28 +08:00
765b548be4
fix(a11y): improve accessibility for artifacts tree
...
Add aria-label, aria-expanded attributes and focus-visible styles
for folder buttons. Hide loading skeleton from assistive tech.
2026-01-26 16:01:22 +08:00
830c286062
feat: support credical
2026-01-26 15:55:24 +08:00
f90f3287d8
fix: provider and tool auth click not show
2026-01-26 15:55:23 +08:00
8724ba04aa
fix: fix Cannot read properties of null (reading 'credential_form_sch… ( #31117 )
2026-01-26 15:52:53 +08:00
d396d92059
feat(sandbox): implement artifacts section UI
...
- Replace placeholder with functional ArtifactsSection component
- Add ArtifactsTree component for file tree rendering
- Support expand/collapse with lazy loading
- Show blue dot indicator when collapsed with files
- Add empty state card with hint text
- Add download button on file hover
- Add i18n translations (en-US, zh-Hans)
2026-01-26 15:43:06 +08:00
166b4a5a2b
feat(sandbox): add sandbox file API service layer
...
- Add types for sandbox file API (SandboxFileNode, SandboxFileDownloadTicket)
- Add oRPC contracts for listFiles and downloadFile endpoints
- Add TanStack Query hooks (useGetSandboxFiles, useDownloadSandboxFile)
- Add useSandboxFilesTree hook with flat-to-tree conversion
2026-01-26 15:40:27 +08:00
6fd001c660
chore: eslint prune-suppressions ( #31526 )
2026-01-26 15:31:19 +08:00
e8e386a6b9
fix: Add vertical scrolling support for floating elements. ( #30897 )
...
Co-authored-by: zhaiguangpeng <zhaiguangpeng@didiglobal.com >
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-26 15:17:42 +08:00
694ed4f5e3
chore: small ui
2026-01-26 15:06:33 +08:00
eba5eac3fa
refactor: api/controllers/console/setup.py to ov3 ( #31465 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-26 15:04:33 +08:00
19008dce13
refactor: api/controllers/console/version.py to v3 ( #31463 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-01-26 15:04:25 +08:00
e39711f9ea
perf: remove unnecessary tree cache invalidation on file save
...
The tree invalidation was causing redundant network requests since the
file content cache is already managed via setQueryData in the save manager.
2026-01-26 15:02:42 +08:00
92011d0a31
refactor: LLM plugin invoke parsing ( #31499 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-26 14:59:57 +08:00
154018fe31
chore: fix tool ui
2026-01-26 14:52:56 +08:00
a51ced0a4f
refactor: pass BaseModel instances instead of dict ( #31514 )
...
Co-authored-by: fghpdf <fghpdf@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-26 14:50:14 +08:00
dad8e408b0
fix(web): upgrade tanstack devtools to fix seroval RCE vulnerability ( #31515 )
2026-01-26 14:49:58 +08:00
010cbd0a73
chore: remove useless meata config when save file
2026-01-26 14:28:35 +08:00
d941201a3e
refactor(tool-selector): remove unused components and consolidate import ( #31018 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:24:00 +08:00
87bcd70f59
feat: add tool call based structured output
2026-01-26 14:17:57 +08:00
39799b9db7
feat(sandbox): artifact browser
2026-01-26 14:13:36 +08:00
453844b9e8
chore: editor config in new slide
2026-01-26 14:07:35 +08:00
dd988d42c2
feat: enhance quota panel to support additional model providers and integrate trial models feature ( #31443 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:04:12 +08:00
a43d2ec4f0
refactor: restructure Completed component ( #31435 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai >
2026-01-26 14:03:51 +08:00
7c12e923b6
feat: add trial model list in system features ( #31313 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: hj24 <mambahj24@gmail.com >
2026-01-26 11:52:05 +08:00
677775079f
fix: use IS_CLOUD_EDITION for 'Managed by SaaS' tag visibility
...
Change from !IS_CE_EDITION to IS_CLOUD_EDITION to ensure the tag only
shows in cloud edition, not in enterprise or other self-hosted variants.
2026-01-26 11:42:55 +08:00
3f4d6b9452
fix: click readme hide config
2026-01-26 11:40:28 +08:00
4f75d7f8e2
fix: hide 'Managed by SaaS' tag in CE edition for sandbox providers
...
The tag should only display in SaaS version since CE edition also has
system config from migrations but the label is misleading for self-hosted.
2026-01-26 11:33:40 +08:00
902468e3e0
chore: tool picker height
2026-01-26 11:30:48 +08:00