Add multimodal support for files and PPT generation
Summary
Add multimodal and presentation-generation support so the agent can reliably work with images/files and create PPT slides when users ask.
Problem
Users are trying to ask the agent to create PPT slides or work from shared visual/file context, but the agent struggles and returns errors such as being unable to code in the sandbox or complete the presentation task. This indicates the agent experience lacks reliable multimodal input handling and a supported presentation-generation workflow.
This hurts workflows where users expect the assistant to use screenshots, images, documents, or instructions to produce slide decks and other rich outputs.
Constraints:
- Multimodal input should preserve user privacy and avoid leaking uploaded file contents unnecessarily.
- PPT generation needs a supported tool/runtime path rather than ad hoc agent guessing.
- Presentation output should be verifiable and downloadable/openable by the user.
- The app should provide clear errors when a requested file type or generation path is unsupported.
Solution (optional)
Define supported multimodal inputs and wire them into the agent/tool runtime. Add a first-class presentation workflow for generating PPT/PPTX slides from user instructions and uploaded context, including sandbox/runtime support, artifact persistence, and user-visible progress/errors.
Acceptance criteria
- [ ] Multimodal input supported — The agent can receive and reason over supported uploaded images/files in the relevant chat or task flow.
- [ ] PPT workflow available — The agent can create a PPT/PPTX slide deck from user instructions through a supported tool/runtime path.
- [ ] Artifacts delivered — Generated presentations are saved and surfaced to the user in a usable format.
- [ ] Sandbox path fixed — Presentation generation no longer fails with generic sandbox/code execution errors for supported requests.
- [ ] Clear unsupported states — Unsupported file types, missing tools, or failed generation steps show actionable errors.
- [ ] Privacy safe — Uploaded file contents and generated artifacts are handled within the expected user/workspace boundaries.
- [ ] Regression safety — Unit, integration, or E2E coverage verifies multimodal attachment handling and a basic PPT generation flow where testable.
- [ ] Diff coverage ≥ 80% — the implementing PR meets the changed-lines coverage gate (Vitest + cargo-llvm-cov, enforced by
.github/workflows/coverage.yml).
Related
- User feedback screenshot from May 12, 2026 requesting multimodal support and reliable PPT slide creation.
Sub-tasks
This issue has been broken down into the following sub-tasks:
- [ ] #2776 — Define artifact storage types, config, and persistence layer
- [ ] #2777 — Extend multimodal input to accept document and file attachments beyond images
- [ ] #2778 — Add PPT generation tool using python-pptx in the Python runtime
- [ ] #2779 — Surface artifact downloads and generation progress in the React UI
- [ ] #2780 — Wire PPT generation and file attachments into agent definitions and error handling
Generated by break-down-issue.sh
Adding a new sub-task under this epic: #3024 — Files in this chat — persistent per-chat artifact registry.
Surfaced during the live dev:app test of #2779 (PR #3017): the inline ArtifactCard above the composer is ephemeral — once the user scrolls or sends a new turn, there's no persistent place to find generated files. #3024 layers a header chip + popover panel on top of the existing artifact pipeline so files stay accessible for the life of the chat.
Sub-task slate now:
- #2776 ✅ merged (artifact storage)
- #2777 — PR #2954 open
- #2778 — PR #3016 open
- #2779 — PR #3017 open
- #2780 — pending
- #3024 — new (extends #2779)