Commit Graph

625 Commits

Author SHA1 Message Date
FFXN
06cd47807c feat(knowledge-fs): add content handling for initial source preview and cleanup tasks 2026-09-03 21:01:21 +08:00
FFXN
069be90768 fix (web): show syncing status for initial knowledge sources 2026-09-03 19:03:58 +08:00
Jyong
06a363509e fix(knowledge-fs): show only the shared prefix as the service API endpoint
The API access dialog appended `/queries/admission` to the endpoint it
displays, which is one operation rather than the base every KnowledgeFS
service route shares. Show `<service api>/knowledge-fs/spaces/<id>` instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 05:59:39 -04:00
Stephen Zhou
cbfd1f69ee
refactor(knowledge-fs): split translations into dedicated namespace 2026-09-03 17:37:59 +08:00
Stephen Zhou
42cb6519ea
Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-09-03 16:32:30 +08:00
Stephen Zhou
29acaabc6a
chore(web): canonicalize Tailwind classes (#41718) 2026-09-03 07:33:05 +00:00
Jyong
c8aa2d4f59 feat(knowledge-fs): report specific, actionable background task failures
Every document-processing failure surfaced as "the document could not be
processed", and every data-source failure as "the source could not be read",
because the root cause was erased at three points: the compilation classifier
collapsed any coded-but-non-retryable error into DOCUMENT_COMPILATION_FAILED,
datasource runtime errors were reduced to per-operation constants, and the
console mapped dozens of codes onto a handful of generic sentences without the
stage or a support reference.

- knowledge-fs: keep the specific public code for any coded error in the
  compilation classifier (retry follows the error or the catalog policy), tag
  previously uncoded failures (semantic chunking output, embedding dimension,
  PDF rendering, lease loss, generation model, unsupported file type) with
  public codes, give embedding provider errors their own codes instead of the
  parser's, alias datasource runtime codes, and register 17 catalog entries
  (model response invalid, parser unsupported type, PDF render, crawl page
  not found, provider timeout/unavailable/rejected, content too large, ...).
- api: extend the public error-code enum (including the missing
  DOCUMENT_PARSER_TIMEOUT) and regenerate the contracts.
- web: per-code copy that says what happened and what to do, in all 24
  locales, plus a "failed while <stage> · reference <id>" line under each
  failed task in the background-task drawer and the document task list.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 03:09:29 -04:00
Stephen Zhou
947b654d14
fix(knowledge-fs): allow dismissing finished tasks 2026-09-03 14:37:23 +08:00
Jyong
4d71c4a83a fix(knowledge-fs): allow one unresolved bad case per retrieval trace
A retrieval test record could be flagged as a bad case any number of times,
piling duplicate open cases onto the quality page. Refuse to file another bad
case while the trace already has one that is open or replaying, and let the
retrieval test page know about it.

- knowledge-fs: `createBadCase` looks up an unresolved case for the trace
  inside its transaction and throws `QualityBadCaseAlreadyOpenError`; the
  create route answers 409 with `QUALITY_BAD_CASE_ALREADY_OPEN`. Quality trace
  list items expose `openBadCaseId`.
- api: pass `open_bad_case_id` through the console trace response;
  regenerate the contracts.
- web: show the saved-as-bad-case state instead of the flag action when the
  selected trace already has an unresolved case, treat a 409 on flagging the
  same way, and refresh the history so the state follows the server.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 01:40:11 -04:00
Stephen Zhou
69fa1e1018
lint tailwind 2026-09-03 11:00:41 +08:00
Stephen Zhou
914aadcc4b
fix(knowledge-fs): unify retrieval run action label 2026-09-03 10:58:32 +08:00
Stephen Zhou
45bee40955
Merge remote-tracking branch 'origin/main' into deploy/konwledge
# Conflicts:
#	api/controllers/console/datasets/datasets.py
#	api/tests/unit_tests/controllers/console/datasets/test_datasets.py
2026-09-02 21:56:53 +08:00
Stephen Zhou
2ad99bf5cd
fix(knowledge-fs): show installed datasource providers 2026-09-02 21:52:33 +08:00
Jyong
afa771dcac feat(knowledge-fs): keep query images with retrieval test history
Query images attached to a retrieval test vanished as soon as the run's
history record was selected, and were never shown again after a reload,
because nothing persisted them: the gateway dropped `queryImages` when writing
`answer_traces`, the console trace/research responses had no image field, and
the composer cleared its images on every record selection.

- knowledge-fs: add a nullable JSON `query_images` column to `answer_traces`
  (migration 0049 for postgres and tidb), persist and read it in the answer
  trace repository, and expose `queryImages` on quality trace list items.
- api: enrich trace and research task responses with
  `KnowledgeFSQueryImageResponse`, resolving file names and short-lived signed
  preview URLs only for files the acting account still owns; regenerate the
  console and service contracts.
- web: keep composer images scoped to the selected record like the query
  text, remember images per run in this session, fall back to persisted
  previews (with a labelled placeholder when the file is gone), show them in
  the result panel and as a count on history records, and carry them into
  retests.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-02 09:17:36 -04:00
Stephen Zhou
894003c663
test(knowledge-fs): align connected source workflow props 2026-09-02 20:50:40 +08:00
Stephen Zhou
bc6ff536df
fix(knowledge-fs): refresh quality evaluation progress 2026-09-02 20:48:26 +08:00
Stephen Zhou
2f8dd177d3
fix(knowledge-fs): stabilize research result streaming 2026-09-02 20:10:24 +08:00
Joel
6ae40b1f15
fix: preserve Swagger tool authorization after refresh (#41656) 2026-09-02 09:13:51 +00:00
Stephen Zhou
158180d32c
fix(knowledge-fs): remove graph metrics from overview 2026-09-02 17:13:06 +08:00
yyh
e577c007a0
fix(web): stabilize Home and Studio route titles (#41654) 2026-09-02 09:03:58 +00:00
Stephen Zhou
2da03248de
fix(knowledge-fs): allow reopening golden question CSV import 2026-09-02 15:49:30 +08:00
Wu Tianwei
82d86dcf98
feat: app access point permission (#41631)
Co-authored-by: fatelei <fatelei@gmail.com>
2026-09-02 06:34:33 +00:00
Jyong
049a4c514e fix(knowledge-fs): show task object titles 2026-09-02 01:43:16 -04:00
Jyong
222d09f474 feat(knowledge-fs): add profile-driven multimodal retrieval 2026-09-02 01:01:57 -04:00
yyh
88c64a8db9
refactor(web): migrate access point mutations (#41614) 2026-09-02 03:17:03 +00:00
Stephen Zhou
bd3addf6f3
fix(knowledge-fs): reserve document scrollbar gutter (WTA-2317)
Linear: https://linear.app/dify/issue/WTA-2317/uiux-%E6%96%87%E6%A1%A3%E9%98%85%E8%AF%BB%E5%8C%BA%E6%BB%9A%E5%8A%A8%E6%9D%A1%E4%B8%8D%E9%81%AE%E6%8C%A1%E5%86%85%E5%AE%B9
2026-09-02 11:01:07 +08:00
Stephen Zhou
2f9908eda8
fix(knowledge-fs): hug recent activity height (WTA-2315)
Linear: https://linear.app/dify/issue/WTA-2315/uiux-recent-activity-%E5%9C%A8-7-%E6%9D%A1%E4%BB%A5%E5%86%85%E4%BD%BF%E7%94%A8%E5%86%85%E5%AE%B9-hug-%E9%AB%98%E5%BA%A6
2026-09-02 10:55:12 +08:00
FFXN
052bdb4978 Merge remote-tracking branch 'origin/deploy/konwledge' into deploy/konwledge 2026-09-02 10:50:52 +08:00
FFXN
e39a40d817 fix(knowledge-fs): use control space ID when editing sources 2026-09-02 10:49:02 +08:00
Stephen Zhou
cd7e1be7cb
Merge remote-tracking branch 'origin/main' into deploy/konwledge
# Conflicts:
#	api/services/feature_service.py
#	api/tests/unit_tests/controllers/console/workspace/test_members.py
#	api/tests/unit_tests/core/workflow/nodes/agent_v2/test_validators.py
#	api/tests/unit_tests/services/test_system_feature_service_knowledge_fs.py
#	pnpm-lock.yaml
2026-09-02 10:31:10 +08:00
Stephen Zhou
f85b9ddf8b
refactor(knowledge-fs): bridge URL state into Jotai 2026-09-02 10:10:11 +08:00
Stephen Zhou
930de8196a
refactor(knowledge-fs): decompose sources page 2026-09-02 00:31:11 +08:00
Stephen Zhou
d3f59d8458
refactor(knowledge-fs): decompose overview page 2026-09-01 23:21:34 +08:00
Stephen Zhou
8780803f2d
refactor(knowledge-fs): decompose quality page 2026-09-01 22:59:24 +08:00
Stephen Zhou
8665083d51
refactor(knowledge-fs): decompose retrieval test page 2026-09-01 22:31:22 +08:00
Stephen Zhou
094f2712b9
fix(knowledge-fs): scope overview failure alert to onboarding 2026-09-01 20:54:49 +08:00
yyh
6bc7f01261
fix(web): announce agent draft status (#41595) 2026-09-01 11:53:05 +00:00
Stephen Zhou
4dba1bc22e
fix(knowledge-fs): isolate document detail route state 2026-09-01 19:32:24 +08:00
Stephen Zhou
e9180d38e5
refactor(knowledge-fs): remove new rag edit guards 2026-09-01 18:02:18 +08:00
Stephen Zhou
368a7c91aa
fix(knowledge-fs): keep score threshold visible 2026-09-01 17:29:25 +08:00
Stephen Zhou
75a7f4e5ba
refactor(knowledge-fs): reuse dataset chunk image list 2026-09-01 17:22:44 +08:00
Stephen Zhou
3bc51c70d5
fix(knowledge-fs): keep document images compact 2026-09-01 17:07:03 +08:00
Stephen Zhou
6ce859d955
fix(knowledge-fs): center document detail loading state 2026-09-01 16:56:20 +08:00
Stephen Zhou
fa3e52fa9e
refactor(knowledge-fs): reorganize settings ownership 2026-09-01 16:46:05 +08:00
Stephen Zhou
c5d7ab5b48
refactor(knowledge-fs): hydrate document detail bridges synchronously 2026-09-01 14:56:04 +08:00
Stephen Zhou
9e8b0a6b8a
refactor(knowledge-fs): reset document task pagination on close 2026-09-01 14:43:38 +08:00
Stephen Zhou
62e07b1cfd
refactor(knowledge-fs): model document reindex preflight 2026-09-01 14:43:38 +08:00
Stephen Zhou
439dcfe21e
refactor(knowledge-fs): query document multimodal assets 2026-09-01 14:37:22 +08:00
Stephen Zhou
dec1c302fa
refactor(knowledge-fs): separate document task row ownership 2026-09-01 14:34:36 +08:00
Stephen Zhou
163cdce23d
refactor(knowledge-fs): expose document detail field atoms 2026-09-01 14:28:38 +08:00