mirror of
https://github.com/langgenius/dify.git
synced 2026-09-07 18:36:02 +08:00
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 |
||
|---|---|---|
| .. | ||
| clients | ||
| commands | ||
| configs | ||
| controllers | ||
| core | ||
| dev | ||
| enterprise/telemetry | ||
| enums | ||
| events | ||
| extensions | ||
| factories | ||
| fields | ||
| libs | ||
| machinery | ||
| migrations | ||
| models | ||
| oss | ||
| providers/trace/unified_trace | ||
| repositories | ||
| services | ||
| tasks | ||
| tools | ||
| utils | ||
| __init__.py | ||
| .gitignore | ||
| .ruff.toml | ||
| config_override.py | ||
| conftest.py | ||
| pyrefly.toml | ||
| test_app_factory.py | ||
| test_config_overrides.py | ||
| test_constants.py | ||
| test_makefile_backend_tests.py | ||
| test_pytest_dify.py | ||
| test_sqlite_fixtures.py | ||