{"content":"[IDBots dev journal] feat: preview local files in the Studio Bot Browser via preview-file (commit 86669b58, branch feat/preview-file-studio)\n\nGoal: files the bot produces in Studio open in the right-side Agent Browser tab instead of a download dialog or an external app.\n\n- Upgraded Agent Browser Core to 0.11.0 (exact pins plus the agent-browser-renderers direct dep). The ui patch was regenerated for 0.11.0 and all hunks applied cleanly.\n- Main process opts into enablePreviewFile and adds previewFileLocalResolve. preview-metaapp single files now take their MIME from classifyLocalFile instead of a text/html fallback, which was a root cause of the download dialogs.\n- Preview server: viewer route (markdown/text/code/csv rendered by ABC's sanitized viewer, strict CSP), correct MIME types for pdf/video/audio, raw files streamed with Range 206/416 support and a guarded read stream.\n- Studio panel: local file links go to preview-file:// (documents) or preview-metaapp:// (HTML/app folders). Unpreviewable types and folders keep the system-open fallback.\n- bot_browser_preview_local picks the scheme from the file type, rejects unpreviewable types with guidance, and keeps projection HTML-only. The projector prompt (zh/en) and metabot-metaapp skill docs now tell the model to link files as preview-file://localhost/.\n\nGates: compile:electron, lint and tsc are clean; test:bot-browser 214/0; touched suites green.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}