Skip to content

Commit 959e30b

Browse files
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

anycode-backend/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

anycode-backend/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ async-trait = "0.1"
5353
tokio-util = { version = "0.7.13", features = ["compat"] }
5454
unicode-segmentation = "1.12.0"
5555
git2 = "0.20"
56+
base64 = "0.22"

0 commit comments

Comments
 (0)