feat(chat): attachments, file viewers, and EA-style catchup#895
Merged
Conversation
Chat attachments end-to-end: - Composer accepts uploads; conversation view renders them with the new file-viewer registry. Office formats (docx/pptx via mammoth + a renamed office-viewer) and CSV (papaparse) join the existing image/PDF set; pptx-preview is dropped in favor of the unified viewer. - New agent file-tools + file-resolver let the agent read/inspect attachments inline. Gateway download path is split into file-download.server.ts; signed-URL flow (file-signed-url.server.ts + the two new fs.signed routes) gives the agent and viewers short-lived access without leaking PATs. - Storage server, model.server, and the conversation API are extended to carry attachment metadata through to the model. EA-style catchup: - Voice-mode summariser prompt rewritten from butler-inventory to chief-of-staff: leads with what's blocking or time-sensitive, groups by the user's next decision, makes one soft recommendation, drops "sir." - Quick Chat is now scoped per local-day (mirrors the WhatsApp daily conversation pattern in message-processor.ts), and every /api/v1/inbox/summarise appends the spoken summary to that day's Quick Chat as an Agent turn so the user can scroll back. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
office-viewer) and CSV (papaparse) join the image/PDF set;pptx-previewis dropped.file-tools+file-resolver.server.tslet the agent read attachments. Gateway download splits intofile-download.server.ts; signed-URL flow (file-signed-url.server.ts+ the two newfs.signedroutes) gives agent and viewers short-lived access without leaking PATs.message-processor.ts:62), and every/api/v1/inbox/summariseappends the spoken summary to that day's Quick Chat as an Agent turn so it's scrollable.Test plan
🤖 Generated with Claude Code