yyh
772dbe620d
fix(workflow): disable view switch during preview run instead of mounted guard
...
Simpler approach: disable the view picker toggle when preview is running,
preventing users from switching views during active runs.
This replaces the previous mounted ref guard approach (commits a0188bd9b5 ,
b7f1eb9b7b , 8332f0de2b ) which added complexity to handle post-unmount
operations. Disabling the toggle is more direct and follows KISS principle.
Changes:
- Add disabled prop to ViewPicker based on isResponding state
- Revert mounted ref guards in use-chat-flow-control.ts
- Revert isMountedRef parameter in use-nodes/edges-interactions-without-sync.ts
- Revert defensive type check in markdown-utils.ts (no longer needed)
2026-01-27 01:31:22 +08:00
yyh
8332f0de2b
fix(workflow): reinitialize mounted ref on effect setup for StrictMode
...
In React StrictMode (dev mode), effects are run twice to help detect
side effects. The cleanup-only pattern left isMountedRef as false after
StrictMode's simulated unmount-remount cycle, causing stop/cancel
operations to be skipped even when the component was mounted.
Now the effect setup explicitly sets isMountedRef.current = true,
ensuring correct behavior in both development and production.
2026-01-27 01:23:08 +08:00
yyh
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
yyh
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
hjlarry
4c596aaac2
Merge branch 'feat/collaboration2' into feat/support-agent-sandbox
2026-01-25 00:00:03 +08:00
hjlarry
edb4457684
Merge remote-tracking branch 'myori/main' into feat/collaboration2
2026-01-24 15:22:07 +08:00
hjlarry
e105dc6289
new restore
2026-01-23 14:22:58 +08:00
Stephen Zhou
3de33f7a4e
fix: check and update doc links ( #30849 )
...
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2026-01-22 16:13:09 +08:00
Stephen Zhou
061feebd87
fix: check and update doc links ( #30849 )
...
Co-authored-by: Riskey <36894937+RiskeyL@users.noreply.github.com>
2026-01-21 16:31:48 +08:00
yyh
468d84faba
Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox
...
# Conflicts:
# web/app/components/header/account-setting/model-provider-page/model-selector/popup-item.tsx
# web/package.json
2026-01-21 10:52:43 +08:00
byteforge
8056768106
fix: enforce no-leaked-conditional-rendering as error and fix violations ( #31262 )
...
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
2026-01-20 23:08:59 +08:00
zxhlyh
0e66b51ca0
fix: history messages toolcalls
2026-01-20 17:37:23 +08:00
zxhlyh
fdaf471a03
fix: answer node text
2026-01-20 13:59:49 +08:00
Novice
13d6923c11
Merge branch 'feat/llm-support-tools' into feat/support-agent-sandbox
2026-01-20 10:27:42 +08:00
hjlarry
4acca22ff0
whether resolved sync to canvas
2026-01-20 10:12:15 +08:00
hjlarry
cb8fc9cf2d
Merge remote-tracking branch 'myori/main' into feat/collaboration2
2026-01-19 21:15:53 +08:00
zhsama
066d18df7a
Merge branch 'main' into feat/pull-a-variable
2026-01-19 15:00:15 +08:00
yyh
e8397ae7a8
fix(web): Zustand testing best practices and state read optimization ( #31163 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-19 10:31:34 +08:00
hjlarry
fc291e4ca2
Merge remote-tracking branch 'myori/main' into feat/collaboration2
2026-01-17 10:22:41 +08:00
zhsama
2e10d67610
perf: Replace topOffset prop with withHeader in Panel component
2026-01-15 16:44:15 +08:00
zhsama
5525f63032
refactor: sub-graph panel use shared Panel component
2026-01-15 16:12:39 +08:00
zxhlyh
c323028179
feat: llm node support tools
2026-01-08 14:27:37 +08:00
zxhlyh
1d93f41fcf
feat: llm node support tools
2026-01-07 16:28:41 +08:00
zxhlyh
04f40303fd
Merge branch 'main' into feat/llm-node-support-tools
2026-01-04 18:04:42 +08:00
zxhlyh
ececc5ec2c
feat: llm node support tools
2026-01-04 18:03:47 +08:00
yyh
2aaaa4bd34
feat(web): migrate from es-toolkit/compat to native es-toolkit ( #30244 ) ( #30246 )
2025-12-31 11:13:22 +08:00
lif
5338cf85b1
fix: restore draft version correctly in version history panel ( #30296 )
...
Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-30 09:22:00 +08:00
Stephen Zhou
6d0e36479b
refactor(i18n): use JSON with flattened key and namespace ( #30114 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 14:52:32 +08:00
yyh
3cbbb06dc4
chore(web): migrate lodash-es to es-toolkit compat ( #30126 )
2025-12-25 09:44:57 +08:00
Stephen Zhou
1e3823e605
chore: fix type check for i18n ( #30058 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-24 16:31:16 +08:00
Stephen Zhou
403adefc07
chore: lint require and how to import react ( #30041 )
2025-12-23 18:02:10 +08:00
Stephen Zhou
f2842da397
chore(web): new lint setup ( #30020 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-23 16:58:55 +08:00
Stephen Zhou
eabdc5f0eb
refactor(web): migrate to Vitest and esm ( #29974 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-22 16:35:22 +08:00
Stephen Zhou
a26881cb24
refactor: unified cn utils ( #29916 )
...
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2025-12-19 12:08:34 +08:00
yyh
626d4f3e35
fix(web): use atomic selectors to fix Zustand v5 infinite loop ( #28977 )
2025-12-01 15:45:50 +08:00
hjlarry
edf962cdb5
Merge branch 'feat/collaboration' into feat/collaboration2
2025-11-13 15:31:21 +08:00
Yeuoly
b76e17b25d
feat: introduce trigger functionality ( #27644 )
...
Signed-off-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: Stream <Stream_2@qq.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zhsama <torvalds@linux.do>
Co-authored-by: Harry <xh001x@hotmail.com>
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: yessenia <yessenia.contact@gmail.com>
Co-authored-by: hjlarry <hjlarry@163.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: WTW0313 <twwu@dify.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 17:59:37 +08:00
GuanMu
43bcf40f80
refactor: update installed app component to handle missing params and improve type safety ( #27331 )
2025-10-27 14:38:58 +08:00
hjlarry
ba17f576e9
Merge remote-tracking branch 'myori/main' into feat/collaboration
2025-10-21 08:47:01 +08:00
crazywoola
f0e739be43
fix: immer version and ref in code base ( #27130 )
2025-10-20 14:49:26 +09:00
lyzno1
9c66b92c34
Merge remote-tracking branch 'origin/main' into feat/collaboration
2025-10-15 21:08:08 +08:00
znn
4d8b8f9210
allow editing of hidden inputs in preview ( #24370 )
...
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: crazywoola <427733928@qq.com>
2025-10-15 11:19:53 +08:00
lyzno1
9aaace706b
feat: optimize comments panel filter UI and interaction logic
2025-10-12 13:04:24 +08:00
lyzno1
f19630bcf5
Merge remote-tracking branch 'origin/main' into feat/collaboration
2025-10-11 14:43:20 +08:00
hjlarry
c4d03bf378
change event type name of websocket
2025-10-11 09:07:02 +08:00
hjlarry
61c46bea40
fix missing i18n
2025-10-09 16:55:53 +08:00
Asuka Minato
a8746bff30
fix oxlint warnings ( #26634 )
2025-10-09 09:23:34 +08:00
hjlarry
6ce65de2cd
fix merged main issues
2025-10-04 21:11:59 +08:00
hjlarry
e240175116
sync nodes
2025-09-25 16:31:46 +08:00
hjlarry
4188c9a1dd
fix dark theme
2025-09-24 10:08:33 +08:00
hjlarry
47aba1c9f9
fix style
2025-09-23 14:41:34 +08:00
hjlarry
81c6e52401
Merge remote-tracking branch 'origin/p254' into p284
2025-09-18 15:14:55 +08:00
hjlarry
847d257366
Merge branch 'p254' into p284
2025-09-18 14:50:59 +08:00
hjlarry
687662cf1f
comment sync
2025-09-18 13:27:27 +08:00
-LAN-
85cda47c70
feat: knowledge pipeline ( #25360 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: jyong <718720800@qq.com>
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: quicksand <quicksandzn@gmail.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com>
2025-09-18 12:49:10 +08:00
hjlarry
088ccf8b8d
add UserAvatarList component
2025-09-18 09:47:07 +08:00
hjlarry
3eac26929a
sync the comment panel and canvas
2025-09-17 09:13:31 +08:00
hjlarry
89bed479e4
improve comment panel
2025-09-16 17:25:51 +08:00
hjlarry
fdd673a3a9
improve comments panel
2025-09-16 13:39:31 +08:00
hjlarry
10aa16b471
add workflow comment panel
2025-09-16 09:51:12 +08:00
17hz
635e7d3e70
fix: Cannot modify values when startNode has defaultValue ( #25595 )
2025-09-12 21:11:24 +08:00
hjlarry
d5fc3e7bed
add new conversation vars update api
2025-09-10 09:24:22 +08:00
hjlarry
ab438b42da
use new env variables update api
2025-09-10 09:07:55 +08:00
GuanMu
25a11bfafc
Export DSL from history ( #24939 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-02 21:36:52 +08:00
Yongtao Huang
208ce4e774
CI: add TS indentation check via esLint ( #24810 )
2025-09-01 15:31:59 +08:00
Joel
dac72b078d
feat: support bool type variable frontend ( #24437 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
2025-08-26 18:16:05 +08:00
17hz
ffe1685b54
feat: Add default value support for all workflow start node variable types ( #24129 )
...
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-22 18:44:48 +08:00
Charles Lee
0c595c4745
style: replace h-[1px] with h-px to unify the writing format of Tailwind CSS ( #24146 )
2025-08-21 21:38:40 +08:00
Wu Tianwei
218e247fd2
refactor: improve loading animation and debug panel styles ( #24075 )
2025-08-18 11:12:47 +08:00
crazywoola
7ee170f0a7
Feat node search ( #23685 )
...
Co-authored-by: GuanMu <ballmanjq@gmail.com>
Co-authored-by: zhujiruo <zhujiruo@foxmail.com>
Co-authored-by: Matri Qi <matrixdom@126.com>
Co-authored-by: croatialu <wuli.croatia@foxmail.com>
Co-authored-by: HyaCinth <88471803+HyaCiovo@users.noreply.github.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
2025-08-11 10:19:52 +08:00
HyaCinth
2931c891a7
chore: Optimize component styles and interactions ( #23250 ) ( #23543 )
2025-08-07 14:19:38 +08:00
hjlarry
e43b46786d
refactor all the frontend code
2025-08-07 10:58:53 +08:00
hjlarry
3f3b37b843
refactor to support mutli websocket connections
2025-08-06 17:05:39 +08:00
hjlarry
48c069fe68
support env vars collaborate
2025-08-05 15:22:22 +08:00
hjlarry
c2eec8545d
collaborate conversation vars
2025-08-05 14:24:51 +08:00
qiaofenlin
20f0238aab
feat: support workflow version specification in workflow and chat APIs ( #23188 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-03 16:27:12 +08:00
Matri Qi
99a4bd82b5
chore: fix function name typo ( #23306 )
2025-08-03 10:09:26 +08:00
GuanMu
7721648867
Fix variable config ( #23070 )
2025-07-29 11:24:59 +08:00
Anton Kovalev
15757110cf
feat: default value option for select input fields ( #21192 )
...
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: GuanMu <ballmanjq@gmail.com>
2025-07-28 15:37:23 +08:00
lyzno1
b5599b2945
fix: prevent panel width localStorage pollution during viewport compression ( #22745 ) ( #22747 )
2025-07-22 08:11:01 +08:00
znn
3cfba9e47b
updating icon ( #22485 )
2025-07-17 15:10:36 +08:00
GuanMu
7388fd1ec6
fix: Disable question editing in chat history ( #22438 )
2025-07-15 19:41:51 +08:00
GuanMu
f193e9764e
fix: Optimize the workspace panel width calculation ( #22195 )
2025-07-11 19:12:12 +08:00
le0zh
fe4e2f7921
feat: support var in suggested questions ( #17340 )
...
Co-authored-by: crazywoola <427733928@qq.com>
2025-07-11 15:07:32 +08:00
Minamiyama
3643ed1014
Feat: description field for env variables ( #21556 )
2025-07-09 15:18:23 +08:00
Minamiyama
a45aa1e505
feat(variables): auto replace spaces with underscores in variable name inputs ( #21843 )
2025-07-03 10:36:38 +08:00
zxhlyh
68f41bbaa8
Fix/workflow use nodes hooks ( #21822 )
2025-07-02 17:48:23 +08:00
zxhlyh
3bfa9767c0
Chore/workflow last run ( #21823 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
2025-07-02 17:48:07 +08:00
GuanMu
787ad5ab38
feat: Refactor panel component, add adaptive width observer to optimize panel width management ( #21576 )
2025-06-27 10:50:33 +08:00
Minamiyama
8ea27bc341
feat: persist debug-and-preview panel width in localstorage ( #21434 )
2025-06-24 20:34:11 +08:00
Minamiyama
197c018c1f
fix missing style of conversation variable panel default value textarea ( #21422 )
2025-06-24 15:58:39 +08:00
Joel
1a1bfd4048
feat: last run frontend ( #21369 )
...
The frontend of feat: Persist Variables for Enhanced Debugging Workflow (#20699 ).
Co-authored-by: jZonG <jzongcode@gmail.com>
2025-06-24 09:10:30 +08:00
QuantumGhost
3f9ced5374
Revert "feat:conversation variable support file array" ( #21273 )
2025-06-20 19:57:28 +08:00
-LAN-
6b1ad634f1
fix(workflow_run): sequence_number race. ( #21228 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-06-19 17:53:49 +08:00
kinoooolu
2bb19f85c6
feat:conversation variable support file array ( #21174 )
...
Co-authored-by: kino.lu <kino.lu@vipshop.com>
2025-06-19 10:26:38 +08:00
非法操作
6c0a91a64f
fix: some dark theme display incorrect ( #21055 )
2025-06-17 16:11:57 +08:00
Wu Tianwei
59b89b9971
fix: update documentation links for various components to support localization ( #21048 )
2025-06-16 14:13:04 +08:00
Bowen Liang
f4df759ba6
refactor: generalize method for getting doc link respecting locale and fix error link paths ( #20801 )
2025-06-13 10:58:43 +02:00
Kaitlyn Feng
c8d9f8e2e4
fix: resolve unstable scrolling in workflow debug panel with multiple input fields #19697 ( #19698 )
2025-05-30 14:54:30 +08:00
Panpan
ef3569e667
feat: support chatflow start node custom input field hidden ( #19678 )
2025-05-21 13:52:21 +08:00