ruitanglin
|
c67f1af889
|
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
|
7274f9a6ae
|
feat: adjust tooltips
|
2026-02-02 09:32:18 +08:00 |
|
Henry Li
|
cb494fe4df
|
feat: wrap path and command in Tooltip for enhanced user experience
|
2026-02-02 09:23:36 +08:00 |
|
Henry Li
|
4fc54a7408
|
feat: add placeholder for image
|
2026-01-29 15:01:18 +08:00 |
|
Henry Li
|
f809b67c47
|
feat: enable images in content
|
2026-01-29 12:51:04 +08:00 |
|
Henry Li
|
e4d373541f
|
feat: add tooltips
|
2026-01-29 09:23:06 +08:00 |
|
Henry Li
|
f7ec116c26
|
feat: enhance search_image
|
2026-01-29 09:19:43 +08:00 |
|
Henry Li
|
d787b1ca54
|
feat: support image_search
|
2026-01-29 08:59:55 +08:00 |
|
Henry Li
|
0bcbaebb7e
|
fix: bugfix
|
2026-01-27 09:50:42 +08:00 |
|
Henry Li
|
56b21e00bf
|
feat: expand by default in demo mode
|
2026-01-24 22:03:38 +08:00 |
|
Henry Li
|
44850d9a61
|
feat: add Todos
|
2026-01-22 00:26:11 +08:00 |
|
Henry Li
|
4467b1860f
|
feat: auto open artifact
|
2026-01-21 09:45:55 +08:00 |
|
Henry Li
|
ac9ef30780
|
feat: implement i18n
|
2026-01-20 14:06:47 +08:00 |
|
Henry Li
|
5d6162d006
|
feat: use code block to display bash commands
|
2026-01-19 21:59:23 +08:00 |
|
Henry Li
|
5624b0cd38
|
feat: support clarification tool
|
2026-01-18 20:17:32 +08:00 |
|
Henry Li
|
aa44566fef
|
feat: re-implement message group
|
2026-01-18 19:56:07 +08:00 |
|
Henry Li
|
ec1964c829
|
feat: support SSE write_file(0
|
2026-01-18 17:13:15 +08:00 |
|
Henry Li
|
62921ec96a
|
feat: redesign step counter
|
2026-01-17 17:45:13 +08:00 |
|
Henry Li
|
c216093360
|
refactor: rename
|
2026-01-17 00:05:19 +08:00 |
|