ruitanglin
50ced32722
fix(citations): hide citations block in reasoning/thinking content
...
The reasoning content in message-group.tsx was not being processed
through parseCitations, causing raw <citations> blocks to be visible.
Now reasoning content is parsed to remove citations blocks.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-06 16:12:43 +08:00
ruitanglin
1e2675beb3
feat(citations): add shared citation components and optimize code
...
## New Features
- Add `CitationLink` shared component for rendering citation hover cards
- Add `CitationsLoadingIndicator` component for showing loading state
- Add `removeAllCitations` utility to strip all citations from content
- Add backend support for removing citations when downloading markdown files
- Add i18n support for citation loading messages (en-US, zh-CN)
## Code Optimizations
- Remove duplicate `ExternalLinkBadge` component, reuse `CitationLink` instead
- Consolidate `remarkPlugins` config in `streamdownPlugins` to avoid duplication
- Remove unused imports: `Citation`, `buildCitationMap`, `extractDomainFromUrl`, etc.
- Remove unused `messages` parameter from `ToolCall` component
- Remove unused `isWriteFile` parameter from `ArtifactFilePreview` component
- Remove unused `useI18n` hook from `MessageContent` component
## Bug Fixes
- Fix `remarkGfm` plugin configuration that prevented table rendering
- Fix React Hooks rule violation: move `useMemo` to component top level
- Replace `||` with `??` for nullish coalescing in clipboard data
## Code Cleanup
- Remove debug console.log/info statements from:
- `threads/hooks.ts`
- `notification/hooks.ts`
- `memory-settings-page.tsx`
- Fix import order in `message-group.tsx`
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-02-04 11:56:10 +08:00
Henry Li
0091da1aee
feat: adjust tooltips
2026-02-02 09:32:18 +08:00
Henry Li
076c1f0985
feat: wrap path and command in Tooltip for enhanced user experience
2026-02-02 09:23:36 +08:00
Henry Li
16a9626d54
feat: add placeholder for image
2026-01-29 15:01:18 +08:00
Henry Li
eff241f9f2
feat: enable images in content
2026-01-29 12:51:04 +08:00
Henry Li
6b030d7589
feat: add tooltips
2026-01-29 09:23:06 +08:00
Henry Li
c700bd6841
feat: enhance search_image
2026-01-29 09:19:43 +08:00
Henry Li
8359d842b5
feat: support image_search
2026-01-29 08:59:55 +08:00
Henry Li
eca2b139cc
fix: bugfix
2026-01-27 09:50:42 +08:00
Henry Li
5a27a3beeb
feat: expand by default in demo mode
2026-01-24 22:03:38 +08:00
Henry Li
1e4e51a80c
feat: add Todos
2026-01-22 00:26:11 +08:00
Henry Li
220fc1c489
feat: auto open artifact
2026-01-21 09:45:55 +08:00
Henry Li
32a45eb043
feat: implement i18n
2026-01-20 14:06:47 +08:00
Henry Li
b8f9678d07
feat: use code block to display bash commands
2026-01-19 21:59:23 +08:00
Henry Li
dc04042b53
feat: support clarification tool
2026-01-18 20:17:32 +08:00
Henry Li
69b225082b
feat: re-implement message group
2026-01-18 19:56:07 +08:00
Henry Li
dd80348b76
feat: support SSE write_file(0
2026-01-18 17:13:15 +08:00
Henry Li
a64b0d226b
feat: redesign step counter
2026-01-17 17:45:13 +08:00
Henry Li
4613d6e16e
refactor: rename
2026-01-17 00:05:19 +08:00