Skip to content

feat: use routes - #1

Merged
iamjoel merged 3 commits into
langgenius:mainfrom
crazywoola:main
May 12, 2023
Merged

iamjoel merged 3 commits into
langgenius:mainfrom
crazywoola:main

Conversation

@crazywoola

Copy link
Copy Markdown
Member

No description provided.

@crazywoola
crazywoola requested a review from iamjoel May 12, 2023 02:55
@crazywoola crazywoola self-assigned this May 12, 2023
@iamjoel
iamjoel merged commit 81facf1 into langgenius:main May 12, 2023
@kong3916 kong3916 mentioned this pull request Sep 23, 2024
5 of 12 tasks
wallowbear pushed a commit to wallowbear/dify that referenced this pull request Jun 9, 2025
…rn/rsbuild/plugin-less-1.1.1

chore(deps-dev): bump @rsbuild/plugin-less from 1.1.0 to 1.1.1
liyuu127 pushed a commit to liyuu127/dify that referenced this pull request Jul 8, 2025
fix:去掉dify字眼

* feature-jinhua-1.4.1: (1 commits)
  fix:去掉dify字眼

Signed-off-by: wangjinhua_1 <1416698924@qq.com>
Reviewed-by: wangjinhua_1 <1416698924@qq.com>
Merged-by: wangjinhua_1 <1416698924@qq.com>

CR-link: https://codeup.aliyun.com/5edf576bd1d1abe63b55fab7/ai-agent/dify/change/1
liyuu127 pushed a commit to liyuu127/dify that referenced this pull request Jul 11, 2025
feat: 多模态切换逻辑新增替换文件方法

* edit-1.4.1: (29 commits)
  feat: 新增/console/api/files/analysis接口
  feat: /conversations接口新增keyword参数
  Merge langgenius#1 into edit-1.4.1 from feature-jinhua-1.4.1
  Revert &quot;feat: /conversations接口新增keyword参数&quot;
  feat: 新增/console/api/conversations接口,修改/console/api/files/analysis接口逻辑
  chore: 修改Dockerfile软件源
  chore: 修改Dockerfile软件源
  chore: 修改Dockerfile软件源
  chore: 修改Dockerfile pip软件源
  chore: 修改Dockerfile uv软件源
  chore: 修改Dockerfile uv软件源
  chore: 修改Dockerfile 新增UV先更新锁文件
  Revert &quot;chore: 修改Dockerfile软件源&quot;
  Merge langgenius#2 into edit-1.4.1 from feature-jinhua-1.4.1
  feat: 修改/console/api/conversations接口字段解析规则
  feat: 修改/console/api/conversations接口字段解析规则
  feat: 修改/console/api/conversations接口返回结果解析规则,修改文件解析逻辑
  feat: 修改/console/api/conversations接口返回结果解析规则,修改文件解析逻辑
  feat: 修改/console/api/conversations接口新增keyword关键字模糊查询,修改文件解析逻辑
  feat: 修改/console/api/conversations关键字模糊查询逻辑修改,修改文件解析逻辑
  feat: 修改/console/api/conversations关键字模糊查询逻辑修改,修改文件解析逻辑
  feat: 修改/console/api/conversations关键字模糊查询逻辑修改,修改文件解析逻辑
  feat: 修改/console/api/conversations当用户不存在时,返回空数据而不是报错
  feat: 修改/console/api/conversations当用户不存在时,返回空数据而不是报错
  feat: 修改/console/api/conversations endUser同一个sessionId在不同的智能体中id不同,修改成in方式
  feat: 修改/console/api/conversations endUser同一个sessionId在不同的智能体中id不同,修改成in方式
  feat: conversation_with_summary_fields返回参数新增app_id
  Merge langgenius#3 into edit-1.4.1 from feature-jinhua-1.4.1
  feat: 多模态切换逻辑新增替换文件方法

Signed-off-by: wangjinhua_1 <1416698924@qq.com>
Merged-by: wangjinhua_1 <1416698924@qq.com>

CR-link: https://codeup.aliyun.com/5edf576bd1d1abe63b55fab7/ai-agent/dify/change/4
crazywoola pushed a commit that referenced this pull request Aug 2, 2025
feat: Add auto-focus feature to GotoAnything component
guchenhe added a commit that referenced this pull request Nov 17, 2025
Final comprehensive validation of all three rename fixes.

