Markdown-syntax and raw-HTML file: destinations are converted to an absolute local path before rendering or sanitization, then served by the same session media route as relative images. POSIX, Windows drive, localhost, UNC and percent-encoded URLs are covered; the file: scheme is never handed to the renderer or DOMPurify. Also prepares v0.31.1.
Markdown syntax now passes data:image/* through the image vocabulary (the host allowlist already accepts it); every other data payload stays inert. The desktop shell's sandboxed HTML preview is self-contained: the trusted top frame fetches the document and its same-origin assets, inlines them, and frames a sandboxed blob instead of a dsh-app route the shell rejects from an opaque subframe. The sandbox never gains allow-same-origin; browser and explicitly-unsandboxed paths are unchanged.
A side thread opens on its own question, so the inherited exchange belongs
behind a boundary, not on the first screen: rendered open it read as if the
side thread had asked the parent's question. The fork block is now a native
disclosure, closed on first render and controlled through its toggle event
(React would otherwise reset the DOM's own `open` on the next poll render).
Collapsed, the block is exactly the opening divider: the summary carries the
`sideChatForkDivider` copy and the chevron, never any inherited text.
Expanded, the body keeps the established order — the question in the user
bubble, the answer as assistant prose through the same markdown renderer,
both verbatim — then the closing `sideChatForkDividerEnd` line. With no
answer the body is the question and the closing line only. The block stays
chrome: it is not a transcript row, the row count does not move when it opens
or closes, and it adds no button or link beyond the summary.
The upstream draft owner lives and dies with the binding, so leaving a thread
threw its words and screenshots away. A thread now owns its draft: a bounded
LRU cache (8 threads) keeps the text and the images, restores them when the
binding comes back, reuses the preview URLs instead of minting new ones, and
revokes a preview when its draft is evicted, sent, or has its image removed.
A draft whose prompt is already under way is never restored, so a send cannot
be replayed by switching away and back.
The side chat inherited none of the main pane's reading behaviour and could
not say where it forked off. This change brings it in line and keeps the
upstream v0.30.1 release intact.
Work details follow the main conversation's setting (transcriptView +
collapseTiming): settled turns fold behind the host's own "Completed in Ns"
line, running turns stay open, verbose never folds.
The transcript now names its origin: the events route reports the fork point,
and the block above the first row renders the inherited question as an
ordinary user bubble and the inherited answer as ordinary assistant prose,
bracketed by two divider lines and carried verbatim.
Reading the thread got cheaper and calmer: only the tail is mounted with a
step-wise reveal, scroll-follow answers an explicit intent, and the composer
guards IME composition, key repeat and the submit-gesture choice while send
and stop stay independent controls.
Everything visual rides the host's own surface: content-size and code font
axes, the host's markdown surface for reasoning, host cards for search/web/
terminal/diff results, compaction and retry rows, and host-defined design
tokens (six borders and eleven colours had referenced tokens the host never
defines, so they never painted).
Thread creation became reliable: a stored parent is resumed through the
session controller, the create budget is a deployment setting instead of a
hard-coded 15 seconds, and the child attaches at the parent's workspace cwd
while its tools keep running in the reader's current directory.
Upstream v0.30.1 brings side-chat images, clickable quote chips, editor draft
backup, the settings icon slot and the 0.2.2 model seam; its per-thread draft
owner and image projection replace the hand-written paths this branch used to
carry, so only one implementation of each survives.