deerflow2/frontend/src
lailoo 9809af1f26
feat: add citation/reference support to deep research reports (#1143)
* feat: add citation/reference support to deep research reports (#1141)

- Enhance lead agent system prompt with mandatory citation requirements
  after web_search/web_fetch tool usage
- Add citation examples and best practices to GitHub Deep Research skill
- Add citation hints to report template (Executive Summary, Key Analysis)
- Style regular markdown links in frontend for visual distinction
  (color, underline, hover effect)
- Fix TitleMiddleware being registered when title generation is disabled

* fix: address PR review comments

- Revert TitleMiddleware conditional registration (agent.py) to avoid
  sync/async incompatibility with DeerFlowClient
- Fix markdown link rendering: merge classNames instead of overwriting,
  only set target=_blank for external http(s) URLs
- Remove unrelated package.json/pnpm-lock.yaml changes

* fix: use plain markdown links in Sources section for cleaner rendering

Inline citations in report body use [citation:Title](URL) for pill/badge style.
Sources section uses plain [Title](URL) for simple underlined link style.

* fix(frontend): render plain links as underlined text in artifact markdown

Only links with citation: prefix render as Badge pills.
Regular links in Sources section now render as underlined text links.

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-17 09:51:08 +08:00
..
app fix(chat): update navigation method to prevent state loss during thread remount (#1107) 2026-03-12 14:57:17 +08:00
components feat: add citation/reference support to deep research reports (#1143) 2026-03-17 09:51:08 +08:00
core fix(frontend): surface upload API error details (#1113) 2026-03-13 21:55:33 +08:00
hooks feat: implement basic web app 2026-01-15 23:40:21 +08:00
lib chore: 移除所有 Citations 相关逻辑,为后续重构做准备 2026-02-09 16:24:01 +08:00
server/better-auth style: format 2026-01-17 00:13:24 +08:00
styles feat: set golden color for ultra 2026-02-09 00:30:20 +08:00
typings feat: add 'about' page 2026-02-06 15:18:37 +08:00
env.js feat: implement the first section of landing page 2026-01-23 00:15:21 +08:00