Validates:
- Fix #1: Extension stripping for location lookup (8bf899c)
- Fix #2: Conditional rename detection (532e97c)
- Fix #3: Extension stripping for new_target (b9489a0)

Test plan:
1. Add validation-v1.mdx → wait for cn/jp translations
2. Rename v1 → v2 → verify complete rename behavior
3. Rename v2 → v3 → verify consistency

Expected: docs.json entries updated (not deleted), no extensions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dosubot dosubot Bot mentioned this pull request Mar 24, 2026
6 tasks done
pangddu123 referenced this pull request in WNDS-JNU/ModelNet Apr 29, 2026
…s + import-button loading-disable

- 新增 8 份 spec.tsx(panel / requirements-validation / 三轴 selector / dynamic-config-form / diagnostics-config / import-button),共 75 cases
- 三轴覆盖:capability 灰显 + tooltip / scope 过滤 / 7 种白名单控件 + 非白名单 alert / Diagnostics 7 switch + storage allowlist / id-only 抽取 + SSRF 边界
- 修 P2.11 9 处 TS 报错(Field children fragment / toast (title) 签名 / oRPC 推断收紧)
- 修 P2.11 5 处 lint warning(useMemo 锁数组引用 / 复合 key / 不存在的 tailwind token)
- review #1:ImportModelInfoButton 加 isLoading prop,panel 传 isLoadingModels;防 registry loading 时空数组导入误报 noneMatched
- range 调整:spec 写"mock /validate API",但当前后端无该端点(P2.11 已说明);改用 renderHook 驱动真实 useConfig + render Panel 走真 renderIssue 路径

验证:pnpm type-check:tsgo 0 errors / pnpm eslint --fix 0/0 / pnpm test 8 files 75 tests 全过

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
XiaoCC pushed a commit to XiaoCC/dify that referenced this pull request Aug 7, 2026
fix: backfill empty message answer and usage from workflow outputs
lin-snow added a commit that referenced this pull request Aug 27, 2026
Three independent defects made catalog search feel unstable.

Stale results flash on every search. `isSearchMode` was derived from the raw
nuqs `q` while the request body used the 500ms-debounced value, so keystroke #1
flipped into search mode with an empty query. That fired a full empty-query
search whose generic top-plugins list rendered for the debounce window before
the real results replaced it. Both now read the same debounced value.

Grid unmount on every query change. The infinite query had no
`placeholderData`, so `data` went undefined whenever the key changed and
ListWrapper's `!isLoading` gate tore the whole result grid out, collapsing the
container and jumping the scroll position. Measured against a live catalog, a
sort change blanked the grid for 152 of 360 sampled frames; with
`keepPreviousData` and an `isRefreshing` dim it is 0 of 461.

Requests that never settle. The Marketplace oRPC link called `globalThis.fetch`
with no deadline, so a stalled connection left the query pending forever with
no error state and no retry — the reported permanent spinner. Requests now
carry a 15s deadline composed with (never replacing) react-query's abort
signal. The server prefetch and the banner fetch get their own 2.5s budget:
awaiting them unbounded held the whole RSC response, pushing time-to-first-byte
to ~7s against a 3s-delayed API while the browser sat on the previous page.

Supporting changes:

- `getMarketplacePlugins` and `getMarketplaceCollectionsAndPlugins` no longer
  swallow every rejection into a successful empty page. That turned outages
  and aborted keystrokes into "no plugins found", suppressed retries, cached
  the emptiness for the full staleTime, and killed `getNextPageParam`
  permanently via `total: 0`. ListWrapper now renders a retry affordance.
- The collections fan-out is bounded to 4 concurrent requests instead of
  firing one per collection at once, and per-collection failures degrade to an
  empty carousel rather than a blank catalog.
- Scroll pagination measures once per frame instead of per scroll event. Each
  threshold hit calls `fetchNextPage`, which defaults to `cancelRefetch: true`,
  so an unthrottled burst aborted and restarted the in-flight page request —
  and the backend counts those aborts against its search circuit breaker.
- Cross-page results are deduped by `org/name`; Meilisearch resolves
  `install_count` ties by document order and the sync task rewrites those
  documents every minute, so pages can overlap and collide on React keys.
- Search queries no longer inherit `retry: 3`; ~7s of backoff reads as a hang.
lin-snow added a commit that referenced this pull request Aug 27, 2026
Three independent defects made catalog search feel unstable.

