MVP integration: file viewer and durable generation jobs #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "integration/mvp-ui-generation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
9b3ad0c(existing PR #17); its branch and PR were not modified or merged. This PR intentionally exposes the combined integration for review. PR #17 can be reviewed/landed independently first.Validation
Coordination and limits
Requires matching RAG generation-job API and running generation worker; do not deploy new job-capable RAG/UI without that worker. Full browser reload does not automatically reattach to an active job.
GET /api/documents/{id}/file streams the upload from RAG for the file viewer, forwarding Range and cache headers so recordings can seek. Every file gets nosniff and private caching; HTML, SVG and XML also get a sandboxing CSP, so an uploaded page cannot run scripts as whoever opens it. The workspace may come as ?workspace=, since a new tab or a player's src cannot send headers. PUT replaces an uploaded Markdown or text file, which RAG then indexes again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>