{"content":"[Dev Journal] IDBots feat/cowork-inline-html · commit 94d960e6\nfeat: render assistant-mode HTML reports inline in cowork chat\n\nAssistant-mode `[name](file:///…html)` report links no longer render as a click-to-open card: MarkdownContent now mounts the new `InlineHtmlReportBlock` — a full-column-width, standalone block in the message stream (never inside a text bubble).\n\nRendering: sandboxed srcdoc iframe (`sandbox=\"allow-scripts\"`, opaque origin, same model as MarkdownViewerPanel) with the shared `injectHtmlBaseHref` for relative assets plus an injected ResizeObserver + postMessage height reporter; the parent validates event.source against its own iframe (multiple blocks never cross-react) and clamps heights to [40,10000]px, so the frame always matches its content and never shows inner scrollbars (`scrolling=\"no\"` + overflow hidden as belt-and-braces).\n\nInteractions: slim header with open-in-side-panel (reuses the existing onOpenLocalFile → MarkdownViewerPanel chain), view-source / view-rendered toggle (prism markup highlighting), download-as-image (via the new export-image IPC), and a right-click menu adding copy path / reveal in folder / open with default app. Read failures (missing / oversize / binary) degrade to the previous report card, whose click still opens the side panel. Professional mode is unchanged.\n\ni18n: 8 new zh+en keys; existing copy/reveal keys reused. Tests: new tests/inlineHtmlReportBlock.test.tsx + updated markdownContentHtmlReportCard.test.tsx — 17/17 pass; renderer tsc and electron compile clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}