deerflow2/frontend/src/components/workspace
Jason 35fb3dd65a
fix(frontend): resolve /mnt/ links in markdown to artifact API URLs (#2243)
* fix(gateway): forward agent_name and is_bootstrap from context to configurable

The frontend sends agent_name and is_bootstrap via the context field
in run requests, but services.py only forwards a hardcoded whitelist
of keys (_CONTEXT_CONFIGURABLE_KEYS) into the agent's configurable
dict.  Since agent_name was missing, custom agents never received
their name — make_lead_agent always fell back to the default lead
agent, skipping SOUL.md, per-agent config and skill filtering.

Similarly, is_bootstrap was dropped, so the bootstrap creation flow
could never activate the setup_agent tool path.

Add both keys to the whitelist so they reach make_lead_agent.

Fixes #2222

* fix(frontend): resolve /mnt/ links in markdown to artifact API URLs

AI agent messages contain links like /mnt/user-data/outputs/file.pdf
which were rendered as-is in the browser, resulting in 404 errors.
Images already got the correct treatment via MessageImage and
resolveArtifactURL, but anchor tags (<a>) were passed through
unchanged.

Add an 'a' component override in MessageContent_ that rewrites
/mnt/-prefixed hrefs to the artifact API endpoint, matching the
existing image handling pattern.

Fixes #2232

---------

Co-authored-by: JasonOA888 <JasonOA888@users.noreply.github.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-04-15 23:12:21 +08:00
..
agents feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
artifacts Fix abnormal preview of HTML files (#1986) 2026-04-09 16:32:01 +08:00
chats fix(frontend): prevent stale 'new' thread ID from triggering 422 history requests (#1960) 2026-04-08 10:03:07 +08:00
citations ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00
messages fix(frontend): resolve /mnt/ links in markdown to artifact API URLs (#2243) 2026-04-15 23:12:21 +08:00
settings feat: support memory import and export (#1521) 2026-03-30 17:25:47 +08:00
agent-welcome.tsx feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
code-editor.tsx fix: fix eslint errors and warnings 2026-01-31 21:46:31 +08:00
command-palette.tsx fix: avoid command palette hydration mismatch on macOS (#1563) 2026-04-05 16:35:33 +08:00
copy-button.tsx feat: implement i18n 2026-01-20 14:06:47 +08:00
export-trigger.tsx feat(web): add conversation export as Markdown and JSON (#1002) 2026-03-23 08:21:54 +08:00
flip-display.tsx feat: re-implement message group 2026-01-18 19:56:07 +08:00
github-icon.tsx feat: implement basic web app 2026-01-15 23:40:21 +08:00
input-box.tsx fix: wrap suggestion chips without overlapping input (#1895) 2026-04-06 16:30:57 +08:00
mode-hover-guide.tsx ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00
overscroll.tsx feat: implement basic web app 2026-01-15 23:40:21 +08:00
recent-chat-list.tsx fix(frontend): preserve agent context in thread history routes (#1771) 2026-04-09 15:11:57 +08:00
streaming-indicator.tsx fix(frontend): UI polish - fix CSS typo, dark mode border, and hardcoded colors (#1942) 2026-04-08 09:07:39 +08:00
thread-title.tsx Enhance chat UI and compatible anthropic thinking messages (#1018) 2026-03-08 20:19:31 +08:00
todo-list.tsx feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
token-usage-indicator.tsx feat(frontend): display token usage per conversation turn (#1229) 2026-03-24 08:59:35 +08:00
tooltip.tsx feat: adjust layout and style of tooltip 2026-01-16 19:51:14 +08:00
welcome.tsx fix(frontend): UI polish - fix CSS typo, dark mode border, and hardcoded colors (#1942) 2026-04-08 09:07:39 +08:00
workspace-container.tsx feat: implement i18n 2026-01-20 14:06:47 +08:00
workspace-header.tsx feat: update workspace header to conditionally render title based on environment variable 2026-02-09 09:20:32 +08:00
workspace-nav-chat-list.tsx feat(agent):Supports custom agent and chat experience with refactoring (#957) 2026-03-03 21:32:01 +08:00
workspace-nav-menu.tsx feat: enhance workspace navigation menu with conditional rendering and mounted state 2026-02-07 11:10:24 +08:00
workspace-sidebar.tsx fix: hide chats when sidebar is not open 2026-01-27 10:41:08 +08:00