Skip to content

Add file attachments to chat - #160

Merged
yikkuro merged 4 commits into
mainfrom
sunt-microsoft-attach-files-in-chat
Aug 4, 2026
Merged

Add file attachments to chat#160
yikkuro merged 4 commits into
mainfrom
sunt-microsoft-attach-files-in-chat

Conversation

@yikkuro

@yikkuro yikkuro commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a native multi-file picker with main-process MIME detection and base64 encoding
  • thread optional attachments through preload, chat IPC, the renderer store, and OpenClaw chat.send
  • add removable composer previews, image thumbnails, attachment-only sends, and transcript attachment rendering
  • localize per-file, aggregate, picker, and read errors in English and Chinese

Limits

  • 20 MiB per file
  • 50 MiB aggregate per message, including files already pending
  • invalid or oversized files are rejected individually where possible

Validation

  • desktop: npx vitest run src/chat-attachments.test.ts src/gateway-client.test.ts (25 tests)
  • renderer: npx vitest run src/stores/chat.test.ts (67 tests)
  • desktop: npx tsc --noEmit
  • renderer: npx vue-tsc --noEmit
  • renderer: npm run build

Closes #57

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1fe75171-fea2-45ef-9401-bf8a4ea0f2ba
Copilot AI added 3 commits August 4, 2026 12:23
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1fe75171-fea2-45ef-9401-bf8a4ea0f2ba
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1fe75171-fea2-45ef-9401-bf8a4ea0f2ba
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1fe75171-fea2-45ef-9401-bf8a4ea0f2ba
@yikkuro
yikkuro merged commit 378a962 into main Aug 4, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat input '+' (Add attachment) button does nothing — attachment feature unimplemented

2 participants