Willem Jiang
8c6dd9e264
fix(uploads): persist thread uploads canonically and fail fast on upload errors ( #943 )
...
* fix(uploads): persist thread uploads canonically and fail fast on upload errors
- write uploads to thread-scoped storage first to guarantee agent visibility
- sync files to sandbox virtual path only for non-local sandboxes
- fix markdown conversion flow to operate on canonical saved files and sync converted files when needed
- prevent silent attachment upload failures in frontend submit flow (show error + abort submit)
- add regression tests for local vs non-local upload behavior
- update upload docs with thread-first persistence and troubleshooting notes
* Update frontend/src/core/threads/hooks.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix(uploads): reject "." and ".." filenames in upload sanitization (#944 )
* Initial plan
* fix(uploads): reject '.' and '..' filenames in upload sanitization
Co-authored-by: WillemJiang <219644+WillemJiang@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: WillemJiang <219644+WillemJiang@users.noreply.github.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-03-01 15:35:30 +08:00
Henry Li
010aba1e28
feat: add realtime subagent status report
2026-02-08 22:43:51 +08:00
Henry Li
3e2883e2a3
feat: support subtasks
2026-02-07 16:14:48 +08:00
LofiSu
f0075e0d64
Merge upstream/experimental into feat/citations
...
Resolved conflicts:
- backend/src/gateway/routers/artifacts.py: Keep citations block removal for markdown downloads
- frontend/src/components/workspace/messages/message-list-item.tsx: Keep improved citation handling with rehypePlugins, humanMessagePlugins, and CitationsLoadingIndicator
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-07 00:53:16 +08:00
hetao
9bf3a12c30
feat: send custom event
2026-02-06 17:48:15 +08:00
LofiSu
644229f968
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
5295f5b5b9
feat: add notification
2026-01-31 11:08:27 +08:00
Henry Li
4411af68f5
fix: fix renaming
2026-01-29 15:31:56 +08:00
LofiSu
849cc4d771
feat: improve file upload message handling and UI
...
Backend:
- Handle both string and list format for message content in uploads middleware
- Extract text content from structured message blocks
- Add logging for debugging file upload flow
Frontend:
- Separate file display from message bubble for human messages
- Show uploaded files outside the message bubble for cleaner layout
- Improve file card border styling with subtle border color
- Add debug logging for message submission with files
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-29 12:51:21 +08:00
LofiSu
ad85b72064
feat: add inline citations and thread management features
...
Citations:
- Add citations parsing utilities for extracting source references from AI responses
- Render inline citations as hover card badges in message content
- Display citation cards with title, URL, and description on hover
- Add citation badge rendering in artifact markdown preview
- Update prompt to guide AI to output citations in correct format
Thread Management:
- Add rename functionality for chat threads with dialog UI
- Add share functionality to copy thread link to clipboard
- Share links use Vercel URL for production accessibility
- Add useRenameThread hook for thread title updates
i18n:
- Add translations for rename, share, cancel, save, and linkCopied
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-28 19:15:11 +08:00
Henry Li
c82f705541
fix: fix artifacts in demo mode
2026-01-25 11:42:25 +08:00
hetao
f6a20a69e3
feat: implement file upload feature
2026-01-23 18:47:39 +08:00
Henry Li
8f0bd828d5
feat: add recursion_limit
2026-01-18 13:16:27 +08:00
Henry Li
03f0e3f0c7
refactor: move biz logic to core
2026-01-16 19:51:39 +08:00
Henry Li
faf80bb429
feat: rename 'model' to 'model_name'
2026-01-16 14:03:34 +08:00