Stale results flash on every search. `isSearchMode` was derived from the raw
nuqs `q` while the request body used the 500ms-debounced value, so keystroke #1
flipped into search mode with an empty query. That fired a full empty-query
search whose generic top-plugins list rendered for the debounce window before
the real results replaced it. Both now read the same debounced value.

Grid unmount on every query change. The infinite query had no
`placeholderData`, so `data` went undefined whenever the key changed and
ListWrapper's `!isLoading` gate tore the whole result grid out, collapsing the
container and jumping the scroll position. Measured against a live catalog, a
sort change blanked the grid for 152 of 360 sampled frames; with
`keepPreviousData` and an `isRefreshing` dim it is 0 of 461.

Requests that never settle. The Marketplace oRPC link called `globalThis.fetch`
with no deadline, so a stalled connection left the query pending forever with
no error state and no retry — the reported permanent spinner. Requests now
carry a 15s deadline composed with (never replacing) react-query's abort
signal. The server prefetch and the banner fetch get their own 2.5s budget:
awaiting them unbounded held the whole RSC response, pushing time-to-first-byte
to ~7s against a 3s-delayed API while the browser sat on the previous page.

Supporting changes:

- `getMarketplacePlugins` and `getMarketplaceCollectionsAndPlugins` no longer
  swallow every rejection into a successful empty page. That turned outages
  and aborted keystrokes into "no plugins found", suppressed retries, cached
  the emptiness for the full staleTime, and killed `getNextPageParam`
  permanently via `total: 0`. ListWrapper now renders a retry affordance.
- The collections fan-out is bounded to 4 concurrent requests instead of
  firing one per collection at once, and per-collection failures degrade to an
  empty carousel rather than a blank catalog.
- Scroll pagination measures once per frame instead of per scroll event. Each
  threshold hit calls `fetchNextPage`, which defaults to `cancelRefetch: true`,
  so an unthrottled burst aborted and restarted the in-flight page request —
  and the backend counts those aborts against its search circuit breaker.
- Cross-page results are deduped by `org/name`; Meilisearch resolves
  `install_count` ties by document order and the sync task rewrites those
  documents every minute, so pages can overlap and collide on React keys.
- Search queries no longer inherit `retry: 3`; ~7s of backoff reads as a hang.
TonloOO referenced this pull request in TonloOO/dify Sep 8, 2026
feat(trace): add OpenTelemetry tracing provider
MindOfqc added a commit to MindOfqc/dify that referenced this pull request Nov 16, 2026
…passes

Address the nine unresolved review comments on PR langgenius#46458 by making the real
product types hold in tests rather than bypassing the type checker with
cast / Mock(spec=) / object / Any / **kwargs.

list_operator node_spec (langgenius#1 type-origin-code, langgenius#2 parse-don't-validate):
- _build_node now accepts only the validated ListOperatorNodeData; drop the
  Mapping[str, object] branch and the internal re-validation.
- _filter_by returns the real graphon FilterBy/FilterCondition models and
  takes a FilterOperator enum, so fixtures are built from origin-code types
  instead of ad hoc dict[str, object].

workflow mock_nodes (langgenius#3, langgenius#4 parse-don't-validate):
- MockNodeMixin.__init__ takes data: BaseNodeData and forwards to the real
  Node.__init__ contract through a typed callable instead of packing an
  ad hoc init_kwargs: dict[str, Any].
- MockParameterExtractorNode mirrors the real node output contract: extracted
  values are flat top-level outputs and process_data no longer re-extracts a
  nested "parameters" copy via dict.get.
- Remove the duplicated @OverRide decorators introduced on several _run methods.

base_app_generator (langgenius#5, langgenius#6 precise-type):
- _prepare_file_inputs returns File | list[File] | None and _as_file /
  _as_file_list accept that precise union instead of object.

advanced_prompt_transform (langgenius#7, langgenius#8 import-real-class, langgenius#9 no-kwargs):
- Delete _StubbedBranchesTransform; the dispatch test now exercises the real
  AdvancedPromptTransform and asserts real completion/chat output.
- The malformed-template case asserts the pydantic boundary rejects the
  payload (parse-don't-validate) instead of casting untyped data past the
  checker into get_prompt's defensive guard.
- The history fakes spell out max_token_limit / message_limit with types
  matching TokenBufferMemory.get_history_prompt_messages instead of **kwargs.

Allow ARG001 for the advanced_prompt_transform test fakes that intentionally
ignore message_limit while mirroring the real signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants