Commit 959e30b
committed
feat: refactor ACP, add prompt attachments, auto-approve permissions and optimize streaming
- ACP Attachments: Added support for sending prompt attachments (images, audio, and text files).
- Frontend: Integrated drag-and-drop, paste-to-upload, file selector, and microphone audio recording (using MediaRecorder) in AcpInput.
- Backend: Added automatic file path detection in prompt texts to load local workspace files. Created a secure endpoint `/api/local-image` to serve workspace images.
- Automated Permissions: Removed manual agent permission prompts. All permission requests are now automatically approved on the backend. Removed permission UI components and handlers.
- Stream Optimization: Implemented a 100ms message flush buffer on the frontend to throttle state updates during rapid token streaming, preventing UI lagging.
- Proxy and Cleanup: Configured Vite API proxying to direct `/api` routes to the backend. Cleaned up unused helper functions in Cargo config, utilities, history, and app state.1 parent 31a8360 commit 959e30b
32 files changed
Lines changed: 1663 additions & 1438 deletions
File tree
- anycode-backend
- src
- handlers
- anycode
- components
- agent
- layout
- features/agents
- hooks
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
0 commit comments