Harry
70d0d46678
fix(api): remove tool provider list cache to fix cache inconsistency
...
This commit removes the Redis caching mechanism for tool provider list
API that was introduced in #29101 .
## Problems with the current caching approach
1. **Cache inconsistency**: After CRUD operations on tool providers,
cached data may not be properly invalidated, causing stale data.
2. **Race conditions**: Cache invalidation timing issues - invalidating
inside Redis locks caused timeouts (#30150 ), moving outside causes
race conditions.
3. **Hard to maintain**: Manual cache invalidation scattered across
multiple service files is error-prone and difficult to maintain.
4. **User-facing symptoms**:
- Newly created tools not appearing in the list
- Deleted tools still showing up
- Updated tool configurations not reflecting immediately
- MCP provider auth state not updating correctly
## Changes
- Remove `ToolProviderListCache` class and its usage
- Remove cache invalidation calls from all service files
- Remove related test mocks
- Keep the code optimizations from #29101 (session management, batch processing)
Fixes #30322
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 16:32:42 +08:00
yyh
09be869f58
refactor(web): drop swr and migrate share/chat hooks to tanstack query ( #30232 )
...
Co-authored-by: Joel <iamjoel007@gmail.com>
2025-12-29 14:04:01 +08:00
DevByteAI
0b1439fee4
fix(template-transform): use base64 encoding for Jinja2 templates to fix #26818 ( #30223 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-12-29 13:03:39 +08:00
Bowen Liang
dfd2dd5c68
build: update github actions ( #30106 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-12-29 11:26:34 +08:00
yyh
3ae7788933
refactor(query-state): migrate query param state management to nuqs ( #30184 )
...
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-29 11:24:54 +08:00
yyh
446df6b50d
fix(web): rollback React Scan dynamic import ( #30294 )
2025-12-29 10:40:56 +08:00
Shemol
d9cecabe93
fix: release graph_runtime_state reference to prevent memory leak under high load ( #30236 )
...
Signed-off-by: SherlockShemol <shemol@163.com>
2025-12-29 10:35:47 +08:00
lif
b71a0d3f04
fix(web): handle null/undefined message in log list ( #30253 )
...
Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-29 10:34:20 +08:00
Will
d546d525b4
feat: MCP tool adds support for embeddedResource ( #30261 )
...
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-12-29 10:15:47 +08:00
Stephen Zhou
a46dc2f37e
chore(sdk/nodejs): update deps ( #30291 )
2025-12-29 10:13:19 +08:00
wangxiaolei
8b38e3f79d
feat: document batch operation tool add re-index operation ( #30275 )
2025-12-29 10:03:15 +08:00
非法操作
44ab8a3376
fix: Workflow Start node optional enum parameter is treated as required ( #30287 )
2025-12-29 10:02:40 +08:00
yyh
1e86535c4a
refactor(web): Migrate to Unified TanStack Devtools ( #30279 )
2025-12-29 09:43:44 +08:00
dependabot[bot]
5b1c08c19c
chore(deps): bump json-repair from 0.54.1 to 0.54.3 in /api ( #30285 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-29 09:42:24 +08:00
dependabot[bot]
6202c566e9
chore(deps): bump scheduler from 0.26.0 to 0.27.0 in /web ( #30284 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-29 09:42:17 +08:00
NeatGuyCoding
a00ac1b5b1
fix(api): fix credential type handling and rebuild subscription transaction safety ( #30242 )
...
Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com>
2025-12-28 20:29:35 +08:00
wangxiaolei
bf56c2e9db
fix: fix custom tool content is not update ( #30250 )
2025-12-28 17:50:30 +08:00
yyh
543ce38a6c
chore(claude-code): migrate from legacy MCP configuration to official plugin system ( #30265 )
2025-12-28 17:48:55 +08:00
NeatGuyCoding
1f2c85c916
fix: wrong usage of redis lock ( #28177 )
...
Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maries <xh001x@hotmail.com>
Co-authored-by: 非法操作 <hjlarry@163.com>
2025-12-28 13:47:54 +08:00
Maries
2b01f85d61
fix: consolidate duplicate InvokeRateLimitError definitions ( #30229 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-28 03:03:42 +09:00
Novice
d8010a7fbc
fix: Add JSON RPC request type guard ( #30216 )
2025-12-28 03:02:46 +09:00
Sara Rasool
b067ad2f0a
chore(web): remove unused dev-preview page ( #30226 )
...
Co-authored-by: Dev <dev@Devs-MacBook-Pro-4.local>
2025-12-28 03:01:57 +09:00
Wu Tianwei
b85564cae5
fix: remove unused CSS styles and fix HitTestingPage layout ( #30235 )
2025-12-28 03:00:30 +09:00
Shemol
c393d7a2dc
test(web): add unit tests for Avatar component ( #30201 )
2025-12-27 10:07:10 +08:00
Jyong
f610f6895f
fix: retrieval test and knowledge retrieval node failed in multimodal mode ( #30210 )
...
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-26 21:42:06 +08:00
wangxiaolei
d20a8d5b77
fix: fix missing not in ( #30207 )
2025-12-26 16:52:34 +08:00
wangxiaolei
8611301722
fix: fix DatasetRetrieval._process_metadata_filter_func miss in operator ( #30199 )
2025-12-26 16:34:50 +08:00
Xiyuan Chen
6044f0666a
fix: use query param for delete method ( #30206 )
2025-12-26 00:34:35 -08:00
Joel
8d26e6ab28
chore: some tests for components ( #30194 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-26 14:36:24 +08:00
wangxiaolei
61d255a6e6
chore: bypass InsufficientPrivilege on Azure PostgreSQL ( #30191 )
2025-12-26 14:35:05 +08:00
Asuka Minato
f0d02b4b91
refactor: split changes for api/controllers/console/explore/message.py ( #29890 )
2025-12-26 11:02:12 +08:00
Asuka Minato
d100354851
refactor: split changes for api/controllers/console/explore/saved_mes… ( #29889 )
2025-12-26 11:00:31 +08:00
Asuka Minato
93d1b2fc32
refactor: split changes for api/controllers/console/workspace/load_ba… ( #29887 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-26 11:00:03 +08:00
zhaobingshuang
fa1009b938
fix(dataset): dataset tags service_api error "Dataset not found" ( #30028 )
...
Co-authored-by: zbs <zbs@cailian.onaliyun.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-12-26 10:55:42 +08:00
wangxiaolei
fd64156f9d
feat: allow config NEXT_PUBLIC_BATCH_CONCURRENCY ( #30086 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 10:49:10 +08:00
wangxiaolei
bdd8a35b9d
feat: add mcp tool display directly ( #30019 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 10:41:10 +08:00
wangxiaolei
b892906d71
fix: fix metadata filter not survive a rename ( #30174 )
2025-12-26 10:40:30 +08:00
Asuka Minato
7e06225ce2
refactor: part of remove all reqparser ( #29847 )
2025-12-25 19:57:07 +08:00
Pleasure1234
f08d847c20
fix: add transparent border to prevent button size flickering ( #30128 )
2025-12-25 19:50:21 +08:00
lif
44fc0c614c
fix(web): correct deleted tools matching to use provider_id instead of id ( #30138 )
...
Signed-off-by: majiayu000 <1835304752@qq.com>
2025-12-25 19:49:26 +08:00
Joel
0f3ffbee2c
chore: some test ( #30148 )
...
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2025-12-25 19:45:27 +08:00
Stephen Zhou
08d5eee993
fix: load i18n on server ( #30171 )
2025-12-25 19:13:59 +08:00
wangxiaolei
9885e92854
fix: validate first then save to db ( #30107 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-25 19:36:52 +09:00
Coding On Star
f2555b0bb1
feat(refactoring): introduce comprehensive guidelines and tools for component refactoring in Dify ( #30162 )
...
Co-authored-by: CodingOnStar <hanxujiang@dify.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2025-12-25 18:19:28 +08:00
Joel
c3bb95d71d
fix: update permission in member list caused page crash ( #30164 )
2025-12-25 17:26:21 +08:00
wangxiaolei
996c7d9e16
perf: using pipeline to delete redis cache ( #30159 )
2025-12-25 17:04:37 +08:00
Maries
0c4233e7df
fix(web): disable cache for trigger dynamic select options ( #30161 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 16:35:26 +08:00
JeeekXY
0f85ce3d0e
fix: prioritize copying selected text ( #30141 )
2025-12-25 16:22:42 +08:00
Maries
b90e6aa14c
fix(api): move cache invalidation outside redis lock to prevent timeout ( #30150 )
...
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 16:21:25 +08:00
-LAN-
f5fdd02022
chore: bump version to 1.11.2 ( #30088 )
2025-12-25 16:16:24 +08:00