A container workspace that discovers several repositories rendered one chip per root above the Changes section; with location labels the row does not scale, and same-named checkouts were indistinguishable. The row is now a compact labeled select: the current root stays on screen, the full list is one click away, and options carry disambiguation labels (deeper roots show their relative parent) shared with the More -> Repository submenu. The picker shows the resolved status root — a server fallback renders as a disabled stand-in with its own short label instead of silently selecting the first option. Single-repo workspaces render no row; switching still goes through chooseRepo.
182 KiB
Changelog
Full release history of dsh-better-sidebar (see the README for the latest release; also mirrored on GitHub Releases).
📝 The Chinese CHANGELOG is the authoritative, item-by-item record; this file carries the English summaries and has historically lagged behind it. Where the two disagree, the Chinese one is current.
v0.32.1
- 🧩 DSH 0.2.2-rc.2 support: the plugin baseline moves to the newest 0.2.2 RC and follows that host's client contract and team service.
- Menus and the open-with submenu are now positioned by the host: DSH 0.2.2-rc.2 uses CSS-anchored menus and portals submenus into their own layer; the plugin switches to the new
anchorPointAPI and drops its own submenu flip workaround, so it no longer fights the host's placement. - Team task-board writes move to the built-in Agent Team service: the experimental package became
@deepseek-ai/dsh-agent-teamin the base composition, enabled per session; the plugin checksisEnabledand keeps reading theagentTeamprojection plus the subagent roster. - Dependency and installer sync: all 14 DSH peer floors move to
^0.2.2-rc.2; dev pins follow, including the newly transitivedsh-errorpeer; Cordis 4.1.0 / include 1.1.0. - Support line: DSH 0.2.2-rc.2+ uses this release; hosts still on 0.2.2-rc.1 should pin v0.32.0.
- 🖼 The plugin page now carries illustrated details: DSH's Plugins page shows an overview of the right sidebar and a per-conversation isolation diagram, with numbered notes for files, editor, changes, tasks, and side chat; each
locale/*.jsondeclaresmeta.detailpointing atdetail/DETAIL*.md, and the SVGs ship in the npm package. - 🧪 Tests: open-with/submenu specs now locate the portaled child card by its own marker; team-route specs cover the three
isEnabledbranches; baseline/peer guards updated;tests/plugin-detail.spec.tsand the tarball detail-asset assertions are new; the real 0.2.2-rc.2 + Chromium mount smoke is recorded in the adaptation note.
- Menus and the open-with submenu are now positioned by the host: DSH 0.2.2-rc.2 uses CSS-anchored menus and portals submenus into their own layer; the plugin switches to the new
v0.32.0
-
🧭 The start page is now plugin-owned, with a responsive two-column grid, a configurable row budget, and a More card for overflow. Expanding the right sidebar no longer shows the host's single-column card page. Wide panes (>= 520px) put two cards on a row and narrow panes one; 6 rows by default (configurable to any value >= 1 in settings or in the Reorder dialog), and entries beyond the budget move into a More card whose rows all carry an icon plus a title and open the entry or the Reorder dialog. The grid is vertically centered by default and can be pinned to the top; settings gain a default-on "Take over the start page" switch that restores the host's page when off. Picking a card replaces the guide tab with the chosen page, exactly like the host did.
- 🧪 Tests:
tests/guide-layout.spec.ts(ordering / visibility / columns and capacity / More occupancy / minimum capacity) andtests/native-guide.spec.tsx(cards, More, the terminal shell menu, catalog subscription, chain registration and release). - Card subtitles stay on one line and end in an ellipsis when the card is narrower than the copy, so a long description no longer grows the card to two lines; More-menu glyphs now sit in a fixed 14px box and center vertically instead of riding 2px above the label.
- 🧪 Tests:
-
🗂 The settings "Start page" inventory now covers every entry registered with the official sidebar. Plugin tabs, the host terminal, and third-party tabs are listed by
providerId::entryId, visible by default; Better Sidebar's own tabs use the sametabsEnabledfeature switch as their sidebar-content card (turning it off disables the tab and removes its start-page card, while the inventory row stays so it can be turned back on); host/third-party entries only have the start-page visibility switch, which never unregisters a tab type or affects shortcuts, resource opens, or already-open tabs. Move up/down and reset order are supported and persisted.- 🧪 Tests:
tests/side-card-section.spec.tsx(native inventory, default-on, order and visibility) andtests/prefs.spec.ts(rows / order / visibility validation).
- 🧪 Tests:
-
🖥 The terminal card keeps its native shell menu. The start page's terminal card has a "..." trigger whose menu reads the shell list through the host's
webTerminals.launchShells, remembers the choice through the host, and opens the terminal with that shell; without those host capabilities the card degrades to a plain entry. Fixed a lost receiver inlaunchShells/selectShellthat surfaced as "Shell failed to load: Cannot read properties of undefined (reading 'remote')", with a regression test. Other third-party custom start-page card components cannot be reused inside a chain takeover and render as generic cards (seedocs/host-contracts.md§9 for why). -
🧩 The More card keeps the host's browse/create-plugin actions. It is now always present (not only on overflow), lists overflow entries with icons plus titles, and restores the host's "Browse more plugins" and "Create your plugin" rows (through
pluginNavigation.openList()anduiWorkspace.startSession(..., { agentPreset: 'cordis', whenDraftExists: 'append' })); a missing service hides the corresponding row. -
🎛 One unified start-page switch. In the reorder dialog and the start-page inventory, Better Sidebar's own tabs now use the same feature switch as their sidebar-content card (
tabsEnabled): turning it off disables the tab and removes its start-page card, while the inventory row stays so it can be turned back on; host/third-party tabs keep the "show on the start page" switch. Also fixed a switch that could not be turned back on: the async controlled write was being reset by the native checkbox toggle first, so the label/input click now drives the next value explicitly from the prop. -
🧪 The mount smoke lane now asserts the real host: the plugin-owned start page (
data-dsh-guide-grid), a column count that follows the pane width, and the terminal shell menu; all existing guide selectors and entry assertions stay unchanged. -
📇 The plugin description shown in DSH now points to the sidebar settings entry: Settings → Side card at the bottom-left. package.json, dsh.plugin.json and locale/*.json are in sync, and the existing 36×36 gradient SVG icon remains wired through package.json#icon.
-
⚡ Diffs with a very long single line no longer freeze the UI. The shared highlighter's
scanLineranexec(line.slice(i))for every character, scanning ahead to the next whitespace — quadratic on a minified JSON/JS line (a 618 KB line measured 1.9 s; 2 MB would be ~20 s), so opening such a diff blocked the main thread behind the "Loading…" placeholder. It now does a single-character whitespace test and scans each line once (2.6 MB measured 57 ms). Rows longer than 20K chars render a bounded plain-text preview (2K folded / 20K expanded) instead of a multi-MB text node andtitle. Normal lines are unchanged; the full content remains available in the content tab or source file.- 🧪
tests/changes-ops.spec.ts(a 1 MB minified line scans linearly and tokens cover the whole line; long lines still advance block-comment state) andtests/diff-fold-expand.spec.tsx(over-budget rows are bounded folded and expanded; a 500-char row still renders in full).
- 🧪
v0.31.1
- 🔗
file://image destinations in Markdown now render. Thefile:scheme is never handed to the renderer or DOMPurify (the former rejects it and the latter drops the src); it is converted to an absolute local path and served by the same session media route as a relative image. POSIX paths, Windows drive URLs (file:///C:/..., percent-encoding included),localhostand UNC (file://server/share/...) are covered; raw HTML<img src="file:///...">is mapped before sanitization too. This is the same idea as VSCode's Markdown-preview webview resource mapping.- 🧪
tests/markdown-images.spec.ts,tests/markdown-html-render.spec.tsx, and thefile://image assertion intest:mount.
- 🧪
v0.31.0
-
🖼 Markdown-syntax
data:imageimages now render. The preview's image vocabulary only admitted local paths, so everydata:destination fell back to alt text;data:image/*now passes straight to the host renderer (whose own allowlist already acceptsdata:), whiledata:text/htmland friends stay rejected. The page-base fix for relative/absolute local images in the desktop shell (#1043) ships in this release too, so 0.30.1 users no longer see only italic alt text.- 🧪
tests/markdown-images.spec.ts,tests/markdown-html-render.spec.tsx,tests/html-preview-inline.spec.ts.
- 🧪
-
🪟 A sandboxed HTML preview in the desktop shell no longer renders blank (403). The shell injects its forwarding marker only into subframes whose origin is
dsh-app://app; a sandboxed iframe is an opaque origin, so its main navigation is rejected before reaching the plugin. The trusted top frame now fetches the HTML and its same-origin static assets and frames a self-containedblob:document; relative CSS/JS/images/fonts work, the iframe still has noallow-same-origin, and the browser / explicitly-unsandboxed paths are unchanged. Nested iframes, Workers and relative requests made by previewed scripts at runtime remain subject to the shell's restriction.- 🧪
tests/html-preview-frame.spec.tsx,tests/html-preview-inline.spec.ts,tests/sandbox-views.spec.tsx, and the local-image assertion intest:mount.
- 🧪
-
🐞 The euro sign in a GBK file is no longer written as the single byte
0x80that current ICU rejects: it uses the canonical two-byte0xA2E3spelling, so saving and reopening no longer produces mojibake on Node 24.21 / ICU 78; a literal encoding/decoding test pins it. -
🧵 The fork point is a native disclosure, collapsed by default: one "Before the fork" divider line until the reader expands it.
data-sidechat-fork-pointis a controlled<details>(closed on first render), its<summary>IS the opening divider (sideChatForkDividercopy plus the expand chevron, no inherited text at all), and the body still reads question → answer → closing divider; with no answer it is the question and the closing divider only. Collapsing or expanding changes no transcript row, and the block holds nobutton/abeyond the summary.- 🧪
tests/sidechat-fork-point.spec.tsx(closed by default above the first row, a summary carrying only the divider copy and the chevron, the expanded order, no assistant block without an answer, an unchanged row count, and no button/link inside).
- 🧪
-
📝 A draft belongs to its thread, not to one binding: leaving a conversation and coming back now keeps the half-written question and its screenshots. The upstream
useSidechatDraft(childId)dropped the text and revoked every preview on unmount, so a reader who clicked another conversation came back to an empty composer. Unmounting now saves the draft under itschildIdin a module-level cache, and re-mounting the same thread restores it verbatim (the sameFile, the same preview URL, nothing re-minted). The cache holds at most 8 threads, least recently saved evicted first, and every preview of an evicted draft isURL.revokeObjectURL-ed; an unbound tab (childId === undefined) is not saved at all;accept()drops the thread's saved copy so a sent message can never resurrect, and a draft whose prompt has not landed yet is not saved when the binding moves (a resurrected draft could be sent twice);remove(id)still revokes exactly one preview and the saved copy never keeps a revoked URL.- 🧪
tests/sidechat-draft-persistence.spec.tsx(a round trip restores the same id /File/ preview, a re-mount mints no second URL, two threads stay apart, an unbound tab persists nothing, the LRU bound evicts and revokes, a remount afteraccept()starts empty, andremove(id)revokes exactly one preview).
- 🧪
-
🧭 A side conversation now attaches at the parent's workspace path while its tools keep running in the reader's current directory. The host's workspace attach requires the child session's header cwd to equal the workspace path (
packages/workspace/workspace/src/entity.ts), andsidechat.startfed oneparentCwd(fromworkingDirectory.get(), the live working directory) into BOTHmeta.cwdand the seededworking-directory/changestamp — so a reader who hadcd-ed outside the workspace in the parent conversation got a child whose header cwd was that outside path, and the fork died withsession/workspace-attach-failed … its cwd resolves to '…'. The two questions now get their own answers:meta.cwdis the parent session's header cwd (the workspace path, for attach), while the boundaryworking-directory/changestamp in the seed still carries the live cwd (where the tools actually run). A parent with no header cwd falls back to the live cwd for both, a composition without theworkingDirectoryservice uses the header cwd for both, and with neither no cwd is invented.directorySeedis still produced under exactly the same condition.- 🧪
tests/sidechat-start-workspace-cwd.spec.ts(attach from the header cwd and never the live cwd, the stamp still the live cwd, the no-header fallback, identical cwds when the reader never moved, the no-service case, and no invented cwd) andtests/sidechat-routes.spec.ts(two flipped assertions read the header cwd).
- 🧪
-
⏱ Thread creation no longer has a hard-coded 15-second budget: it is a deployment setting, 120 seconds by default. Creating a side conversation copies the parent's whole log into the seed, so a large parent (production has multi-megabyte compacted histories) cannot finish in 15 seconds and is aborted outright — the reader sees
thread creation failed: The operation was aborted due to timeout, a message that reads like a provider fault. The budget now belongs to the deployment: the plugin config gainscreateTimeoutMs(integer, 5000-600000 ms, default 120000; an out-of-range or fractional value is a configuration error, never a silent clamp), andsidechat.startbuilds its cancellation from the resolved setting. A failed creation is still wrapped asthread creation failed: ...with status 500.- 🧪
tests/sidechat-create-timeout-config.spec.ts(the 120000 default, an explicit value passed through, the schema filling the default and accepting both bounds, out-of-range/fractional values rejected, the route building its signal from the config and never from 15000, the resolved default when no config is handed in, and a create rejection still reported as 500).
- 🧪
-
🧷 A side conversation can now be started from a stored session opened in the sidebar.
sidechat.startresolved the parent only through the LIVE agent registry, so a conversation whose last turn predates this process was refused with409 parent session "…" is not running— yet "absent from the live registry" is not "not running": the host can resume it. A registry miss now asksctx.get('sessionController').resolveAgent(sessionId)(a structural probe) and accepts only a real{ agent }; a missing service, a throwing resume, or a Session-domain{ error }keeps the existing 409 and its wording, and a parent that IS live never triggers a resume.- 🧪
tests/sidechat-start-cold-parent.spec.ts(a cold parent is resumed through the host and the thread is created with the child bound to its parent; a live parent costs zero resumes; no service / a throw /{ error }each keep the 409 and create no thread).
- 🧪
-
🗂 The side chat follows the main conversation's "work details" setting. The main pane folds a turn's reasoning and tool rows behind one expandable control; the side chat read no preference at all, so the same conversation was a wall of process rows in the panel no matter what the reader had chosen. The transcript now reads
transcriptViewandcollapseTimingfrom the host's public settings service (ctx.get('configForms')→ui-chat, a structural probe — no inject, no value-import of the settings package) and normalizes them exactly like the host (normal/expanded→detailed; a missing service, a form that is not ready, or an unusable value keep the client default —detailedon the Web,standardon the desktop shell). Undercompact/standard/detailedevery SETTLED turn's work rows (reasoning / tools) fold into one<details data-sidechat-turn-fold>(closed by default, its line carrying the host's turn copy, the rows still in the DOM); a turn that has not ended yet keeps the same control OPEN;verbosefolds nothing at all. The question and the answer never enter the fold.collapseTiming: next-inputleaves the newest completed turn open while the defaultcompletionfolds it, andstandard/detailedput the running tool/command or the first line of streaming reasoning on the control's tooltip wherecompactkeeps the bare label. A settings change applies live (a subscription push re-renders the mounted transcript; no remount).- 🧪
tests/sidechat-work-details-mode.spec.tsx(one control per settled turn in all three folding modes and closed by default, the work rows still in the DOM, question/answer outside the fold,next-inputkeeping the newest turn open,verbosefolding nothing, a running turn never hidden, the running line generic incompactand detailed instandard/detailed, a subscription push followed live, the correct defaults without a service / while not ready / for legacy values).
- 🧪
-
🧭 Compaction and model retries are now visible, and a compaction checkpoint no longer impersonates a user message or injected context. The checkpoint is a
user/messagewithsurfaceOp: replace, and the user branch had no replacement test, soisContextInjectionMessageclassified it bysource.kindalone: the moment history was compacted the transcript claimed context had been INJECTED, and expanding that row showed the whole shadowed summary as pasted text. The replacement test now runs BEFORE the injection predicate, so a replacementuser/messageis neither a user row nor an injection row. Only a landed checkpoint (source.kind === 'compact-checkpoint') draws ONEcompactionrow (its seq is the checkpoint's, carrying the summary and the shadowed item/token counts from the metering event; the summary body sits behind a<details>and the line stays a label plus the counts),compaction/start|summary|endalone draw nothing, and a summary outside the window still leaves one non-blank row. Retries fold perretryId:llm/retryupdates the row,llm/retry-startedonly flips it tostartedwithout adding one, and the row keeps the chain's first seq — reading as "retried N times" plus the provider's own failure text; an event without aretryIddraws nothing andmode: 'always'invents no limit. All four strings are in the 21 dictionaries.- 🧪
tests/sidechat-compaction-retry-rows.spec.tsx(one row per transaction at the checkpoint, nothing without a checkpoint, one non-blank row when the summary is missing, the summary carried by the compaction row alone and never as the visible line, counts from the dictionaries; the retry chain folds into one row,retry-startedadds none,alwayscarries no limit, noretryIddraws nothing, and the row reads "retried N times" with the provider failure).
- 🧪
-
🖼 Image and file content blocks render in the side chat. The mapping kept only
textblocks, so a screenshot the reader attached, an image a tool produced, and a document handed to the model all vanished — the transcript claimed a text-only conversation. All three sources (a user message, an assistant message, a tool result) now render animagethumbnail, and the bytes come ONLY fromctx.get('remote').session.attachment({ sessionId, attachmentId })withsessionId= the thread's own id (a side thread is not a scope the client retained, so the host'suiConversation.imageUrlpath rejects it): base64 →Blob(typed with the attachment's mediaType) →URL.createObjectURL, revoked on unmount. One request per attachment id, shared by every block naming it. Afileblock renders the host's name + size chip with NO RPC at all. A declined read, a carrier rejection, or a composition without a remote namespace renders the localizedsideChatAttachmentImageFailedplaceholder instead of a broken image, and a malformed block (noattachmentIdor noname) is skipped without a request or a crash. Both strings are in all 21 dictionaries.- 🧪
tests/sidechat-attachment-blocks.spec.tsx(all three sources render a thumbnail, one request per attachment with a shared object URL,uiConversationis never used, all three failure modes render the placeholder and no<img>, the file chip reads zero bytes and uses the host size formatter, a malformed block is skipped, unmounting revokes every minted URL).
- 🧪
-
🔧 A collapsed tool row no longer uses raw argument JSON as its summary.
toolArgsSummaryonly recognisedcommand/file_path/path/pattern/query/url/promptand otherwise fell back to the WHOLE raw arguments string — so a tool with an unfamiliar shape showed escaped quotes instead of anything readable. With no identifying key it now takes the FIRST string field (or the first array field's entries, in the object's own order), and an object with neither (all numbers/booleans/nested objects) gets an empty summary instead of JSON. An object that HAS an identifying key but left it blank, and arguments that are not an object at all (unparsable, or a bare array), still show the raw text — the key is the tool's own vocabulary, and for a non-object the raw text is all there is.- 🧪
tests/sidechat-transcript.spec.ts({"custom":"v"}→v; an object with no string/array field yields a summary containing neither{nor").
- 🧪
-
🔎 grep / glob / web_search and web_fetch results now draw the host's structured cards. Only bash / edit / write / read / present had cards; everything else — including the highest-frequency tools after bash — fell through to raw argument JSON next to raw output. The host does not parse that text either: it reads the
tool/resultmetaand draws a real card, declining to the generic row whenever the shape is less than exact. The side chat now mirrors that narrowing — grep'smatches/ glob'spathsbecome the hostSearchBlock(data-search), web_search'ssearch/ web_fetch'sfetchbecome the hostWebBlock(data-web) — while a missingmeta, a wrongshape, a missing or ill-typed field, or a FAILED result keeps today's labelled two-section row (arguments / result): never blank, never a half-built card. All card chrome comes from the dictionaries: the copy control reusescopy/copied, the count summaries are function labels ({shown}/{total}/{files}), and the 8 new keys are in all 21 dictionaries.- 🧪
tests/sidechat-search-web-cards.spec.tsx(one card per shape with the right content, eight non-conforming metas all fall back to the labelled row, a failed result never grows a card, the copy control uses dictionary copy).
- 🧪
-
🖼 Images in the side chat enlarge into the host lightbox, like the main conversation. The host wraps an
<img>in its preview button and mountsImageLightboxonly when the surroundingMarkdownDelegateProvidersuppliesfileImages— the main conversation always did, the side chat only passedopenFile, so the same screenshot enlarged in the main pane and did nothing here. The transcript's provider now suppliesfileImages(resolvedeliberately returnsundefined: local images already travel through the pre-render media-URL rewrite, and declining is exactly what keeps an image LINK such as[shot](a.png)from growing a hover preview card). A remote image gains the host preview button (accessible name fromsideChatImageOpen); activating it opensImageLightbox(role="dialog"/aria-modal/sideChatImageDialog, close controlsideChatImageClose), Escape dismisses it, and opening issues no request (it reuses the authored URL). All five strings — including theloading/failedfailure copy — are in all 21 dictionaries.- 🧪
tests/sidechat-lightbox.spec.tsx(image sits in the preview button whosearia-labelstarts with the dictionary copy, activation mounts the dialog and Escape closes it, a decliningresolvegrows no hover preview, opening adds no request).
- 🧪
-
🔗 Inline file mentions in the side chat are clickable — and only for files the thread actually produced. In the main conversation
`src/client/api.ts`is clickable because the chat view handsMarkdownTextafileMentionsresolver; the side chat never passed one, so the same answer was dead text there. The transcript now rebuilds the same vocabulary from the thread's OWN rows: the target of the calls that actually produce a file (write/edit/str_replace_editor, the host'smutationPathset —str_replace_editoris judged by itscommand, so a read-onlyviewdoes not count, and a FAILED call counts for nothing because failure now comes from the host's ownmessage.isError, which a tool that throws a bare error also sets; what areadtouched or agrep/globsearched is not production, and a directory would otherwise become an openable "mention") plus the delivery record's (deliverables)files[].path. A token that equals a path or its basename, and matches EXACTLY ONE produced path, becomes the host's mention control (itstitleis the resolved path, its accessible namesideChatMentionOpen); activating it goes throughopenSidebarFile→openTab({ type: 'editor', path }). An ambiguous basename (twodup.ts) and anything outside the set stay inert<code>. Resolving issues no request: the vocabulary is the thread's own rows.sideChatMentionOpenis in all 21 dictionaries.- 🧪
tests/sidechat-file-mentions.spec.tsx(produced basename and full path link, delivered files link, unknown and ambiguous tokens stay inert, activation opens the editor, opening adds no request).
- 🧪
-
🐞 A send's cleanup only touches the thread that sent it.
handleSendcleared the composer unconditionally aftersidechat.promptresolved, while the view keeps ONE composer that is swapped per bound thread — so a reader who switched threads while the request was in flight (the host only logs a message when a turn claims it, so "sent but not finished" is the normal state) had the draft they had just typed in the other thread wiped by that cleanup: no error, no request, the words were simply gone. The cleanup is now scoped to thesendThreadKeythe send started from: only that thread's draft is dropped, and the composer is cleared only while it still shows that thread.- 🧪
tests/sidechat-send-race.spec.tsx(draft survives on the newly bound thread when the response lands after the switch, the sending thread is still cleared, an unmoved binding clears as before).
- 🧪
-
📝 A draft belongs to its thread, not to the tab. The composer was one component-level
useState(''), and re-binding only reset the transcript cache, the info badge and the reveal/follow state — never the draft. So half a question followed the reader into another thread: after an archive fallback or any re-delivery oftab.meta.threadId, thread A's text sat in thread B's composer and one Enter sent it to the wrong conversation. Drafts are now kept per bound thread id: another thread opens with its own (empty) draft, coming back restores it verbatim, a successful send clears only the sending thread, and a newly created thread starts empty without touching the existing ones.- 🧪
tests/sidechat-draft-isolation.spec.tsx(no carry-over across threads, restore on return, only the sending thread is cleared, new-thread isolation).
- 🧪
-
🔧 A generic tool row no longer dumps raw JSON next to raw output. Only bash / edit / write / read / present get structured cards; every other tool (grep, glob, web_search and every host tool this view does not know) fell through to two UNLABELLED
<pre>blocks — a wall of escaped quotes. The collapsed line still shows the tool name plus the one-line argument summary (no raw JSON, no result), and the disclosed body now splits into two labelled sections:Arguments→ the raw arguments, thenResult→ the raw output, each label before its own content. Dedicated cards are untouched. Both labels are in all 21 dictionaries.- 🧪
tests/sidechat-tool-row-noise.spec.tsx(summary-only collapsed line, label order in the body, the bash terminal card unchanged).
- 🧪
-
✂️ A truncated transcript now says that earlier history is missing. When
sidechat.eventscapped its response at the newest 8000 events it left no marker, so the client rendered that tail as if it were the thread's beginning — the first thing the reader saw was an answer to a question that was not there, with nothing explaining the gap. The route now returns an ADDITIVE booleantruncated(true⇔ the thread's own log exceeds the cap, i.e. the reader is looking at an incomplete history — a small delta poll on such a log reports it too, because the field describes the thread rather than one response;events/live/pendingkeep their shapes, so an older client parses the response unchanged), and the view renders asideChatTruncatedNoticeline inside the scroller above the first mounted row. It is chrome, not a row (no row hook, no row count), and a whole transcript — or an explicitfalse— shows nothing at all. Copy added in all 21 dictionaries.- 🧪
tests/sidechat-truncation-route.spec.ts(cap boundary, newest slice returned, the delta path never claims truncation, the response stays additive) andtests/sidechat-truncation-notice.spec.tsx(hint at the top of the scroller, dictionary copy, not a row, absent for a whole transcript orfalse).
- 🧪
-
🛑 A stopped turn no longer just "stops growing", and an output-limit cut is explained.
turn/endonly recognisedreason.kind === 'error'and dropped every other ending, so pressing Stop made the transcript simply stop growing (a finished answer and a killed one looked identical) and amax-tokenscut looked like a normal finish.aborted/interruptednow leave a "this turn was stopped" line,max-tokensleaves "the output limit was reached — the answer is cut off" (two different sentences, because the reader's next action differs), and an attempt's terminal finish reason is deduped with theturn/endthat repeats it (one row per turn). The error path and a normal completion are unchanged. Both sentences are in all 21 dictionaries.- 🧪
tests/sidechat-terminal-rows.spec.tsx(one terminal row per stop reason, its own sentence for max-tokens, attempt+turn/end dedupe, error/completed untouched, and the copy actually rendered).
- 🧪
-
🧠 Side-chat reasoning renders as Markdown and reports how much thinking there is. The reasoning body used to be
white-space: pre-wrapplain text, so a model's**emphasis**,- itemlists,`commands`and source links all showed their literal syntax — the last place the side chat looked nothing like the main conversation (whose reasoning is markdown). Reasoning now renders through the host'sMarkdownText, the same component and the sameMarkdownDelegateProvidersurface as assistant prose: emphasis becomes<strong>, lists become<li>, inline code becomes<code>, and a local[file](<path:line>)link is claimed by the host and opens throughbetterSidebar.openTabat the referenced line. The collapsed summary showssideChatReasoningSummary({chars} characters of the raw text; a reasoning row carries no timing data, so no duration is invented).- 🧪
tests/sidechat-reasoning-markdown.spec.tsx(element rendering / link claimed and opened at its line / summary from the dictionary).
- 🧪
-
⌨️ Shortcut and layout chords no longer send by accident. The keydown path only looked at Enter + Shift + the IME signals, so
Alt+Enter(Option is how a macOS reader types an accent or a symbol),AltGraph+Enter(a layout-switcher gesture on several layouts) andCtrl+Meta+Entersubmitted and wiped the draft;Shift+Ctrl/Meta+Enterwas neither submitted nor consumed, leaving a stray newline; holding Enter down machine-gunned one send per repeat. The composer now honours the host keymap's first line: modifier chords (Alt / AltGraph / Ctrl+Meta / Shift with Ctrl or Meta) neither submit nor break the line (the event is consumed). Arepeatkeydown never submits, but whether it is CONSUMED follows the gesture it repeats: repeats of the submit gesture (entermode's bare Enter,mod-enter's Cmd/Ctrl+Enter) are consumed instead of stacking newlines, while repeats of a newline gesture (Shift+Enter,mod-entermode's bare Enter) keep their native line break. A LIVE composition outranks everything: whileisComposing/keyCode === 229/ a tracked composition owns the key, even an Alt or repeated Enter goes straight to the input method (no submit, no consumption). The plain Enter / Cmd+Enter / Shift+Enter behaviour is unchanged.- 🧪
tests/sidechat-composer-guards.spec.tsx(five chords in both modes, repeats of submit vs newline gestures, 229 left unconsumed, real gestures still working) andtests/sidechat-composition-priority.spec.tsx(a live composition outranks Alt/repeat).
- 🧪
-
▶️ A running side chat can be sent to AND stopped at the same time. The composer swapped
running ? stop : send, so while a turn ran the send button simply disappeared and readers concluded they could not queue a follow-up — while Enter always could (the host accepts the message into the thread's inbox). Both controls now stay in the composer bar while a turn runs: sending queues exactly onesidechat.promptand cancels nothing, stopping issues onesidechat.canceland sends nothing. Availability is per control: an empty draft disables sending only and never greys out stop (busyalone gates both), and both the draft and the send action survive a stop.- 🧪
tests/sidechat-send-while-running.spec.tsx(both mounted and un-hidden, send queues without cancelling, stop cancels without sending, empty draft only disables send).
- 🧪
-
📐 The side chat's transcript text follows the host's content-font setting. Bubbles, assistant narration and queued bubbles were pinned to
14px/22px, and the transcript chrome around them (tool and thinking rows, raw tool text, the usage tail, present-card rows, hint and error rows, queue meta) to12px/18px— so raising the content size grew only the markdown body and left every supporting line behind, drifting hierarchy and rhythm apart. The body now uses the primary axis (--dsh-content-font-size+--dsh-content-font-delta) and the chrome the secondary one (--dsh-content-font-size-secondary+--dsh-content-font-delta-secondary), exactly like the host's ownMessageItem; colours, spacing and bubble geometry are untouched. The floating pills, the running status line and the hero's primary button deliberately do NOT follow it — they are fixed control steps (--dsw-font-xs-13/--dsw-font-xxs-12), not transcript prose. Raw tool text now usesvar(--dsw-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace): the host never defines--dsw-font-mono, so that declaration used to be dropped at computed-value time and code text was never actually monospace.docs/external-plugin-guide.md§12 states the boundary (--dsh-content-font-*only in type declarations).- 🧪
tests/sidechat-typography-contract.spec.tsxpins the axis of all 13 rules, the retirement of the fixed 12/13/14px combo tokens, the colour/geometry snapshot, and "content-font variables only infont/font-size/line-height";tests/sidechat-pill-typography.spec.tsxpins that the pills and status line only name font tokens the host actually defines (the invented--dsw-font-s-12/-s-13names are gone).
- 🧪
-
🪶 Long side chats mount only a tail window, and scrolling up to read no longer gets yanked back to the bottom. The transcript used to mount the entire history (every code card, table and image in the DOM) and pinned the scroller to the bottom on every growth — while the host pushes an invalidation about every 250 ms during a streaming turn, so long threads were both slow and impossible to re-read. At most 50 rows are mounted now (the mapping still produces every row; only the DOM is windowed); the unmounted history collapses into a top spacer (inline px height, linear in the hidden row count) behind a "Show {hidden} earlier rows" control that mounts 25 more per activation, retires once nothing is hidden, and can be used until every mapped row is mounted again. Following is an intent:
scrollHeight - clientHeight - scrollTop <= 24decides it, and while it holds a growth pins to the bottom offset (not the rawscrollHeight). A reader who scrolled away is not moved by transcript growth — with ONE exception, revealing earlier rows: that commit corrects the offset by the content-height delta (scrollTop += Δ, or the new bottom when following), because the rows it inserts above the viewport would otherwise push the line being read away. A "Back to latest" pill appears off the tail in a zero-height slot aligned to the content column's right edge (nobottom: 120pxmagic number); the slot lives inside the transcript box and the composer is its sibling, so the pill can never cover the input. NewsideChatRevealEarlier/sideChatToLatestcopy in all 21 dictionaries.- 🧪
tests/sidechat-windowed-transcript.spec.tsx(tail window / linear spacer / reveal step / dictionary copy),tests/sidechat-scroll-follow.spec.tsx(near-bottom follow, no yank, back-to-latest) andtests/sidechat-reveal-anchor.spec.tsx(offset corrected by the height delta when reading; pinned to the new bottom when following);tests/sidechat-composer-typing-cost.spec.tsxstill holds "zero row re-renders per keystroke".
- 🧪
-
⌨️ Configurable submit key for side chats (Enter or Cmd/Ctrl+Enter), plus IME safety and typing cost. The composer hard-coded "any non-Shift Enter submits", so pressing Enter while a CJK input method was still offering candidates sent a half-composed message; the old check also trusted only
isComposing, missing Safari's composition-closing keydown that arrives AFTERcompositionend. The Side card settings page now carries a Send shortcut dropdown under the side-chat card's gear (Enter sends/Cmd/Ctrl + Enter sends, defaultEnter), stored in the feature's ownpluginSettings.sidechat.submitKeythrough the existing settings route (no host PrefsSchema field) and followed live by already-mounted tabs. The IME guard now matches the host composer —isComposing, the legacykeyCode === 229, and a 10 ms grace window aftercompositionend— and outranks the Cmd/Ctrl chord. Two cost fixes ride along: transcript rows are memoized by input (a keystroke no longer re-runstoolArgsSummary/formatTokens/ Markdown rendering for unchanged rows), andgrowComposer()'s forcedscrollHeightreflow moved to the next frame.- 🧪
tests/sidechat-composer-keymap.spec.tsx(submit-key and IME-guard contract) andtests/sidechat-composer-typing-cost.spec.tsx(zero row re-renders per keystroke on a long transcript) now pass; the newtests/sidechat-submit-key-pref.spec.tsxpins the default,parsePrefs' handling of invalid values, and that the value really reachesSideChatView. - 🐞 The settings page showed "—" for the send shortcut on a fresh configuration instead of the effective
Enter: a plugin-owned row (pluginToggles) read only itspluginSettings[<id>]blob, which is empty on a new document, so the select rendered "no value" while the composer already sent on Enter. A row can now declaredefaultValue(JSON-serializable): it is shown and returned before the first write, and a stored value still wins; switch rows are unchanged (a missing boolean already reads as off). The submit-key row uses it, anddocs/external-plugin-guide.md§4.1 / §8 document the field. - 🐞 The Enter that closes an IME composition no longer sneaks a newline into the draft: Safari delivers the composition-closing keydown AFTER
compositionend; the guard correctly refused to submit, but the textarea inserted a line break on its own — the host composer "neither submits nor breaks the line". An Enter inside the grace window is now consumed (preventDefault()), a LIVE composition key is still left untouched (so the candidate picker keeps it), and Shift+Enter keeps its native newline in every state.- 🧪 The new
tests/sidechat-ime-consuming-enter.spec.tsxpins all three states (closing consumes without submitting / active neither consumes nor submits / Shift+Enter inside the window is not consumed).
- 🧪 The new
- 🧪
-
🎨 The "Add to conversation" floating chip now paints from the host's floating-button pair instead of a translucent menu fill: the old fill (a menu token that is translucent by default) looked white over the Markdown preview but washed out over the code viewer's transparent CodeMirror. It now shares the pair behind DSH's own selection quote action (
@deepseek-ai/dsh-message-quotes):--dsw-alias-button-floating-fillat rest and--dsw-alias-button-floating-hoveron hover and keyboard focus. Geometry and the flat hairline border are unchanged.- 🧪
tests/theme.spec.tsgains a case pinning both.selectionPopupfills; returning to the menu token orinteractive-bg-hovernow fails the exact-value assertion.
- 🧪
-
🪟 Floating layers no longer place their own title bar under the desktop shell's native window-control band (same root cause as #805): on Windows the shell paints its native minimize/maximize/close buttons over the top band of the viewport with
titleBarOverlay, and pointer events in that band never reach the page. The task-detail window (FloatingWindow) had a hard-coded 8px top floor with a 34px title bar, so its × landed inside the band and could not be clicked; the node-detail popover (AnchoredPopover) and the mermaid zoom toolbar had the same problem. Newsrc/client/viewport-inset.tsreads the standardnavigator.windowControlsOverlay(visible+getTitlebarAreaRect(),geometrychangewith aresizefallback) and all three consumers keep their interactive area below the band; vertical drag/re-layout floors follow it, an appearing band lifts an already-placed layer, and a disappearing band never pulls it back up (maximize/restore does not move what the reader placed). Read-only probe, zero configuration: no CSS variable, no DOM attribute, no preference key, no revival of the--dsh-title-bar-stripmechanism removed in #430; a missing API,visible:false, or a throwing read degrade to 0, so plain browsers and the web build behave exactly as before.- 🧪 Tests: new
tests/viewport-inset.spec.ts(11 cases); 6 new cases intests/floating-window.spec.tsx; newtests/anchored-popover.spec.tsx(3 cases); the mount lane injects a fake WCO and asserts the zoom toolbar's real layout moves 16→52→16.
- 🧪 Tests: new
-
A directory target is no longer read as a file (#1029; same root cause also covers #933): when the opened path is a folder (a chat folder link, a
sidebar_openfolder, a directory pasted into the editor address bar),fs.read/fs.readPageanswer with the dedicatedfs-directorycode;EditorHostturns the tab into the folder window (meta.dir: true+ file tree) instead of painting the raw"…" is a directoryhost error into the tab. The promotion resolves a relative target against the session workspace root first and normalizes it to the platform-native spelling (resolveNativeSidebarPath: separator dialect + no trailing separator): listing answers are keyed by the host'spath.resolve'd absolute path while FileTree caches levels by the requested root, so a relative or mixed-separator root would sit on its loading placeholder forever. -
🐞 The sidebar no longer pins itself to a deleted linked worktree (#960): once a worktree was deleted externally (
git worktree remove, or a plain folder delete), the process-wide path / top-level caches kept answering with it, so the file tree reported a missing folder and every git command reported "not a git repository" — with no recovery short of a restart. Cache hits now verify the directory still exists (onestat(), negligible next to the ~7ms git spawn these caches exist to avoid) and otherwise invalidate, falling back to the session cwd's repository. -
🐞 The Tasks page no longer dies on
Cannot read properties of undefined (reading 'map')on the DSH 0.2.2 line: 0.2.2'sagentTeamSession projection no longer carriesmembers(the upstream Team package migration122dc3af42moved the roster out; the wire value isenabled/tasks/failure), while the plugin still readteam.members.map(...)in the 0.1.7 shape.undefined.mapthrows, the panel-level error boundary catches it, and the whole Tasks page degrades to one red line plus a Retry button that can never help.- Reach: on DSH 0.2.2 (any host carrying the Team package migration) and only for a session running Team mode (
agentTeampresent), opening Tasks crashes regardless of workspace, conversation, or plugin config. The 0.1.7 / 0.2.1 lines are unaffected — theiragentTeamstill carriesmembers. - Fix: the roster is rebuilt from the Lead's
subagentCatalog, which is 0.2.2's member source of truth (a team member IS a direct subagent of the Lead): a Lead row plus one row per catalog entry, namedname ?? label ?? id. The projection gainsenabled—falsehides the board, and a host without the field reads as enabled, so this stays backward compatible with the 0.1.7 / 0.2.1 lines. - Two capabilities are gone with the upstream field: the roster's
phase(provisioning/failed) and its per-membererror. Members read as running / waiting only, and a spawn that never produced a catalog entry has no row to draw. - One visible behaviour change: under Team mode every direct child is a member, so partial membership no longer exists — the finished (
done) fold group appears only in a team-less tree, and one parent never folds into both groups at once. - 🧪
tests/team-projection.spec.tsis rewritten for the catalog-driven roster (enabled:falsehides, a host withoutenabledstill shows, the summary run bit beats live residency);tests/tasks-model.spec.tsandtests/tasks-page.spec.tsxbuild members from catalog names and record that done/idle no longer coexist under one parent.
- Reach: on DSH 0.2.2 (any host carrying the Team package migration) and only for a session running Team mode (
-
🛡 A batch of data-safety and save-race fixes (#1146, #1131, #1132): git paths match literally (discarding changes no longer touches a same-named a1.txt), archive entries may not start with a dash and get an operand separator, a single search failure no longer disables an engine for the session, a stale save callback cannot leak across files, a restored draft keeps its own mtime baseline (so it cannot bypass fs-conflict), and quote records from other pages of the same origin survive a write. Manual releases default to dry-run.
-
📝 A batch of Markdown and file-link fixes (#1154, #1043, #963): nested code-region masks round-trip (code blocks no longer turn into U+FFFD placeholders), local images in the desktop shell resolve on the page base, and relative file links resolve from the session cwd instead of the repository root (a missing file no longer opens a same-named file there).
-
🧵 A batch of side-chat, task and push-channel fixes (#1152, #1149, #954, #1108, #1026): a model switch delivers the model-changed notice, Tasks write routes re-read optional services per request (a late mount no longer means a permanent 503), agent-opens gets an application heartbeat and never stops reconnecting, single-instance tab chips follow the registry title, and task lines use the same status rule as the board.
-
🔍 The mermaid zoom modal scales only the diagram (#829): the white card stays fixed in the viewport and the diagram is framed on open; wheel and drag no longer grow the card.
-
🧩 External buttons can now live in the editor header (
registerTabAction, new'tabActions'capability): file tabs open in this plugin'seditor/codeviews, while the host'ssidebar.right.tab.document.actionsslot belongs to the host's own document preview — so host-slot buttons such as "upload to cloud", "save to my drive" or "open in app" vanished entirely whenever this plugin rendered the file (observed in the field: disabling the plugin made the button appear).ctx.betterSidebar.registerTabAction({ id, label, title, icon, order, when, run })now adds buttons right of the refresh and tree controls: the callback receivestabId / tabType / sessionId / path / isDir / titleplus afailexit, a failure lands in the editor's error strip, a second press on the same (id, tabId) while in flight is ignored, and a throwingwhenhides just its own registration. The surface and why this face needs its own extension point are documented in guide §7.4.- 🧪
tests/tab-actions.spec.tsx(10 cases): capability declared and initially empty, render order =orderascending then registration order, duplicate ids throw, a stale disposer cannot tear down a newer registration, disposal empties the registry, header render plus run context, a registration made after mount still appears,whenfiltering with throw isolation, a second press during an async run being ignored, and a failure landing in the error strip.
- 🧪
-
🧩 Plugins can contribute actions to the file tree's row menu (
registerFileAction, new'fileActions'capability): the row menu used to be assembled entirely by this plugin (open with / download / upload here / copy / rename / delete), leaving external plugins no place to add an entry — "send this file to my cloud" had to live in some other surface. Entries registered withctx.betterSidebar.registerFileAction({ id, label, icon, row, dirs, order, when, run })now render after the built-in open/download rows and before the copy/mutation block;row: truealso adds a hover button next to the row's reference button (aniconis required for that). The callback receives the row's absolute path plus the tree's root and session, and a failure lands in the tree's error strip under the existing policy (runthrowing reportserror.message) — the tree contributes the entry point only; the registrant does the uploading, copying or moving. A second press on the same (id, path) while the first is in flight is ignored. Awhenthat throws hides just its own registration instead of breaking the tree. The surface and its two rules are documented in guide §7.3.- 🧪
tests/file-actions.spec.tsx(12 cases): render order =orderascending then registration order, duplicate ids throw, a stale disposer cannot tear down a newer registration, menu position, absolute path/root/session, directories excluded by default,whenfiltering plus throw isolation, hover button withtitle/aria-label, glyph-less registrations stay menu-only, a rejection lands in the strip while success stays silent.
- 🧪
-
🎬 Built-in audio/video preview in the side card:
.mp4/.m4v/.webm/.ogv/.mov/.mp3/.m4a/.aac/.wav/.flac/.oggcontainers no longer fall through to thecodecatch-all, get classified as binary and end on the "download to view" pane. A built-inmediaviewer (fetchStrategy: 'mediaUrl';<audio>for audio,<video>for video,preload="metadata"so the whole file is not fetched up front, download link kept for undecodable containers and missing URLs) pairs with media MIME types and HTTP Range support on/sidebar/file: a single-range request answers 206 +content-range(suffix ranges, clamping past EOF, 416 +bytes */sizefor a start past EOF), multi-range and non-bytesheaders fall back to the whole file (200). The player can scrub without waiting for the full download;?download=1resume benefits from the same path. -
🧪 Tests:
tests/file-stream-route.spec.tsgains real-server Range cases (window / suffix / clamp / 416 / 200 fallback / video MIME) plusbyteRangeOfunit tests;tests/builtins.spec.tspins themediaclaim surface and itsmediaUrlstrategy;tests/smoke.spec.tspins the media MIME table; the 21-language key-set equality intests/locales.spec.tscovers the newviewerMedia/mediaUnplayablekeys. -
🧭 The Diff/content view now offers reveal-in-file-manager and open-in-app exits (#1092): a file reached from a chat diff card is no longer a dead end. When the host can open workspace paths, the pane header shows both controls next to refresh/expand; desktop-less deployments hide them instead of offering dead buttons.
-
⌨️ The terminal now supports Ctrl/Cmd+C and Ctrl/Cmd+V copy/paste (#1103): Ctrl+C copies the selection (and clears it); with no selection it still reaches the shell as SIGINT. Ctrl+V pastes, Ctrl+Shift+C/V works too, and macOS Cmd+C/V follows the same path.
-
🧭 A blank session with the right column collapsed no longer puts the fallback bottom-panel toggle on top of the theme's top-left button (#1157): a theme can leave the anchor in the DOM with an all-zero rect, and the old code treated that as a real position and hit the macOS traffic-light floor; a zero-sized anchor is now treated as absent and uses the top-right fallback.
-
🪟 Windows "reveal in file manager" no longer opens the wrong folder for paths containing spaces / commas / # / % (#513): Explorer now receives
/select,plus a file URL as two arguments; the URL escapes only%,,and#, leaving spaces and non-ASCII literal, so Node cannot quote the whole/select,<path>token.
v0.30.1
-
🌿 A labeled "Repository" dropdown for multi-repo workspaces, with same-named checkouts tellable apart: when a container workspace discovers several repositories, the panel now shows a compact
Repository [current ▾]select — the current root stays on screen and the full list is one click away, one line however many roots discovery finds. Options carry location labels: deeper repositories showname (relative/parent)(e.g.knowhow (ob-harness/contexts)), so same-named checkouts are distinguishable, and extreme collisions fall back to full paths; the ⋯ → Repository submenu shares the same list. If the server fell back from the requested root, the picker displays the actual root as a disabled stand-in instead of masquerading as a candidate. Single-repository workspaces render no row; switching still goes through the existingchooseRepo, so reads, mutations and the commit graph stay pinned to the chosen root.- 🧪
tests/git-repo-labels.spec.ts(32 cases: path dialects, duplicate disambiguation, order and input immutability) andtests/git-repo-switcher.spec.tsx(picker options and labels, shared menu labels, spelling folding, the server-fallback disabled stand-in, single-repo absence).
- 🧪
-
🎯 The "Side card" settings row no longer shows two icons: the plugin still assumed the settings navigation had no icon channel, so it hid the fallback gear with CSS and painted its own glyph. The shell has long since exposed a
settings.section.iconslot addressed by section id, and it now wraps the nav icon in a span — the stale> svg:first-childrule stopped hiding the fallback, so both glyphs rendered side by side. The row now contributes its icon through the slot, and the marker + CSS-mask apparatus is gone (along with a document-wide MutationObserver).- 🧪
tests/settings-nav-icon.spec.tsxpins the glyph to the slot-providedsizeandcurrentColor; a headless pass against a real host confirms onesvgin the row and no leftover marker.
- 🧪
v0.30.0
-
🧭 Adapted to DSH 0.2.2-rc.1 (peer floors move to
^0.2.2-rc.1): the host replaced the installableModelSelectionRefwith an agent-ownedAgentModel—agent.model.select()records the choice durably and applies it to the next step, so the side-chat thread model selection rides the agent's own handle instead of an installed ref.dsh-toolsdropped the PTC (tool/ptc-dispatch*) event type declarations (the runtime still records them), and host icons switched from inline<path>to sprite<use href="#dsw-icon-…">. The support line moves with it: a 0.x caret never spans a minor, so DSH 0.2.1 hosts (0.2.1-rc.1 ~ rc.5, today's npmlatest) keep pinning plugin v0.28.2 (v0.29.0was never published), while 0.2.2-rc.1+ takes v0.30.0.- 🧪 Verified by
typecheck, the fullvitestsuite, andplugin-mountagainst a real 0.2.2-rc.1 host in Chromium; see the 0.2.2 adaptation record.
- 🧪 Verified by
-
🧭 The installers now verify that a profile's own
@deepseek-ai/dsh-*copies belong to one host version (#1107): profile-installed host packages resolve ahead of the DSH installation, so thedsh-subagentthis plugin imports statically binds to a mixed set; a missing export then takes the whole host down withDesktopHostFatalError: required plugins did not activate, never naming the package.scripts/install.sh/scripts/install.ps1now run the shippedscripts/check-profile-host-tree.mjsafter installing (mirroring DSH's own profile resolution: profile-local copies only, and only the exactdsh-attachmentpeerdsh-subagentdeclares) — a torn pair prints both versions plus the repair and stops instead of telling you to restart. The README FAQ documents the same repair (remove@deepseek-ai/dsh-*from the profile'spackage.json/ overrides andpnpm install, or align both copies).- 🧪 New
tests/install-host-tree.spec.ts(6 cases, running the shipped script: a torn pair exits 1 with both versions; a matching pair, a subagent-only copy, a stale copy above the profile, and an absent plugin all pass; both installers are pinned to call it and the script is pinned intofiles).
- 🧪 New
-
🧵 A side chat opened while the parent is mid-turn no longer persists an unreadable child session log (#1109): once the parent has compacted, the seed is copied around its last compaction checkpoint with renumbered seqs, but the inherited
session-log-deepseek/delivery-acceptedthroughSeqis an absolute seq — it still named the parent's position, so the child carried a watermark that did not precede its own marker. The host's v4 reader treats such a log as corrupt (SessionFormatError: delivery throughSeq must precede its marker): the child can never be read again, which also breaks the parent'sincludeDescendantsexport. The rebase now remaps the watermark, and drops the record entirely when the watermark fell inside the dropped span (there is no child-side equivalent, and inventing one would claim a delivery that never happened). Already-corrupt logs are not repaired; only new ones are prevented.- 🧪
tests/sidechat-compaction-seed.spec.tsadds one case: a compacted parent carrying real delivery markers must yield a seed where every surviving marker's watermark precedes it and still names the same event the parent marked, while markers whose watermark was trimmed away must not survive.
- 🧪
-
🛟 The native tab close and Desktop Cmd+Q no longer discard editor drafts silently (#1072, #1071): the host's right-column tab strip (× / middle click / context menu /
page.close) and the Desktop shell's quit expose no confirmable close hook —registerCloseHandleris a synchronous cleanup whose only veto is a throw, and Desktop Cmd+Q runs through the shell's ownbefore-quit→app.exitRequestedwhere the page sees no cancellable event (see host contracts §C). The editor now throttles the live document intolocalStorage(key =sessionId::path; 200k characters per draft, 600k total, 8 drafts, FIFO), flushes it in the native close handler and inbeforeunload, and offers "An unsaved draft was found. Restore it?" when the same file is reopened. Saving, confirming a discard, and confirming a reload / in-place switch drop the backup.- 🧪 Tests: new
tests/editor-draft-backup.spec.tsx(8 cases) and two new cases intests/editor-unsaved-guard.spec.tsx. - ⚠️ Host gap: the Electron desktop shell has no
will-prevent-unloaddialog and no cancellable quit hook, so a real save / discard / cancel flow needs a host capability; the guard would then callconfirmDiscardDraftand this fallback path could go away.
- 🧪 Tests: new
-
📐 Page CSS zoom is no longer mistaken for a page-level transform (#1102, PR #1110): with
body { zoom: 1.15 }the panel host's100vhresolved to ~932.6px in an 811px viewport, so the geometry self-check switched the host to absolute positioning and grew the document. The expected height now folds the ancestorzoomchain while width and offsets keep their thresholds, so a real page transform is still caught. -
🎛 The Changes lens switcher uses the public
SegmentedControl(#1098, PR #1101): it previously painted its own buttons on top of host-private CSS-module hash names and degraded to native browser buttons whenever the host restyled. The private-class dependency is gone. -
🗂 A container workspace now shows and switches every child repository:
git.statushas always reported every discovered root inrepositories, but the Git panel only listed them in the "More actions → Repository" submenu — no name and no count at the top of the panel, and the body renderedrepositories[0], so a workspace holding three projects looked like it had one. When more than one root is discovered, a chip row (data-scm-repos, one[data-scm-repo]per root) now renders above the Changes section with the current checkout marked[data-active="true"]; clicking a chip goes through the existingchooseRepo, so reads, mutations and the commit graph stay pinned to the chosen root. A single-repository workspace renders no row, and the existing menu entry stays.- 🧪
tests/git-repo-switcher.spec.tsxadds three cases: every root listed and switchable, backslash/trailing-slash/case spellings folded to one checkout, and no row for a single-repository workspace.
- 🧪
-
🔖 Selecting text in the editor now drops a clickable quote chip into the main composer (expanded to a path plus fenced body on send) (#888): in the
code/markdown/jsonlediting surfaces and in Markdown preview, "Add to conversation" used to paste the text into the composer; it now inserts a chip owned by a plugin-registered input-trigger source (betterSidebarQuoteviactx.inputTriggers.registerSource). Clicking the chip reopens the source file in the sidebar at the quoted lines and flashes the wholeline–lineEndspan for 2.4 s (skin token--dsw-alias-interactive-bg-hover-accent, softened underprefers-reduced-motion); on send the source'scodec.serializerestores the byte-identical<relative path>[:start[-end]]header plus a fenced body of up to 500 characters (header only beyond that). The end line reaches the viewer through a module-local one-shot side channel (src/client/line-target.ts, keyed by path + line, capped at 32), never through host navigation params — the host'sSidebarRightResourceParamsMap.fileonly declaresline.- Degradation: no
ctx.inputTriggersservice, a rejected registration, a composer outside an insertable phase, or a staledraftRevfalls back to the built-in non-clickable chip from #1052, then to plain text, so behaviour never regresses past the previous release. A failed insert deletes the record it just wrote, so no orphan ids accumulate. - Records live in
localStorage(dsh-better-sidebar:quote-refs, FIFO of 200) because the module ships in both the core bundle and the lazy editor chunk; the two instances can only see each other's records that way. Clicking validates the chip's session first — a different session may carry a different cwd and would open the wrong file. - The chip only opens the right sidebar; the bottom workbench has no entry for it (the bottom
TabContent → EditorHostis the same component and does consumeline, but this feature has not been verified by hand there). Line numbers are the selection-time snapshot: after the file is edited, a click lands on the same line number (possibly drifted) — no anchor search is performed. - New peer
@deepseek-ai/dsh-client-ui-input-trigger(^0.2.1-rc.1, bringing the DSH peers to 14); the integration surface and its three-tier fallback are documented in guide §7.2. - 🧪 Tests: new
tests/selection-quote.spec.ts(27 cases),tests/quote-flash.spec.ts(13),tests/line-target.spec.ts(8);tests/conversation-draft.spec.tsgains 2 cases (the chip'ssource/refoverride leaves #1052's default payload untouched), andtests/editor-line-nav-mode.spec.tsxgains 1 (a second click on the same chip still jumps and still flashes).
- Degradation: no
-
🪟 Windows + WSL workspaces: a UNC path is no longer folded into a drive-relative one. Re-spelling paths on a Windows base folded every run of separators into one
\, which also folded the UNC prefix of\\wsl.localhost\<distro>\...into\wsl.localhost\...; the host'spath.resolve()then anchored that on its own process drive (C:\wsl.localhost\...), so every file opened from a WSL workspace failed with ENOENT. The UNC prefix now survives and only the rest is folded (drive paths are unchanged).- 🧪
tests/worktree-address.spec.tsadds one case: UNC absolute, workspace-relative, and forward-slash spellings all keep the two leading separators.
- 🧪
-
🗂 A session cwd that is a Git repository subdirectory is no longer lifted to the repository top (#1024, #1080; contributor PR #1070 @hy5424): the sidebar root was replaced with
git rev-parse --show-toplevel, so a relative file link in chat resolved to<repo>/<file>instead of<repo>/<subdir>/<file>(ENOENT) and file search used the wrong root. The session cwd is now the root as it stands; only linked-worktree evidence from the session's own tool calls replaces it. The cwd is canonicalized first, so symlinked spellings (/varvs/private/var) cannot make a nested worktree look outside the workspace (#952).- 🧪
tests/active-worktree.spec.tsadds one ASCII and one Chinese subdirectory case (both red before the fix).
- 🧪
-
⚡ Mermaid previews of large Markdown documents no longer stall the renderer (layout measurement isolated in a sandboxed iframe): mermaid measures label text with
SVGElement.getBBox()against a node appended todocument.body, so every measurement flushes the whole DSH document layout — measured on a real desktop host at 59–75 ms per measurement (15,418 nodes) versus 1 ms in an empty iframe. A 31-diagram document therefore blocked the main thread for >20 s, tripping the desktop shell's surface watchdog and turning tab restoration into a crash loop. Diagrams now render inside a hiddensandbox="allow-scripts"iframe (a self-contained blob: document with the mermaid UMD bundle inlined plus a small postMessage protocol); the parent only sends/receives and sanitizes SVG: per diagram 1,500–7,300 ms → 30–104 ms, 31 diagrams in ~5 s, while the client mermaid chunk shrinks from 7.04 MB to 3.69 MB. A shared render queue (visible/near-viewport diagrams first, the rest filled in onrequestIdleCallback, 16 ms main-thread yields between renders — every diagram is still rendered, none degrades to a code block) and fence-line-sized placeholder skeletons complete the change. Design and measurements: docs/plans/2026-10-23-mermaid-iframe-isolation.md. -
⚡ Smooth scrolling for large documents: the render queue pauses while the reader scrolls (resuming 350 ms after the last scroll event) and only serves the preview that is actually on screen — hidden tabs keep placeholders and warm their diagrams when shown again. The two mutation-driven full-document scans (inline HTML pass, heading-anchor pass) coalesce bursts into one pass every 80 ms (previously a scan per mutation, measured at 8–15 ms each); initial near-viewport detection reads every rect in one batch before the swap writes, removing one forced layout per diagram;
.mermaidWrapgainscontent-visibility: auto+contain-intrinsic-size+contain: layout paint style, so off-screen diagrams leave layout and paint entirely. Scrolling no longer competes with background renders, document-wide scans or off-screen SVG repaint; diagrams still fill in when the reader stops or scrolls them into view — never as code blocks. -
🐞 A failed diagram shows the mermaid parse error inline: instead of only a generic "Mermaid render failed" label plus the source block (the full error was hidden in the hover title), the error strip now prints the first two lines of mermaid's message (e.g.
Parse error on line 10 ... Expecting 'SEMI', ...), so a broken fence is found without hunting; the full text stays on the title.
v0.29.0
- GenUI in side chats: the existing
ctx.betterSidebarservice exposes the opt-inregisterSidechatSurfaceAdapterfor GenUI 0.15.0 to render settled assistant replies. Without a consumer, Markdown rendering stays unchanged. - Child-thread ownership and lifecycle: preserve thread, event and original text-block identity. Hiding, switching threads, replacing a row or disposing the plugin revokes old callbacks; actions never fall back to the main conversation. Existing rewrite caches, media handling and streaming state remain intact.
- Cold-resume boundary: remove only an explicitly inherited history prefix; ordinary restore markers no longer discard child history.
- Contribution: thanks to @sunxiuguo for the provider implementation (#1033). Original commits are preserved, alongside current dev and the 0.28.2 cold-session read fix.
v0.28.2
- 🛡 A detached session's cwd now comes from its stored workspace address instead of decoding the whole session log.
sessionQuery.observeSession(..., { projectionMode: 'all' })decodes the entire zstd artifact and hydrates every projection to answer with oneworkingDirectorystring. The real startup fan-out never went through the 0.28.1cwdOf()single-flight (which only covers/sidebar/api): the fs-watch socket sends one frame per watched directory, and/sidebar/file|htmlresolve cwd per resource,/sidebar/upload|writeper call — so a 39 MB session was fully decoded dozens of times inside 130–180 ms (the 44-read OOM on 0.28.0 and the 36 reads reported against 0.28.1 are the same path, not a broken dedupe). The cold cwd now usessessionPersistence.stat— a header-only read (first zstd frame) with a process-level memo and same-session in-flight sharing — andactiveWorktreeRootOfreturns that address for detached sessions. Once the host attaches the session, the committedworking_directoryand linked-worktree following resume as before.- Cost: until the session is attached, the sidebar roots at the original project rather than the agent's last directory/worktree; the next 5 s poll corrects it after attach.
- 📏 Measured (40,157,518-byte session, rebuilt locally): 12
session.cwd+ 36 bypass-entry calls concurrently → 1 header read, 0 full reads, 3 ms, +0.3 MB RSS; the same artifact on the pre-fix build (43db17f) with 6 concurrent bypass calls → 6 full reads, +1002 MB peak RSS (≈6.0 GB extrapolated for 36, matching the 6.2 GB incident peak). One full read costs 467 ms / +501.6 MB. Method and limits: record §5.2. - 🧪
tests/smoke.spec.tsrewrote that group of 8 cases. Rationale and trade-offs: record.
v0.28.1
- Concurrent single-flight for cold cwd reads (OOM fix): after a full restart every session is detached, and the shared cwd resolution behind all twelve
/sidebar/*routes ran one host observation per call (a full log read plus decode; a 39 MB session × 44 concurrent requests ≈ 1.7 GB → OOM).cwdOf()now shares one resolution between concurrent requests for the same session + client cwd hint; there is no TTL (the host already caches completed cold reads by persistence revision), and the hint stays in the key so different hints never leak across each other. Two newtests/smoke.spec.tscases pin "12 concurrent → 1 cold read" and "different hints do not merge". - Side Chat (#1035, #1044, @NolanHo): local images and deliveries render in the transcript, and a model switch that rewrites the system prompt now trims the seed at the latest summarizing compaction instead of carrying the pre-compaction history into a new thread.
- No more silent wrong-file writes: tab reconciliation now reaches tabs opened in background sessions, and a worktree session resolves chat links against one address base. Renaming or deleting an open file no longer re-creates the old path on the next save, and a relative link inside a linked worktree no longer silently opens a same-named file from another checkout (#915, #947, #950, #952).
- Host crash guard for pathological git output: the bounded
runGitreader now latches after the byte cap, destroys both stdio streams and kills the process tree, and budgets stderr too. A pathological worktree can no longer take the whole host down withRangeError: Invalid string length(#999). - Git page: histories with more than 1,000 branches load again (#1013). Tags now decorate commits, rows and details — lightweight and annotated, with their own inventory budget and pagination fingerprint, without consuming the branch limit (#983).
- Editor: saving after an mtime-only change (a
touch,git checkoutor formatter rewrite of identical content) no longer deadlocks onfs-conflict; “Reload from disk” adopts the fresh baseline in place and keeps the draft (#1059). The reading position survives tab re-seating (#965). “Add to conversation” now lands as a compact reference chip and never flattens earlier chips (#1002, #1052). - Markdown links: local destinations normalize Windows backslashes, so
C:\ws\_analysis\report.mdopens instead of a bare ENOENT (#1037). - Sidebar: the bottom-workbench toggle stays visible while the right panel is open (#989); the macOS dock fallback avoids the window controls instead of pinning itself to the top-left corner (#992); a content-stable tab scope ends needless full-file re-reads (#1057); closing a side-chat tab archives its session instead of leaving a copy behind (#942).
- Package: export the
dsh-better-sidebar/iconsubpath so other packages can resolveicon.svgthroughexports(#1016).
Community contributions: @lhh010 (#999), @wang-kaopu (#1018, #1020), @yanzhaohui1999 (#929, #956, #1012, #1002), @finley08 (#965), @UNscientific-9 (#1052, #1057), @mvanhorn (#981), @z11y11w (#1055), @WinterXMQ (#1053), @NolanHo (#1035, #1044).
v0.28.0
- Stable plugin support moves to DSH 0.2.1-rc.1+: all 13 DSH peer floors are
^0.2.1-rc.1; development dependencies, CI and installers pin the exact RC baseline. No runtime compatibility layer or feature implementation changes are introduced. - Retain the published alpha's functionality: the upstream alpha.5 → rc.1 full source-tree diff contains 355 files, all
package.json, with no source changes. This release updates versions, dependency declarations and documentation only. Companion versions are Cordis peer^4.0.5/ dev4.0.5, group1.0.5, schemastery~3.18.5, and unchanged include1.0.10. - Move to npm
latest: v0.28.0 will take over the plugin'slatesttag through the existing stable-version workflow; no workflow change is needed. DSH's ownlateststill points to 0.2.0-rc.2 and cannot run this release: pin plugin v0.26.1 on that host. DSH 0.2.1-alpha.5 users pin v0.28.0-alpha.0; earlier support-line guidance is unchanged. The user explicitly accepted the independent tags' compatibility risk. - Fresh RC validation: see the DSH 0.2.1-rc.1 adaptation record. Incomplete checks remain pending; test counts from the alpha release below are not reused as RC evidence.
v0.28.0-alpha.0 (prerelease)
- Support moves to DSH 0.2.1-alpha.5+: 13 DSH peers use
^0.2.1-alpha.5; development dependencies, CI and installers pin the exact baseline. DSH 0.2.0-rc.2 users should pin npm-published v0.26.1 (v0.27.0 has not been published). Install this alpha explicitly asdsh-better-sidebar@0.28.0-alpha.0, notlatest. - Native Connection admission: HTTP/WS routes delegate to
ctx.connection.requestRejection(req), without the removedwebRuntimeservice or plugin-owned trust exceptions. - Runtime invariants integration removed: upstream removed
@deepseek-ai/dsh-invariantsand/invariantsubpaths; the plugin removes its companion, types and package entry. Compaction seed coverage retains the public surface fold and seed validator. - Current working directory: files, Git, terminals and new side chats follow session
working_directory; live reads use workingDirectory, cold reads use sessionQuery all projections with lease disposal. Linked worktrees stay base-keyed; each new sidechat seed ends with a current-cwd stamp. - Companion API / dependencies: supply
TerminalBlockLabels.commandLine(line)in both consumers and synchronize all 21 dictionaries; update Cordis4.0.5, schemastery~3.18.5-alpha.2, group1.0.5-alpha.2and include1.0.10, without a direct loader pin or overrides. Alpha.5 prefers packageengines.dshfor compatibility; this plugin leaves it absent and retains its 13 DSH peers. - Validation record: release integration validation records 221 files / 2681 passing tests in single-worker mode, real alpha.5 mounting, and all three Context integration variants. The initial adaptation record preserves earlier adaptation evidence.
- Git Graph fills the available height: remove the
min(60vh, 460px)cap and use the space between the changes area and the fixed footer. The graph adapts when the diff preview opens or the window resizes; long histories scroll within the graph, while large pending-change lists retain outer-page scrolling rather than stretching the whole page. - Optional dsh-context integration: when the Context sidebar entry is available, provide diagnostic shortcuts in agent details, background-job output windows and the session header. Background jobs target only their explicit real owner, without changing the session semantics of output observation or stop commands. Cross-session navigation selects the target before opening Context and reuses an existing tab in another pane; further user navigation cancels the jump, with a 10-second maximum wait. Hide the entries when dsh-context is absent, disabled or exposing only session tabs. Do not modify context, resume agents or change dsh-context preferences; all entries share one optional Cordis-scoped adapter with no idle polling.
v0.27.0
- One Git page with Source Control and a read-only commit graph: collapsible Changes and Graph sections, independent Merge / Staged / Changes groups, commit-message drafts, and a persistent branch/sync footer. The bounded graph reader supports branch filtering, lane connections, reference badges, hover details and commit inspection without checking out branches or changing refs. The shared preview keeps three tabs: Commit details / Content / Diff. Based on #944 by @hairyf and #969 by @vlln; the official lens tabs from #939 by @hairyf remain, with no third graph lens.
- The page is now named Git in all 21 dictionaries (#968, @vlln). Staged and unstaged line counts remain separate for partially staged files (#909, @UNscientific-9). Fixed an integration regression where selecting a change row moved it outside its group and drew a stray border; real-host browser coverage now checks all three groups at two desktop widths.
- Repository discovery and ownership handling: bounded BFS discovers nested independent repositories even when the workspace root is a repository (#607, @iasiv5). A dubious-ownership failure retries only the named repository for that command, without writing Git configuration or trusting
*(#827, @yanzhaohui1999). - Session file operations: resolve paths from the session cwd (#886) and include PTC file calls (#921), both by @wang-kaopu; show one operation per row in reverse chronological order (#940, @hairyf). Explicit cursors and long polling avoid repeatedly replaying an unchanged event window (#885, @wang-kaopu).
- Side Chat seeds from the latest summarizing compaction, instead of copying the full parent log, while preserving the required event structure (#964, @NolanHo).
- Validation: parsed CSS selection guards, mounted Git layout/graph regressions, and isolated scroll-retention fixtures. DSH support remains 0.2.0-rc.2+; no host compatibility-layer changes are included.
v0.26.1
- ⚡ Steady-state cost fix — the "it was fine on 0.24, then it got slow" regression (community reports: the sidebar turns laggy after being open for a long time in the foreground, and DSH turns laggy after many conversation turns; restarting DSH clears it for a while). An artifact-level A/B puts the dividing line at v0.25.0, and v0.26.0's git-polling fix never touched the mechanisms below. Full method and every measurement: docs/plans/2026-10-15-perf-steady-state.md.
- The two 500 ms timers introduced in v0.25 are now visibility-gated (measured 0.5 → 9.7 ms per tick, up to ~3,500 forced-layout reads per second, and they ran whether or not anything was visible): the host right-panel open state is now one module-level shared poller (refcounted; the timer is destroyed while the page is hidden and the value is re-read on show), and the blank-session fallback entry only builds its realign timer while it actually renders (the interval used to be registered before the component's early returns, so it ran while rendering
null), with the retreat walk capped at 100 steps. Same batch: thesettings-nav-iconbody observer is rAF-coalesced and lostcharacterData(it fired for every streamed token in the main conversation),use-center-column's 1.5 s safety net is armed only while no column is cached, andsession-phasestops fetching while hidden and never re-renders on an unchanged answer. - Per-tab work became per-session work:
use-session-rootis now a refcounted per-session store — one 5 s timer, alive only while at least one visible subscriber holds it, paused while the page is hidden and refreshed immediately on show/focus/un-park. Native tab bodies pass their realvisible; the file tree's directory watch and the side-chat push are gated the same way. Previously every visited tab permanently added "onegit rev-parsesubprocess plus a 4,000-event rescan every 5 s" — that resolver sits behind 12/sidebar/*routes and measured 9.6–44.7 ms per cache miss. keepMountedkeeps its semantics but is now bounded (switching away still preserves scroll, drafts and expansion state): the git-status slot registry releases and prunes, the per-session ops stream is LRU-bounded while keeping its cursor (a parked tab still folds the write it missed), andbySession/previewScrollMemory/commitDrafts/pendingAnchorsare all bounded. The client no longer re-copies the whole session-state map on every store notify, and the 1 s jobs clock no longer rebuilds the whole row list every tick.- Host side: the cwd resolver gained in-flight dedupe and a 15 s TTL (against a 5 s client poll, the old 3 s TTL meant every poll missed), the two whole-repo
--numstatdiffs now carry a pathspec (zero diff processes on a repo with a large unignored tree) plus an 8 MiB output cap, the single-layerfs.treeroute got a probe gate and the fold probe is capped, cold side-chat threads are memoised, the agent-open queue is capped, and plugin teardown now closes accepted WebSocket connections. - 📊 Measured in the real mount lane (4 visited tabs, 15 s idle window): live 500 ms timers 3 → 1, live 5 s timers 5 → 0,
session.cwdrequests 15 → 0,elementsFromPointhit tests 1,620 → 0, forced layouts 5,190 → 30. Per-tick CPU in a Chromium microbenchmark: 0.02–0.32 ms → 0.001 ms (up to 9.7 ms in the worst crowded case). - 🧪 New
tests/steady-state.spec.tsxcross-module gate (no recurring timer while nothing is visible, no layout reads, no requests, one poller per session) plus an explicit inventory of every clientsetIntervalsite, and asteady-statemetric with two hard assertions in the perf lane.
- The two 500 ms timers introduced in v0.25 are now visibility-gated (measured 0.5 → 9.7 ms per tick, up to ~3,500 forced-layout reads per second, and they ran whether or not anything was visible): the host right-panel open state is now one module-level shared poller (refcounted; the timer is destroyed while the page is hidden and the value is re-read on show), and the blank-session fallback entry only builds its realign timer while it actually renders (the interval used to be registered before the component's early returns, so it ran while rendering
v0.26.0
-
⚡ git status polling no longer drags the UI down (follow-up to #212): one fetch is
git status --untracked-files=allplus two whole-repo--numstatdiffs — four processes — and on a repository with a large UNIGNORED tree (a nestednode_modules, a package-manager store) that measured 59,631 entries / 9.24 MB / 0.131 s, with the 2,000-entry cap only applied AFTER the whole output had been produced and parsed. Three changes together:- the editor's gutter no longer owns the poll — it passed the feature switch where the tab's visibility belongs, and that parameter is what starts the timer; with native tabs kept mounted, opening any file kept the scan running every 2.5 s for the rest of the page's life. It now reads the shared answer and refreshes only on a file switch or a save, and holds no subscription at all while its tab is parked.
- the baseline is 30 s, with automatic back-off — a round trip over 750 ms / 2 s / 5 s drops the slot to 60 s / 180 s / no automatic timer, a fast answer climbs straight back, and event-driven refreshes (stage, commit, discard, save, manual refresh) stay immediate.
- idle polls notify nobody — the store's version counter is the
useSyncExternalStoresnapshot, so bumping it on every tick re-rendered every consumer once per cadence even when nothing had changed. - Linked-checkout inventory counts now use a single cheap command instead of a full
status()per checkout; an untracked DIRECTORY counts as one entry there (it used to expand to every file, and the number was silently capped anyway).
-
🚀 Plus everything else in v0.26.0: fully streamed transfers with the three deployment caps removed, a read-only paged preview for very large files, a fourth built-in viewer for
.jsonl/.ndjson, Side Chat live push + visible queue + per-thread model selection, multiple bottom-workbench terminal tabs, the rebuilt Tasks panel, native-right-sidebar rename/delete reconciliation, and several silent data fixes. See the Chinese CHANGELOG for the full list. -
Oversized-file preview is now append-on-scroll, the way VS Code's log view works: the first cut used explicit previous/next paging (each new page REPLACED the current one). Now reaching the bottom pulls the next window and keeps everything already read — line numbers continue across page boundaries, and "load all" is simply append-until-EOF. The walk has to be sequential: each page's
offsetIS the previous response'snextOffset. The too-large notice grew a "load all" button (showing byte progress while it works, disabled once EOF is reached).Its companion row ceiling (
MAX_PREVIEW_ROWS = 50_000) is the one thing VS Code does not need and this does: itsTextModeland view are virtualized, so a gigabyte in the model still means a small DOM; this renders real elements. At the ceiling the preview stops and points at the download — a visible cap beats a frozen tab, and it sits far above any log a person reads in a side panel (the 6 MB reference log is ~35k records). The ceiling lives in the reading hook rather than the view's own RENDERED row count, because whileloadAllwalks pages in anawaitloop React has not re-rendered: deciding from a stale number overshoots by several pages. The new spec caught exactly that — the worker OOMs in ten seconds.
Upload, download, the HTML preview and archive packing all stream now, and there is no size limit left anywhere. The three deployment limit keys
readLimit/mediaLimit/uploadLimitare gone with them (a retired key left in an old profile is silently ignored as an unknown field — no migration needed);listLimitstays.
-
Downloads have no 20 MB cap and the host's memory no longer grows with the file:
/sidebar/fileand/sidebar/htmlwent from "readFilethe whole thing →res.end(buffer)" tocreateReadStream+pipeline. The load-bearing detail is WHEN the header is written — the stream'sopenevent is awaited first, so an unreadable file (ENOENT/EACCES/directory) still produces the plugin's JSON error envelope instead of a 200 with an empty body; a failure after that point (the file changed under us, the peer went away) destroys the socket.writeJsongained aheadersSentguard so a route's catch block cannot throwERR_HTTP_HEADERS_SENTon a committed response and turn a truncated download into a crashed request. Seetests/file-stream-route.spec.ts(a real 21 MiBnode:httptransfer, a mid-stream abort, an unreadable path). -
Upload's two 128 MB gates are gone: upload was already streamed end to end (
for await (chunk of req)→ temp file → atomic rename); what stood in the way was the client'sMAX_UPLOAD_BYTESpre-check and the host's per-chunklimitcheck. The streaming core, the failure cleanup and the "never leaves a partial target or temp file" guarantee are untouched. -
Packing is the system's job now, not a ZIP writer of ours: the hand-written 300-line encoder (
src/zip.ts, with itsZIP_MAX_BYTES/ZIP_MAX_ENTRIES) is deleted in favour of probing and running the systemzip(always with-y— without it Info-ZIP FOLLOWS symlinks and ana -> .loop recurses forever) ortar(Windows 10 1803+ shipsbsdtarand nozip). The tool's stdout goes straight into an OS temp file, never into memory, and the download streams it out before the file is deleted.archive.statuslost its per-entrydone/total(a child process reports none) and shrank to{ state, bytes }; with neither tool installedarchive.buildanswers the new wire codeunavailableand the UI shows an actionable sentence. The client download went back to a plain<a download>link — a Blob would hold the whole archive in the tab's memory and undo the host-side change. -
Saving no longer has a 1 MiB wall:
fs.writerode the JSON API, whose request body is capped at 1 MiB, so a file the editor could open could not be written back. Saving moved to the rawPOST /sidebar/writeroute (the document IS the request body); the encoding and line-ending restore (#523 / #871) is carried over unchanged and still pinned bytests/fs-write-route.spec.ts, now with a case far past the old ceiling. -
Oversized files get a read-only PAGED preview instead of a truncated editor:
fs.readwent from "whole file or a truncated prefix" to three outcomes (text/binary/too-large). Above the editable threshold (5 MiB) a text file is no longer handed over as half a document — it answerstoo-largewith a 4 KiB sniff head, and the client renders a paged read-only preview (a monospace line list, the log-viewer shape) with a download escape hatch. Oversized BINARIES are unaffected (the media path is the same as before).FileViewerProps.truncatedand thetruncationcopy key are both deleted — "half a document that looks editable" is itself the defect #732 was about. The newfs.readPagepages by byte window, trimmed back to the last line break so a page is a whole number of lines; a single over-long line is returned as-is rather than as an empty page (otherwise "next" would sit on an offset that never advances). -
.jsonl/.ndjsonare supported: they had no highlighting at all (lang.tshad no mapping), and mapping them tojson()is not free —@lezer/jsonaccepts ONE top-level value, so a 400-record file parses into 402 error nodes (measured). There is now a hand-written per-line JSON tokenizer (one line at a time, no cross-line state, an unterminated string marked outright) behind a fourth built-in viewer,jsonl: the PREVIEW is one collapsible card per record (collapsed to a one-line summary, expanding into the host'sJsonTree) and the EDITOR is the same saveable CodeMirror, behind the preview/edit toggle. Line references (a.jsonl#L131) still flip to the editor and land on the line. -
Fixed an invisible error marker:
tags.invalidwas#ffffffin BOTH schemes — white on white in the light theme. It is the token a JSON/JSONL syntax error lands on, and the reader is supposed to be able to see what did not parse; it is now a red wavy underline. -
A
statfailure is a 400 now, not a 500: the two byte routes let the raw rejection escape as an "internal" 500, which reads as a plugin fault. An unreadable user path is a 400. -
Paged-read encoding consistency (a regression only a real file would surface): the first implementation locked the encoding page 1 sniffed, so a "long ASCII prefix + GBK body" file decided UTF-8 from its first page and decoded the GBK tail into mojibake — while a whole-file read had always decoded it correctly. Only WIDE encodings are locked now (UTF-16/UTF-32 is a property of the file; a page that happens to hold no NUL bytes cannot re-litigate it) while byte-oriented encodings are sniffed per page (a pure-ASCII page decodes identically either way). That is safe because pages are line-aligned:
0x0Acan be neither a UTF-8 continuation byte nor a GBK trail byte. Both directions are pinned intests/fs-read-page.spec.ts. -
New guards:
tests/file-stream-route.spec.ts,tests/fs-read-page.spec.ts,tests/jsonl.spec.ts,tests/jsonl-language.spec.ts,tests/archive-tools.spec.ts,tests/archive.spec.ts,tests/editor-large-file.spec.tsx.tests/zip.spec.tswas rewritten astests/archive.spec.tsalongside the writer it tested; the single real-binary case self-probes and skips when neither tool is installed (so the Windows CI runner withoutzipdoes not go red). -
Design notes, the comparison against VS Code Web (including the correction that VS Code does not paginate — its model is threshold + confirmation + turning tokenization off) and the record of implementation deviations live in docs/plans/2026-10-11-streaming-transfer-jsonl-preview.md.
v0.25.0
📦 Support line moved: DSH
0.2.0-rc.2+only (peer floor^0.2.0-rc.2). npm'slatestfor DSH is exactly 0.2.0-rc.2 now, and this release pins it. Hosts on 0.2.0-rc.1 or older (including the 0.1.7 line) should pin v0.24.1 —^0.2.0-rc.2evaluates false against rc.1, so the host's startup compatibility preflight disables the whole row silently. Declaration and pin change only: zero runtime changes.🙏 Carries work from several contributors (listed in merge order in the Chinese CHANGELOG). This English file was not updated for v0.25.0 at the time.
v0.24.1
🎁 This release carries everything since v0.22.1 (the Files/Changes UI-UX rebuild and performance work of v0.23.0, the DSH 0.2.0-rc.1 support-line move of v0.24.0, and the fixes below).
🐞 Fix release for the file tree rebuilding itself on every interaction. (1) The native surface (
sync()insrc/client/native/index.ts) treated thefilestakeover as a surplus registration — it is keyed by KIND and never appears inwanted, so every session-state write disposed and re-created it. Replacing a slot registration replaces the host's slot entry, which unmounts and remounts the whole plugin tab body (folder toggles, tab switches, bottom-workbench drags all trigger it): the explorer lost its level cache, scroll position and directory watcher, then re-listed the entire visible tree viafs.trees([root, ...expanded]). (2) The live-refresh path (retryDirinFileTree.tsx) deleted a level from the cache before refetching, so its rows were replaced by a placeholder and rebuilt (a build, a formatter or the model's own bash made entire folders blink).
- 🧪 Discriminating evidence: a new real-host lane
tests/e2e/zz-expand-refresh.e2e.ts(a toggle asks only for the toggled level, the tab body survives, rows never drop to zero; reverting either fix turns it red) plus two jsdom guards (reverting the surface fix:registered6 → 12 with everydisposedentry beingdsh-better-sidebar:files; the other asserts stale rows stay on screen during a re-list) - 📉 Measured after the fix (40-child directory): the toggle's
fs.treespayload goes from[root, big](the empty-cache signature) to[big], new WebSockets 1 → 0, removed rows 45 → 0, and an external write goes from "remove 40, add 40" to one added row - 🔧
src/fs-watch.ts/use-dir-watch.ts/TreePanel.tsx/tab-adapter.tsxuntouched (fs.watchdoes not emit on creation — measured and ruled out)
v0.24.0
📦 Support line moved: DSH 0.2.0-rc.1+ only (peer floor
^0.2.0-rc.1, CI pins@deepseek-ai/dsh@0.2.0-rc.1). The 0.1.7 line (including npmlatest= 0.1.7-rc.2) should pin v0.22.1 (the last published release on the 0.1.7 line) — the 0.2.0 host's startup compatibility preflight evaluatessemver.satisfies(hostVersion, peerRange, {includePrerelease:true}), and a caret never spans a minor bump (measured:^0.1.7-rc.1vs0.2.0-rc.1is false, so the whole row is disabled silently). This version therefore keeps no 0.1.7 compatibility branch.
- 📦 Baseline lifted to
0.2.0-rc.1: 14 DSH peers and 27@deepseek-ai/*devDependencies move together;dsh.plugin.json'sengines.dshfollows; the mount lane (scripts/e2e-common.sh) and CI pins follow. - 🔍 Measured before adapting (purely additive, hence no runtime change): across the 19 host packages this plugin consumes, zero value exports were removed; the only type-surface changes are
dsh-client-ui-primitives(optional props onDisclosureRow/TextShimmer/Tooltip, overlay top inset),dsh-session(newToolCallRecovery) anddsh-api-remotes(a new product-analytics remote); session format stays v4 (no migration package),SUBAGENT_DESCRIPTOR_VERSIONstays 3,dsh/lib/bin.js(dsh plugin/dsh web/ the ready line /--version) and thedsh-client-modulesruntime are byte-identical, the web profile's client inject list is unchanged, andui-primitives' bare imports are identical (no new test-time dependency). - 🧩 Host web-profile composition changes, checked though unrelated: desktop-only
product-analytics/desktop-product-telemetryrows are added (disabled on the web profile); the already-disabledtime-context/schedule/ui-schedulerows move into the optionaldsh-experimental-schedule-bundle. The mount assertion "the host owns exactly one tab entry (terminal) and browser is absent" is unaffected. - 🧪 Tests and rules: the peer-shape assertion in
tests/market-manifest.spec.tsnow pins the current baseline tuple and records the "a caret never spans a minor bump" lesson (compatible with §3.4 item 12's "includePrerelease is more permissive" note — that permissiveness only holds inside one minor line). - ⚠️ Only residue: the optional
@huanlin/dsh-plugin-better-localeintegration (imported by no source file or test; detected structurally at runtime) pins^0.1.0-rc.8, and even its newest 0.4.3 pins^0.1.5-rc.2— both fail the 0.2.0 preflight, sopnpm peers checkreports its 5 unmet peers. That is upstream not having adapted to 0.2.0, unrelated to this plugin's own 14 peers.
v0.23.0
🧭 Development-line version (never published to npm; its content ships with v0.24.1): the Files and Changes pages rebuilt end to end, plus a round of performance and interaction polish. The Files page gains Ctrl/Cmd and Shift multi-select (VS Code semantics), a batch action bar, Git change coloring (VS Code's add/modify/delete/conflict tones, directories get a summary dot), new-folder creation, reworked drag-and-drop upload, and "Zip and download" on a multi-selection — archiving became a host-side task with progress (
archive.build/archive.status, per-entry callbacks, 4 concurrent builds, 5-minute TTL, sessionId-bound). "Open with" now keeps both sources side by side: the local associated apps the host detects (file manager / VS Code / Cursor / Zed / custom editors, SSH remotes included) plus the plugin's own targets, with a setting (openWithPluginTargets) to force coexistence; the context menu was restructured (only default actions at level one, the app list moves into a submenu). The Changes page is rebuilt as a hierarchy tree with both the Git view (working tree / staged / history) and the Agent view (per-session edits), and directory rows stage/unstage. Interaction and performance:/sidebar/api/fs.treemeasured 22.8ms → 3.8ms (10k entries: onereaddir, rows built only up to the cap, lowercase-comparison sort, 1.5s directory-level cache invalidated by writes andfs-watch), a new batch routefs.trees(mount/refresh goes from N+1 requests to one), opening the context menu no longer re-lists directories, and rows no longer re-render with every git poll. Also fixed: "Open to the Side" did nothing (it only wrote into the collapsed bottom workbench; it now routes by surface to the host'sopenResource(preferNewPane)and really splits).
- ⚠️ Behavior change (security-relevant): the workspace path fence was removed — the plugin's fs routes (tree/read/write/rename/remove/mkdir/media/HTML/upload/archive) no longer enforce containment and can read or write any path the host user can reach (OS permissions are the only limit); the
workspaceFencesetting and its notice row are gone. - 🧩 Reusable global components and shared stores were extracted (
IconButton/Chip/SectionHeader/Notice/ConfirmDialog/StatusBadgeplus a shared git-status store) under the skin contract (tests/theme.spec.ts); the ZIP writer is our own (no third-party dependency) and a non-latin1 download name no longer 500s (RFC 5987). - 🐞 Also fixed: the tree's expansion was reset when a file preview was closed and the tree came back (the native surface kept the expansion set per tab; it is now projected from per-session state).
v0.22.1
📦 Stable release (npm
latest): DSH 0.1.7-rc.1+ only (peer floor^0.1.7-rc.1, CI pins@deepseek-ai/dsh@0.1.7-rc.1) — the support line is unchanged, so 0.21.1 / 0.22.0 users can upgrade straight away; hosts on DSH 0.1.6-alpha.2 or earlier still pin v0.19.1. A patch release: both defects reproduced reliably on a real host while the unit suite stayed green.
- 🐛 The
filestakeover's tab-type id could be orphaned →native register files error: … already registeredspam plus the Files window falling back to the host's empty state until a page refresh (community issues #770 / #771 / #766). The chain was confirmed verbatim from the desktop shell's own log (desktop.frontdesk.log, 2026-09-27 15:51:39.338): during an in-page client entry replacement (plugin-market update, Plugins page disable→enable, HMR rebundle) the plugin's teardown unregisters each built-in descriptor one by one →service.notify()(synchronous, inline) drivessync()on an already inactive plugin context; the drop loop released thefilestakeover — which is not a descriptor — and re-created it in the same pass:tabs.registerlives on the host context (still alive) so it took the id anyway, while thectx.slots.injectright after it threwcannot create effect on inactive context,live.set(FILES_KIND, …)never ran and the disposer was lost — the id became unregistrable for the rest of the page's life. Fix (community PR #777, @yanzhaohui1999): ① the drop loop skipsFILES_KIND— the takeover lives and dies by the editor type'swantsFiles/hasFilesswitch and the seat disposer; ② any registration that fails after the host took the id releases that type and the slots already installed, leaving only a failure the next notification retries; ③ teardown / drop loops release entry by entry, so one throwing release no longer aborts the rest. - 🐛 macOS desktop: window drag worked once and then stopped, and the double-click-title zoom was gone (issue #772). The plugin host is a direct
bodychild, so the shell'shtml[data-platform=darwin] body > :not(#root) { -webkit-app-region: no-drag }(an id-bearing selector — only!importantwins) applied to it, and app-region ignorespointer-events— the viewport-sized panel layer cancelled every[data-window-drag]strip beneath it. Fix (community PR #773 merged; #786 completed it):[data-dsh-better-sidebar],[data-dsh-panel-host](with> *stayingno-drag) and the zoom modal.mermaidModalopt out with the neutral-webkit-app-region: initial !important—initialcomputes tonone, which does not subtract from the drag region, whereas the literal keywordnoneis not neutral (it computes tono-drag). Interactive popups (.selectionPopup,FloatingWindow,AnchoredPopover) deliberately do not getinitial, or a press would start a window drag instead (the #103/#111 regression). - ✅ Guards:
tests/native-registration.spec.tspins both invariants to the registry's event log (4/4 red on the unfixed code, and "a failed registration can still be retried" is no longer a non-discriminating assertion); slot failures are keyed byname::keysoregisterSlots' partial-release path is actually exercised; a deployment-level regression gatetests/e2e/native-reload.e2e.tswas added (utimesSyncthe installedlib/client.js→ in-page entry replacement → assert nonative register … error, no diagnostic strip, the Files takeover usable again; red on 3 consecutive runs against npm 0.22.0, green on 3 consecutive runs of the fixed build (it is ONE case, run repeatedly)). The drag contract is shape-pinned bytests/panel-host-css.spec.tson Linuxpnpm test(there is no macOS runner) and value-pinned by a real cascade probe in the mount lane that reads computed styles against the shell's own rules (both the panel host and the zoom modal red the unfixed artifact). - 📐 Baseline unchanged:
@deepseek-ai/dsh-*still pinned to0.1.7-rc.1, peer floor^0.1.7-rc.1; no public API, contract, dictionary or chunk changes. Incident write-up (and why #766's "absorb" approach was rejected): docs/plans/2026-09-28-native-files-takeover-reload-leak.md. - 🧪 Verification:
pnpm test122 files / 1293 passed / 9 skipped;pnpm test:mountandDSH_CMD=… pnpm test:mount:aggregategreen; the packed bundle carriesapp-region:initial!importanttwice andno-dragtwice.
v0.22.0
📦 Stable release (npm
latest): DSH 0.1.7-rc.1+ only (peer floor^0.1.7-rc.1, CI pins@deepseek-ai/dsh@0.1.7-rc.1) — the support line is unchanged, so v0.21.1 users can upgrade straight away. Hosts on DSH 0.1.6-alpha.2 or earlier still pin v0.19.1. The headline is the Tasks page rebuilt from a "subagent topology" into a workflow graph, then polished over several rounds of real-host feedback; along the way DSH 0.1.7 deleted the Agent Teams Remote methods, so both the team and background-job data planes were rewritten.
- 🧩 The Tasks page is now a workflow graph (the primary view): the session tree renders as layered nodes joined by bezier edges — drag to pan, wheel-zoom to the cursor, fit to the content box (double-click the background to refit), and a control cluster bottom-right (graph/tree toggle + fold switch + zoom + fit). The classic indented tree is kept (keyboard-navigable); both modes share one view model, so fold state and team enrichment never drift apart, and the default view is a setting.
- 🃏 Two-segment node cards: the top segment is the kind badge (main agent / subagent / teammate / workflow / completed aggregate) + phase badge + name + meta line; the bottom bar is the state dot + state word + the same merged activity line the main agent shows (concurrent tools grouped by category, counted, with the running call's detail — the wording comes straight from the host's
chatnamespace) + a fold chevron on finished nodes. A running bar is swept left-to-right across its whole width (1.5 s, token gradient, disabled underprefers-reduced-motion). Cards are 8px-rounded, hierarchy is carried by a faint top-segment tint only, and the session you are on wears a heavier accent border. - 🔀 Workflow runs enter the graph: the host folds
tool-workflow/*session events into runs (the same events the official workflow-run panel folds); a run hangs under its origin agent, its member agents are re-parented below it and boxed per phase with matching phase badges. Members with no catalog row are synthesized from the run's own data, so a finished run still shows who took part. - 🗂 Folding is split into two groups that say what they hold:
✓ N completed(finished work plus failures, with failures called out asN failed) andN idle(teammates that finished a turn and can be called back at any moment) are two separate rows. The manual chevron always works (no threshold); the automatic rule only sweeps idle members once there are 3 or more of them — one or two waiting members are the team's working set, and their cards are where a task line shows up. An aggregate's name line reads "first two names ++N", and clicking it expands everything. - 🪟 Two persistent floating windows (extracted into a reusable
FloatingWindow): background-job output, and the shared task's detail/edit surface — draggable, resizable from every edge, with a self-scrolling body, dismissed only by its close button or Escape (an outside click, a blur or the anchor leaving the viewport never closes them). The task window hands its spare height to the description (or the multi-line editor), so enlarging it gives the content more room rather than leaving a gap, and the action row is pinned to the footer so a long description cannot push it out of sight. - 👥 Agent Teams board (experimental layer): team members enrich their matching nodes and an always-visible strip lists the roster and shared tasks; the task state machine follows the host (pending → claim → in progress → complete → reopen) with reassign / edit / two-step delete, and a stale CAS revision gets its own notice ("changed elsewhere — refreshed"). Member activity is overlaid from
subagents.live'srunningflag rather than guessed on the client. - 🔄 Background jobs now read the host's client service: DSH 0.1.7's web profile mounts a client-side
ctx.jobs(a pushed roster plus a non-consuming output stream andkill), so the plugin deleted its ownjobs.list/jobs.output/jobs.killroutes and the event-replay mirror — and never touches the model'sjob_outputcursor at all (the host turned that constraint into a capability). Output streams in a persistent floating window with tail-follow, and the drawer auto-collapses once a tree has 8 or more agents. - 🛠 Two data planes rewritten for DSH 0.1.7: ① team reads — upstream deleted the three
agentTeams.remoteView-style Remote methods, so the plugin reads the Lead Session'sagentTeamSession projection instead (the same snapshotsubagentCatalogcomes from, push-based), deleting theteams.viewroute and its 5-second poll; the write path keeps two routes (createTask/updateTask) whose rejections moved from a result union to a thrownTeamError, withTEAM_TASK_STALE_REVISIONmapped to a 409team-conflict. ② background jobs — see above. The bug this fixed in the wild: on 0.1.7 the team strip never rendered at all (the route answeredremoteView is not a function, and the page degraded silently). - 🐛 Four defects caught on a real host (every one of them green in unit tests): the per-node fold button did nothing because it answered to the automatic rule's guards (non-member + leaf) while the button is a manual trigger — the two triggers now have their own guards; an idle card never drew a fold chevron at all (its render condition was hard-coded to done/error) — "not executing" now qualifies; claiming a task flipped its tag to blocked because
readyonly means "queued with every blocker done, clear to claim" and is false for every non-pending task — the rule is now the singletaskBlocked/taskStatusLabel/taskTone/taskDotStatepair; and "complete" on a queued task always failed (the host state machine demands a claim first), so the action row now follows the state. - 🎨 Narrow panes and mobile settings: type scale, row heights and spacing were re-tuned for the native right sidebar's narrow width (content-box centering, zoom clamping, pan bounds, phase-frame colours, thicker edge stubs, a recomputed card height budget); the settings page gained a Mobile group — on a narrow viewport (≤768px) the Tasks page no longer auto-opens and it defaults to the tree view.
- 📐 Baseline: the DSH pin and support line are unchanged (0.1.7-rc.1, peer
^0.1.7-rc.1). New copy keys (includingteamTaskClaim/tasksFoldIdle/taskWindowCreate/tasksStateProvisioning) across all 20 dictionaries; design docs: docs/plans/2026-09-14-tasks-graph-workflow-teams-design.md, 2026-09-27-tasks-graph-polish.md, 2026-09-27-floating-window-mobile-settings.md, 2026-09-27-agent-teams-dsh-0.1.7-adaptation.md (implementation deviations and known limits included).
v0.20.0 (dev line, never published)
🚫 This version never reached npm (npm
latestis still v0.19.1): it was meant to be the stable release on the 0.1.6-alpha.2 line, but the 0.21 line replaced it before release, so everything below actually shipped in v0.21.1. Its original positioning: supports DSH 0.1.6-alpha.2+ only (peer floor^0.1.6-alpha.2, CI pins@deepseek-ai/dsh@0.1.6-alpha.2). This is a breaking-change release: hosts on 0.1.5-rc.* should pindsh-better-sidebar@0.19.1. See docs/plans/2026-09-21-dsh-0.1.6-alpha.2-adaptation.md for the adaptation record.
- 🖥️ Terminal handed to DSH's built-in: DSH 0.1.6 ships its own right-column terminal (
ui-sidebar-terminal), so the plugin deleted its whole terminal stack —pty-manager/agent-pty/pty-deps/ the 8terminal_*tools / the xterm view and font-linking / cross-session terminal pinning — along with thenode-ptydependency, itsallowBuildsgrant and the installer's-Repairmode. Note: the model therefore loses a cross-call persistent terminal (only one-shotbash/pwshremain); the upstream@deepseek-ai/dsh-tool-terminalis not mounted by any shipped bundle, so enable it yourself in the profile when you need it. - 🌐 Browser view handed to the built-in: the plugin deleted
BrowserView/ the sandbox status bar / the embeddability probe (including the host'sbrowser.proberoute) and the two settings that only configured its own iframe; it keeps the external-link takeover in the chat and UI (protocol-based routing is the capability the host does not have), now targeting DSH's built-inbrowsertab type. - 🧩 The produced-files row goes back to the host: DSH 0.1.6 turned
conversation.chat.turnTailfrom a chain into a list (upstream deliberately lets several plugins append rather than replace each other), so the plugin's takeover could only duplicate the built-in deliverables card and was removed wholesale; click behaviour is unchanged (the built-in goes through the host'sopenFile→ this plugin's editor). The cost is the one "reveal in the file tree" entry at the turn tail (the in-tree context menu remains). - 🐛 Two silent breakages fixed: once
SidebarRightGuideEntry.idbecame required, a missing id left the whole native surface silently empty (the throw happens inside anctx.injectcallback and is swallowed); onceturnTailbecame a list the old registration threw outright and the row died. Both are fixed and guarded by tests, with a registration-failure reporting hook added alongside. - 🎨 The empty-pane card now matches the built-in card recipe:
.paneCardadopts DSH's guide-capsule recipe (0.5px l4 border / 24px radius / layer-1 fill / 56px minimum / 14×20 padding), with tests guarding its geometry, its tokenized colours, and that it does not copy upstream's undefined--dsw-alias-bg-l1/-l2spellings. - 📐 Baseline: every
@deepseek-ai/dsh-*package is pinned to0.1.6-alpha.2, the vanisheddsh-code-runtimepackage is removed,diff/simple-iconsare hoisted into devDependencies as primitives' new bare imports, andui-primitives' three breakages this release (IconSendOutline16gone,TerminalBlockLabels.noExitCodeadded,ConnectionIndicator.reconnectLabelremoved) are adapted.
v0.19.1
📌 Stable release (npm
latest, no prerelease suffix): the pinned baseline moves to DSH 0.1.5-rc.2 (npmnext) while the peer floor stays^0.1.5-rc.1— nothing in the rc.2 upstream delta touches this plugin (zero changes underpackages/api|host|session|agent; the only real code edits are the message-feedback dialog, deliverables card CSS and theCodeFileIconSVG data split), so rc.1 hosts need no DSH upgrade to run this version. Hosts on DSH 0.1.5-alpha.2 stay on v0.19.0-alpha.1; the 0.1.2-rc.1 stable line keeps using v0.18.1.
- 🎯 Adapted to DSH 0.1.5-rc.2: devDependency pins, the CI mount lane and
SIDEBAR_SERVICE_VERSIONall move to rc.2; there is no plugin-side code change (the upstream delta does not touch this plugin — file-by-file audit in docs/plans/2026-09-10-dsh-0.1.5-rc.2-adaptation.md: the vast majority of the 300 changed files are single-lineversionbumps). - 🎨 File icons (#611) and the built-in tab glyphs are now colored (#531 + #594 merged, implementation redone for rc.2):
- Files and folders use DSH's own artwork: the fallback link is the host's
FileTypeIconfromui-primitives(48 full-color official code/config glyphs plus the category-colored sheets for markdown, images, PDF, Office, video and folders), so the plugin ships no extension table and needs no icon chunk — #429's 563-entry color dataset andlib/client-file-icons.js(255 kB) are gone, along with thefileIconThemeswitch. Color is simply the behaviour now, and the core bundle grew by 10 kB. - New public
registerFileIconAPI (capability'fileIcons'): register your own glyphs by extension (exts), exact file name (names) or directory name (folderNames), ranked by priority then registration order. Caveat: the host classifier covers every path, so a catch-all (exts: []) claims every row the specific rules miss. - Colored built-in tab glyphs: Files / Changes / Tasks / Side chat / Terminal / Browser and the diff view all get a colored glyph, painted from
--dsw-alias-*tokens so every skin still applies. - The native right Sidebar's tab chips carry a glyph too: the host's tab definition has no icon field, but the
sidebar.right.pane.tab.titleslot is the chip's content — the plugin renders[glyph][title]there (an editor tab with a path shows that file's icon). The glyph isaria-hidden, so the chip's accessible name is unchanged.
- Files and folders use DSH's own artwork: the fallback link is the host's
- 🛠 CI fix 1: real Windows-lane timeouts.
ci-windowswent red eight times in the 2026-09-09/10 window; six of those were process-spawning cases hitting vitest's 5000 ms default:tests/agent-pty.spec.ts(real PowerShell + ConPTY per terminal) andtests/install-powershell.spec.ts(a coldpowershell.exestart measured 12.1 s) now declare a 30 s budget each, vitest.config.ts raises the globaltestTimeoutfrom its 5000 ms default to 15 s (the first real Windows run then lost a third file to the same default —tests/git.spec.ts:85at 9607 ms; three files, one cause, so per-file patches were whack-a-mole), andwaitForTranscript's inner poll budget dropped from 5000 ms to 15 s — the inner budget must sit below the outer one (they used to be the same 5000 ms, a structurally guaranteed timeout).ci-windows'sTeststep now runspnpm test:windows(--maxWorkers=2) so the process-spawning specs stop starving each other on a 2-core runner. - 🛠 CI fix 2: the mount lane's npm install.
plugin-mount'snpm install -g @deepseek-ai/dsh@<ver>failed four times (twoETARGET, twoJavaScript heap out of memory/ exit 134): the pinned version declares its transitives as floating^ranges, so while upstream publishes a prerelease in stages (rc.2 appeared package by package between 14:43 and 14:57 UTC on 09-10) npm resolved a mixed rc.1/rc.2 peer graph (3062 ERESOLVE lines). The lane now pins an already-complete rc.2 (fixes ETARGET) and passesNODE_OPTIONS=--max-old-space-size=4096(fixes the OOM).--legacy-peer-depswas tried on the way and rejected by real CI: it skips exactly the peers a global install must supply, and@deepseek-ai/cordis-plugin-group— required at boot bydsh-app-boot— is a peer rather than a dependency, so the CLI died withERR_MODULE_NOT_FOUND.
v0.19.0
📌 Stable release (npm
latest, no prerelease suffix): supports DSH 0.1.5-rc.1+ only (peer floor^0.1.5-rc.1, CI pins@deepseek-ai/dsh@0.1.5-rc.1). Hosts on DSH 0.1.5-alpha.2 should stay on v0.19.0-alpha.1 (the npmalphatag still points there); the 0.1.2-rc.1 stable line keeps using v0.18.1.
✨ New
- 📝 The new-tab list gets an optional description back: DSH 0.1.5-rc.1 restored
SidebarRightGuideEntry.description(optional), so the plugin restoresTabDescriptor.description— each of the six built-in types declares a line again (all six guide rows — Files / Changes / Tasks / Side chat / Terminal / Browser — carry one), and theguideDesc*keys return to all 20 dictionaries. The host's native guide renders descriptions only while the listed entries are ≤ 4 (a longer list drops every description rather than truncating), and the plugin contributes six guide entries by default — so in the default composition no description is rendered; they appear once the reader disables enough tab types (per-type switches live on the plugin's settings page) to bring the guide down to four entries or fewer. An entry that declares none stays a single icon + title line (the plugin ships no generic fallback sentence). (#613)
🐛 Fixes
- None. The rc.1 delta over alpha.2 is small (373 changed files, overwhelmingly upstream package version bumps, native-sidebar preview UI polish, and test snapshots); apart from the restored description field (plus upstream's
filestype now using its own coloured folder glyph as the guide glyph) nothing needed adapting.
🧰 CI & internals
- Baseline moved to DSH 0.1.5-rc.1+ (#613): peer floor, devDependency pins, the CI mount lane, and
dsh.plugin.json'sengines.dshall follow (rc.1 is both thelatestandnextdist-tag on npm). - Explicitly unchanged, no need to re-check: the global main-panel model (the
mainslot /sidebar.panellist/ctx.layout/ root-scopedrightbar+rightbar.session, still not adopted), the file address grammar (packages/util/workspace-pathonly had its version bumped), the native tab-body host contract (.paneBodyis still a block scroller with a definite height), the core / agent / session / subagent host APIs, and theui-primitivesexport surface (only CodeBlock rendering changed). @deepseek-ai/dsh-client-ui-primitives@0.1.5-rc.1still declares nodependencieswhile its bundle still bare-importsanser/shiki/@shikijs/langs/*/mdast-util-*/micromark-*/katex— the third-party devDependencies hoisted in the previous release therefore stay, and must not be reverted.- Real-host verification (DSH 0.1.5-rc.1 + plugin 0.19.0):
typecheck/lint/check:consumer-typesgreen; unit suite 124 files · 1296 passed · 9 skipped;pnpm peers checkclean; the mount smoke lane against real rc.1 7 passed (including the tab-body fill assertion and the new "descriptions render only at ≤4 guide entries" assertion); on the local 3080 instance the guide still shows six icon+title capsules (6 > 4, so upstream renders no descriptions — upstream also raised the capsulemin-heightfrom 48px to 56px), clickingAGENTS.mdin the file tree lands in the plugin editor (CodeMirror mounted), the side-chat composer sits on the pane floor (host box 962px == pane body 962px, composer 8px off the bottom), the bottom workbench's edges coincide with the centre column, andpageerroris 0 (the only console noise is the third-partydsh-tauri-worktree/api/dsh-worktree/attach500, unrelated to this change).
v0.19.0-alpha.1
🧪 alpha channel (npm dist-tag
alpha, installdsh-better-sidebar@latest): supports DSH 0.1.5-alpha.2+ only (peer floor^0.1.5-alpha.2, CI pins@deepseek-ai/dsh@0.1.5-alpha.2). Stay on v0.19.0-alpha.0 for 0.1.5-alpha.1; the 0.1.2-rc.1 stable line keeps using v0.18.1 (npmlatest).
✨ New
- 🪟 Every tab body now fills its pane (#609): the native sidebar's tab-body host is a block scroller with a definite height, not a flex container, and the plugin's tab roots declared only
flex: 1— so they collapsed to content height and the side-chat composer sat right after the transcript instead of at the pane bottom (a long transcript pushed it out of view). The native adapter now wraps every tab body in aheight: 100%column flex host, restoring the same fill semantics the bottom workbench has for all plugin tabs, third-partyregisterTabdescriptors included.
🐛 Fixes
- 🧭 File address grammar follows DSH 0.1.5-alpha.2:
fileAddressForalways produces a session-scoped address and absolute paths keep their leading/;parseFileAddressis prefix-based and ignores?/#suffixes. - 🪟 Center-column anchor follows alpha.2's global panels: the
conversationslot becamemain.conversationunder the root-scoped keyedmainslot, so the locator now resolves the new key and skipsdisplay: contentsslot hosts (alpha.1's old key still works).
🧰 CI & internals
- Baseline moved to DSH 0.1.5-alpha.2 (#609): peer floor, 22 devDependency pins, the CI mount lane, and
dsh.plugin.jsonengines all follow;pnpm peers checkis clean (hoisted thedsh-session-persistencetransitive peer per §3-9). TabDescriptor.descriptionremoved: alpha.2's native guide entries no longer render a second line (they are icon + title capsules), so the field and the sixguideDesc*keys (20 dictionaries) are gone; a new pane's default page is now selected from the registry (exactly one guide entry opens that page directly).
v0.19.0-alpha.0
🧪 alpha channel (npm dist-tag
alpha, installdsh-better-sidebar@latest): supports DSH 0.1.5-alpha.1+ only (peer floor^0.1.5-alpha.1, CI pins@deepseek-ai/dsh@0.1.5-alpha.1). The 0.1.2-rc.1 stable line keeps using v0.18.1 (npmlatest).
✨ New
- 🖥️ DSH's native right sidebar (#604): the right column is now DSH's own sidebar — all seven plugin tab types register as native tab types with native tab bodies; every file open from the chat goes through
ctx.sidebarRight.openResource(dsh-resource://file/…); theeditortype claims file resources atextensionpriority (outranking the built-in text preview) and takes over the built-in Files page kind (restored on unregister); cross-session opens queue until the target session is on screen. - 🧩 Own right panel and free windows retired (#605): with the right column handed back to DSH, the plugin keeps only its bottom workbench (single split tree, per-session persistence) and registers its toggle into DSH's session-header utilities slot; the float API (
floats/floatTab/dockFloat/raiseFloat/ the "Move to Free Window" menu entry), the'floatWindows'feature string, and theopenByDefault/defaultWidthPercent/changesDiffFloatsettings are gone (a persistedfloatsfield is ignored, so old documents still load). - 🔗 DSH 0.1.5 host contracts (#603): the
assistant/chunkevent is gone — live deltas now fold fromagent/assistant-streamframes (the side chat transcript'slivefield);sessionPersistence.inspectis gone — cold reads go throughopen(id,'read'); session headers useSESSION_FORMAT_VERSION.
🐛 Fixes
- Eight session-event read sites follow the 0.1.5 contracts (side-chat transcript,
jobs.outputreplay, fork inheritance); custom seeds now carry the fork marker pair, so they no longer inherit the parent's unclaimed inbox input.
🧰 CI & internals
- The real-host mount smoke lane pins 0.1.5-alpha.1 and sweeps the native sidebar's guide page to open every plugin tab type; typecheck / lint / unit tests / mount lane all green.
v0.18.1
📌 Stable release (npm
latest): the DSH baseline is unchanged (0.1.2-rc.1+, peer floor^0.1.2-rc.1) — this is the incremental cut after v0.18.0: richer op previews in the changes panel, a writable file tree, and five fixes.
✨ Features
- 📄 Op-preview upgrades in the changes panel (#499): markdown reading mode with mermaid fences, plus inline
.htmland.pdfrender previews; diff syntax highlighting extended to mjs/cjs/mts/cts, CSS/SCSS/Less, HTML/XML/SVG/Vue, GraphQL, JSONC/JSON5; new secret redaction layer (on by default for previews, toggleable in the pane header) - 🗂️ File-tree rename / delete (#550): inline rename plus confirmed delete, slimmer context menus and viewport-clamped submenus
- 🧩 Plugin catalog names and shell preset text localized (#535): they now follow the host language
🐛 Fixes
- 🔀 Git diff gap folds really expand (#576, fixes #577): the fold row promised "n lines… click to expand" but did nothing (
-U3leaves gap segments without row text); the hidden rows now load on demand throughgit.show, sliced from both sides' contents, with loading / failure states and request deduplication — plus a fix to that route'srev:pathaddressing (it always returned empty before) - 💬 Side-chat seeds no longer inherit the parent's unclaimed inbox messages (#562): the seed carries the fork markers, so the "side chat sends earlier User messages first on long contexts" ghost message is gone
- 🖼️ Local images in the split markdown renderer (#569): rewritten to reachable URLs instead of 404ing
🧰 CI and internals
- ESLint flat config wired into CI and the Makefile (#536), Makefile command surface (#526), hardened e2e scripts (#527), shared component-test utilities (#524)
- Refactors: Sidebar.tsx split by concern (#542), four polling idioms converged onto
use-polling(#541), rc.7__DSH_MODULES__fallback removed (#540), One Dark/Light syntax palettes single-sourced (#534), duplicated implementations converged and dead code removed (#525)
v0.18.0
📌 Stable release (npm
latest): this release targets DSH 0.1.2-rc.1+ only (peer floor^0.1.2-rc.1); 0.1.0-rc.8 ~ 0.1.1-rc.2 are not supported — stable-DSH users should stay pinned todsh-better-sidebar@0.17.1, hosts on 0.1.2-alpha.x keepdsh-better-sidebar@latest(v0.18.0-alpha.0).
All changes since v0.17.1 (the two intermediate version numbers v0.18.1-alpha.0 / v0.19.0-alpha.0 were never published; their content is folded into this release):
🔗 Host track graduation
- Onto the DSH 0.1.2 line and graduating to stable: v0.18.0-alpha.0 dropped the 0.1.1-rc.x compatibility layer and fixed blank Side Chat transcripts on alpha.1+ (#472); the baseline then climbed through alpha.3 (#497) and alpha.5 (#516,
Session.events→snapshotEvents()); the chat file-open funnel moved toremote.session.openWorkspacePath(#494) and the "Show in folder" reveal scroll was scoped to the tree body (#453). This release pins the baseline to DSH 0.1.2-rc.1 (zero source delta vs alpha.5 — a pure version bump;dsh-client-localeresumed publishing, everything aligned to rc.1; real-host mount smoke 14/14 in CI)
✨ Features
- 🌿 Unified "Changes" tab (#475): one tab, two lenses — Git (real diff / history / stage·commit·revert / worktree & child-repo selection) and This Session (live tracking of every file the model reads / writes / edits); a unified diff renderer (mod pairing + intra-line character highlights + syntax coloring + context folding), a draggable bottom preview pane, and one-click expansion into a dedicated diff tab
- 💬 Side Chat rendering upgrade (#486): main-conversation-grade Blocks structure, per-turn usage tails, reconnect banner
- ⚙️ Workspace path fence toggle (#458): a new
workspaceFencedeclarative settings key with a one-click off affordance and guidance on 403 error surfaces
⚡ Performance
- 🚀 Core bundle -45% (#489): 19 non-zh/en dictionary chunks lazy-loaded, render stabilization (transcript row reuse / tree Sets / batched drags), startup & polling cost cuts (single settings fetch, one git process per tick); a new perf measurement lane; also fixes the bottom-pane drag leaking panel width into the host layout and jumping the native left sidebar
- 📉 Fewer repeated center-column DOM queries (#456)
🐛 Fixes (selection)
- ✏️ Editor / Markdown: SSH remote editor links open on the client (#522), reading position kept across preview/edit switches (#467), YAML frontmatter hidden in preview (#394), TOC dismiss-on-outside-click + popover z-index (#461), file basename kept in @-reference links (#417)
- 💻 Terminal / platform: Windows custom shell executables resolve (#503), transient resize failures contained (#428), monospace fallback for unresolvable fonts (#366), Linux absolute paths in WSL workspaces (#455), Windows Explorer reveal selection preserved (#508)
- 🗂️ Layout / state / file tree / chat: desktop shell layout coexists with the side card (#398), no forced mobile drawer on auto-activation (#373), restored free-window id conflicts (#385), tree auto-refresh on window focus (#469), reference affordance pinned to row tail (#509), selection-popup dismissal + caret-anchored draft insert (#427), collapsed toggle cluster aligned (#361), old-engine scroll-jump compat (#448), worktree listing on older Git (#454)
🧰 CI & internals
- Windows CI lane (#520), Makefile command surface (#526), e2e script hardening + aggregate double-mount regression (#527), shared component test utils deduplicating boilerplate (#524), duplicate-implementation convergence + dead code removal (#525)
🌐 Ecosystem
- 10+ new curated plugins: dsh-better-sidebar-icons (#441), dsh-sidenote (#451, formerly dsh-sidechat #470), dsh-github-workbench (#410), dsh-bilingual-reader (#379), dsh-server-deck (#413), dsh-md-export (#405), dsh-code-nav (#404), dsh-suhuang-scroll (#392), dsh-better-overleaf (#370), and more (each with 18+ language i18n coverage)
v0.19.0-alpha.0 (0.1.2-alpha.5 adaptation, unpublished, folded into v0.18.0)
🧪 Alpha track: this release targeted DSH 0.1.2-alpha.x only (peer floor
^0.1.2-alpha.5, npm dist-tagalpha). This number was never published separately — its content shipped in the v0.18.0 stable release, and the same number was later reused for the 0.1.5 adaptation line (see above).
- 🔗 Adapted to DSH 0.1.2-alpha.5 (published to npm,
alphadist-tag): the CI mount gate's pin, thedsh.plugin.jsonengines floor, and the@deepseek-ai/*peer / devDependencies baseline moved up to 0.1.2-alpha.5 (verified by a real-host mount smoke 14/14).dsh-client-localehas no alpha.5 upstream (newest is 0.1.2-alpha.3), so its peer floor / devDep pin trail the baseline and already accept the alpha.5 runtime (pnpm peers checkreports zero mismatches — no new transitive peers to hoist). The code adapts to alpha.4's compatibility-flagged change — theSession.eventsproperty was removed, migrated to the on-demandsnapshotEvents()API (8 sites: sidechat transcript live reads, fork inheritance,jobs.outputreplay, subagent activity), and theseedLengthmeta field the host dropped was removed from thread creation; alpha.4's remaining changes (bidirectionalsend_message, custom-model discovery reusing Profile headers,SessionSeq/SessionLogOffsetstrong typing) and alpha.5's upgrade-startup fix were verified not to touch any other plugin surface.
v0.18.1-alpha.0
🧪 Alpha track: this release targets DSH 0.1.2-alpha.x only (peer floor
^0.1.2-alpha.3, npm dist-tagalpha, installdsh-better-sidebar@latest). This version number was never published separately; its content is folded into the v0.18.0 stable release.
- 🔗 Adapted to DSH 0.1.2-alpha.3 (published to npm,
alphadist-tag): the CI mount gate's pin, thedsh.plugin.jsonengines floor, and the@deepseek-ai/*peer / devDependencies baseline moved up to 0.1.2-alpha.3 (verified by a real-host mount smoke 14/14). All 117 commits between alpha.2 and alpha.3 were audited point by point: every host contract this plugin relies on (token auth, slash RPC,MarkdownTextlabels, the event-stream and persistence APIs behindsidechat.events,SettingsNamespaceInput,SUBAGENT_DESCRIPTOR_VERSION(still 3),dsh-client-store, the profile loader, the node-pty pin) is unchanged, so no code adaptation was needed; alpha.3's breaking changes (the requiredBeginSubmissionInput.mode, the renamedattachment-invalidsubagent error, the removed SQLite persistence backend, the identity-gated projection change feed) were all verified not to touch this plugin.
v0.18.0-alpha.0
🧪 Alpha track: this release targets DSH 0.1.2-alpha.x only (peer floor
^0.1.2-alpha.2, npm dist-tagalpha, installdsh-better-sidebar@latest); 0.1.0-rc.8 ~ 0.1.1-rc.2 are no longer supported — stable-DSH users should stay on v0.17.1 (npmlatest).
- 🔗 Adapted to DSH 0.1.2-alpha.2 (published to npm,
alphadist-tag): the CI mount gate's pin and the@deepseek-ai/*devDependencies baseline moved up to it (verified by a real-host mount smoke 14/14). Adaptation points:dsh-settingsdropped the runtimesettingsNamespaceexport (namespaces are now validated at compile time — the host passes the constant directly); thedsh-subagentdescriptor version went 2→3 (stamped by the host package; the test assertion follows theSUBAGENT_DESCRIPTOR_VERSIONconstant); the restoredSessionEvent.ignorableand the Remote gateway's unifiedRemoteErrorwrapping were verified to not affect this plugin. - 🐛 Fixed blank Side Chat transcripts on DSH 0.1.2-alpha.1+: transcript polling still called the
ctx.connection.apiface removed in alpha.1 (the error was silently swallowed, so the tab rendered an empty transcript forever). Transcripts now come from the plugin's ownsidechat.eventsroute (live threads read the in-memory event log, cold threads read session persistence, withafterSeqdelta pulls, sidechat-routes.ts). - 🧹 Dropped the pre-alpha (0.1.1-rc.x and older) compatibility layer: the e2e host RPC collapsed from the dot/slash dual dialect to slash-only (token URL required, host-protocol.ts);
MarkdownTextlabels collapsed to the nested single shape (markdown-labels.tsx, no more dual prop names); peerDependencies / devDependencies /dsh.client.inject/ the chunk externals allowlist all dropped the defunct@deepseek-ai/dsh-client-runtime(four synchronized spots).
v0.17.1
- 🔗 DSH 0.1.2-alpha.1 adaptation (dual-version compatible): fully adapted to DSH 0.1.2-alpha.1's Remote gateway, one-time-token browser authentication, and the
MarkdownTextlabels contract change — the plugin works identically on 0.1.0-rc.8 ~ 0.1.1-rc.2 and 0.1.2-alpha.1 (the latter verified by a real-host mount smoke 14/14 against a source build of the GitHub tag; alpha.1 was never published to npm, and the CI pin moved to the npm-published 0.1.2-alpha.2 in v0.18.0-alpha.0). Highlights: all fourMarkdownTextrender sites now go through the dual-shape labels helper (markdown-labels.tsx), fixing thereading 'code'crash in markdown/mermaid previews on alpha.1; the e2e mount smoke speaks both wire dialects (token-URL cookie exchange, slash/apiendpoints with parameter-named args, tests/e2e/host-protocol.ts); dropped the@deepseek-ai/dsh-client-runtimepeer removed upstream in 0.1.2-alpha.1
v0.16.1
All changes since v0.16.0:
🐛 Fixes
- 🧊 Git panel freeze + restart loop (#376, fixes #369): opening the Source Control panel could freeze the whole page, and the frozen layout restored itself after every reload with no way out — three unbounded layers compounding, now all bounded: ① status truncation — the
git status --untracked-files=allresponse is capped at 2,000 entries (capped results carrytruncatedand the panel shows a notice, mirroringfs.read's truncation semantics; worktree change counts inherit the bound), so a huge untracked set can no longer freeze the browser main thread; ② bounded repository discovery — a non-repository cwd (e.g. the home directory) no longer probes every visible child directory serially without limit: probe timeout 30s→5s, at most 200 probed directories, concurrent requests share one in-flight scan plus a 60s TTL cache, ending thegit rev-parsespawn storm under~; ③ reset escape hatch — loading with?dsh-sidebar-resetdrops the persisted layout (shared width included) and starts from the default, breaking the loop even when the page is already hung; persisting resumes once the param is gone;statusTruncatedcopy synced across all 19 dictionaries
v0.16.0
All changes since v0.15.2:
✨ New features
- 🪟 Free windows (#354): drag any tab (built-in or plugin-registered) out of the tab bar onto the main conversation area — a dashed drop hint marks the landing zone and release turns it into a floating window (default 390×780, phone-portrait ratio, clamped to the viewport and centered at the drop point). Windows can be moved by dragging the header, resized from the SE corner (≥320×200), raised to the top by clicking anywhere, sent back with the header context menu ("Back to sidebar" / "Close"), and closed with X through the normal
closeTablifecycle (pty release etc.). Dragging over a sidebar pane highlights it and releasing docks the window back into that pane.floatspersist per session (restored as-is after refresh, lenient sanitize + geometry clamping). Service semantics:featuresgains'floatWindows'—openTab's dedupe/id focus on a floating tab raises its window (no duplicate open, no panel expansion),closeTab/activateTabwork on floating tabs and still fire their lifecycle callbacks,visibleis always true inside a float, and agent-terminal reconcile covers floating windows. Tab content reuses the regular render path; plugin tabs are fully supported. Also ships the 8px-grid spacing cleanup of file sub-pages (design) - 📂 Model-driven sidebar opens (
sidebar_opentool) (#353): a new global settingagentOpenTools(off by default) injects one tool letting the model open local files (editor tab, deduped by path), folders (full-window tree rooted there,meta.dir) and HTTP(S) pages (browser tab, URL prefilled) in the caller's sidebar. Turning the setting off unregisters the tool and clears the undelivered queue; already-open tabs stay. Opens targeting non-active sessions queue and replay when visible (/sidebar/ws/agent-openspush, same trust fence). No new public API and no new/sidebar/apiroutes (design) - 📝 README-level inline HTML + table of contents (TOC) in Markdown previews (#360): previews now genuinely render block-level inline HTML — badge walls
<div align=center>,<details>blocks nesting markdown,<br/>/<sub>/<img>inside table cells,<video>/<picture>— all sanitized through a DOMPurify allowlist (<script>and other active content stripped,<a>forced_blank rel=noopener), with local mediasrcrewritten to the session media route. With ≥3 headings a floating TOC button appears: smooth scroll, auto-expanding folded<details>ancestors, collecting headings from HTML segments too. The renderer is still the hostMarkdownText(shiki / KaTeX / GFM preserved); pure-markdown documents take the original path with zero regression (design) - 🌏 Third-language coverage (19 languages) (#339): optional peer
@huanlin/dsh-plugin-better-localeadds full dictionaries for ja / de / fr / pt / ko / ar / hi / id / tr / vi / th / ru / it / nl / sv / pl / zh-HK / zh-TW / zh-MO (~340 keys each). Coverage borrows the DSH English slot: it is active only while DSH's active locale isenand is completely inert underzh(no mixed-language UI). The 19 dictionaries are also registered into better-locale so externalctx.locale.lookup('betterSidebar', key)callers get the override text. Without better-locale installedctx.get('betterLocale')is undefined and the whole block is a no-op — zh/en behavior is unchanged - 🌿 Multi-repository Git selection + linked-worktree discovery (#326 #285): when the session cwd is a workspace container rather than a Git repository, the Git panel discovers direct child repositories and shows a repository selector — status / branch / history / diff / stage / commit / revert / cherry-pick / file opening are all threaded through the selected repository. Linked-worktree change discovery and per-worktree git operations are transactionally bound to the selected checkout (including delayed pagination responses), stale/prunable worktree targets are rejected, and individual inventory failures degrade safely
- 🖥️ Browser loopback allowlist (#365): a new side-card setting
browserAllowedLoopback(comma-separated host or host:port entries; bare hosts match every port, host:port matches exactly) lets the sidebar browser navigate to explicitly trusted local addresses. Allowlisted loopback pages additionally get theallow-same-originiframe sandbox token — local dev servers (Vite etc.) need a real origin for their module/HMR/fetch pipeline and would otherwise render blank. The page stays cross-origin to the GUI and to every other site; the server-sidebrowser.proberoute mirrors the same allowlist - 📝 Vue + 28 legacy languages in the editor (#202):
.vuemaps to@codemirror/lang-vue(template / script / style dispatch on thelangattribute,<style lang="scss">preprocessors); zero new dependencies bring scss/sass/less/stylus/ruby/lua/perl/r/dart/scala/groovy/powershell/diff/protobuf/cmake/pug/tcl/haskell/clojure/erlang/julia/pascal/vb/vhdl/stex/objectivecpp via legacy-modes. A throwing language factory degrades to plain text (console.warn) instead of breaking the editor; ambiguous.v/.mextensions stay unmapped on purpose - 🔄 Editor preview refresh trio (#215 #228, fixes #167): a manual refresh button for text previews; switching back to preview after an edit-save auto-reloads (suppressed while dirty so drafts survive); a successful save while in preview mode reloads on the saved edge. Automatic polling and the
fs.statversion endpoint are gone (zero background API traffic) - 🖼️ Local / relative images in Markdown (#292):
,/cwd/img.pngand reference-style[id]: urldestinations are rewritten to/sidebar/filemedia URLs (still bounded by the session cwd) — previews no longer show just the alt text - ➕ New recommended-catalog entry: ego-browser (#340):
@dsh-external/ego-browserAgent browser tab (registers a sidebar page automatically when better-sidebar is present, falls back to a floating bubble otherwise); description dictionary completed across 19 languages (#371)
🐛 Fixes
- 🛒 DSH marketplace managed-install compatibility (#338): the public
cordisentry was removed frompeerDependencies(the market preview hard-rejectscordisin any dependency field — optional does not help), so the npm package satisfies the dsh-community-market install rules — catalog sources (dshfind / 1024Store) can re-issue therepository_backlinkverified target and the plugin becomes installable through the Desktop market - 🔤 Type base migrated to
@deepseek-ai/cordis(#338): the declaration surface (src/context-types.ts) no longer depends on or restates the publiccordis—Contextis now an intersection of the real vendored cordis Context with the structural service faces, and thectx.betterSidebartype merge lives on@deepseek-ai/cordis. Consumer migration: changeimport type { Context } from 'cordis'toimport type { Context } from '@deepseek-ai/cordis'(theimport type {} from 'dsh-better-sidebar'merge path is unchanged); plugins that never used that import are unaffected - 🧩 All internal
ctx.betterSidebarreads fixed (#357, fixes #356): on npm-installed DSH 0.1.1-rc.x (web bundle) the sidebar died on every page load (cannot get property "betterSidebar" without inject) — the 26 internal direct reads now go throughctx.get('betterSidebar')(root reflect-store resolution, immune to the fiber chain); external consumers keepinject: ['betterSidebar'] + ctx.betterSidebar - 🔐 Session-workspace boundary for file APIs (#345, fixes #328): fixed
fs.tree / fs.read / fs.writeworkspace escapes; media, HTML preview and uploads share real-path symlink validation; regression tests for absolute paths, symlinks, uploads and nested Git sessions - 🪟 Panel-host layering and viewport clipping (#330 #278, fixes #277): panel host z-index 40→25 — below the DSH cordis dynamic-plugin layer (30), so the workbench no longer covers cordis inventory/approval surfaces (still above AppFrame's 20 and below the 100+ float stack);
overflow: hiddenon the host clips at the viewport edge, so collapsed panels no longer stretch the document into bidirectional scrolling (measuredscrollWidth2289→1672 /scrollHeight1280→1032, any skin) - 📐 Layout-push hardening (#310 #130 #180): conversation column gets
min-height: 0+overflow: hidden+overflow-wrap: anywhere(long unbreakable URLs / OAuth links no longer push the composer and left-rail Settings out of the viewport); the layout-push effect is split into "set only" + "remove only on unmount" and the width push is gated onpanelOpen— dragging the bottom height with the right panel closed no longer squeezes the conversation, and release no longer flashes full-width;useLayoutEffectremoves cross-paint full-width frames; all three drags flush the final frame and synccenterRect.rightbefore committing; bottom height caps atviewportHeight - PANEL_MIN; drag handles no longer highlight mid-drag - 📱 Mobile: unavailable-sidebar clarity + 1px overflow (#254): with no session the toggle uses
aria-disabled— keeping the non-executable semantics while allowing touch/keyboard focus so the "select a session to use the sidebar" tooltip is reachable; the panel usesborder-boxso mobile100vwincludes the left border and no longer causes 1px horizontal overflow - 📏 Side-card width shared across sessions (#36): panel width is a layout preference, not session content — "last drag wins" writes the global
dsh-sidebar:v1:widthkey that fresh and cached session switches adopt; without a global key (first run / pre-existing sessions) behavior is byte-for-byte unchanged - 🧹 Terminals close immediately on session delete (#130): new
PtyManager.closeSession()subscribing to DSH'ssession/disposed— deleted sessions no longer wait for the 30s reconnect grace to release their terminals (agent terminals are agent-lifecycle-owned and untouched) - 🔍 Filename search skips noise directories (#342):
node_modules/.pnpm-store/.yarn/.turbo/.next/dist/build/coverageetc. (case-insensitive,.gitstill skipped) — huge dependency trees no longer burn the 100k visit budget and returntruncatedearly, so real files in later directories (docs/) are found; no.gitignoresemantics, still filename lookup - 📝 Mermaid global error rendering suppressed (#341):
suppressErrorRenderingenabled — invalid diagrams no longer inject a large error SVG intodocument.body; the component-level error fallback and source display remain - 🖥️ Terminal Nerd Font icon fallback (#190): supplementary-plane PUA icons in starship / powerlevel10k prompts (Nerd Fonts v3 Material icon set) no longer render as tofu —
withIconFontFallbacks()appends Nerd Font icon families to the winning base font (before the first generic family, deduped by family name, CSS global keywords filtered, no color-emoji fonts) - 🌐 HTML preview declares UTF-8 (#193, fixes #170):
/sidebar/htmlresponses carrycharset=utf-8(Chinese fragments without<meta charset>no longer mojibake); original file bytes preserved - 🧪 trust-fence Origin compared by hostname (#182): some Chromium builds (Edge 151) serialize the Origin of non-default-port loopback pages without the port —
http://127.0.0.1againstHost: 127.0.0.1:3080no longer 403s (mirrors DSH's official gateway fence); different hostnames and opaque null origins are still rejected - 🪟 "Show in folder" now reveals in the explorer (#94): the folder-reveal gesture no longer opens the directory as a file in the editor (
"..." is a directory) —revealInExplorerswitches to the explorer tab, auto-expands a collapsed panel, expands the parent folder and highlights/scrolls to the produced file; the produced-files selector now reads the engine's Turn deliverables (same source as ui-deliverables) - 🖱️ Panel-drag layout flash fixed (#180): dragging the bottom height with the right panel closed no longer shifts the conversation left; release no longer flashes full-width before snapping back
- 🖥️ PowerShell installer fixes (#47): the remote entry is now "download the script → strip the UTF-8 BOM → run it in memory", so
-Version/-DryRunwork again under Windows PowerShell 5.1 (the BOM no longer eats the leadingparam(...));pnpm --versionis checked before touching the profile (major <10 fails with a clear error and exit code 1) - 🔄 Browser embed probing GET fallback (#69): when a HEAD response omits both
Content-Security-PolicyandX-Frame-Options, probe retries once with GET — sites like Alibaba Bailian that only advertise their embed policy on GET no longer show a misleading "refused to connect"; they get the friendly "site refuses embedding" panel with an "open in browser" button - 🔧 git-source installs fixed via
unrundevDependency (#336): tsdown 0.22 loads its config throughunrunand pnpm 11 does not auto-install peer deps — git-hostedprepareno longer fails withFailed to import module "unrun"(npm tarballs unaffected) - 🍃 Strict
ctx.effectalso fixed 4 latent sites: interception / IME-guard effect bodies returnedundefinedon failure instead of a disposer (invalid shape under the vendored cordis effect contract) — now a no-op disposer
Older releases (v0.12.0 – v0.15.2)
v0.15.2
All changes since v0.15.1:
✨ New features
- 🗂️ "Open in app" submenu in the file tree (#334): the file-tree context menu gains an "Open in app >" submenu — built-in openers (reveal/select in file manager, VS Code, Cursor, Zed), each with a pin button that promotes it to a top-level context-menu item (click again to unpin); with an optional SSH host configured, VSCode-family entries switch to the
vscode-remote/ssh-remote+<host>/<path>protocol and local-only entries hide automatically; custom editors supported (name + URL template with{path}+ "VSCode-family" flag, configured in the Files card gear popup). Open actions go through the new host routePOST /sidebar/api/open.external(argv-array spawn, no shell injection) (design) - 📑 Tab context menu (#331): right-clicking a tab offers Close / Close others / Close to the left / Close to the right, scoped to the current pane (tab group); items grey out when there is nothing to close; the menu only opens — it never switches the active tab; bulk closes go through the existing per-tab
onClosepath so lifecycle callbacks, pty release and agent-terminal shutdown all stay intact - 📄 Diff files collapsed by default (#270): each changed-file header is now an accessible expand/collapse control; recognized source files expand by default while tests, docs, generated files, lockfiles and unknown types stay collapsed; the existing 500-row cap for expanded content is preserved
- 📖 README update: feature tour converted to a table (two screenshots per row, saves space); community section now shows the WeChat group and QQ group QR codes (#325, QQ group 577011007)
🐛 Fixes
- 🪟 Prune empty restored panes (#268): persisted split panes left empty when ephemeral diff tabs were dropped no longer survive as full-size blanks —
sanitizeStatenow also prunes the empty split leaf and repairs the stale active-pane pointer; a fully empty workbench keeps its single empty pane - 🖥️ Hide spawned git windows on Windows (#301, fixes #124): the shared
runGit()spawn options now setwindowsHide: true, so repo-status polling and git actions no longer flash console windows on Windows (no behavior change on other platforms) - 📁 Untracked files inside new folders (#242):
git statusswitched from--untracked-files=normalto--untracked-files=all— each file inside a new folder now shows as its own row and its diff can be loaded (no morefs.read"is a directory" error), matching VSCode's default behavior - ⚡ Per-frame React re-renders eliminated for toggles/drags (closes #315):
centerRectmoved to a ref with direct DOM writes to the bottom bar (zero React renders);TabContentmemoized with an explicit comparator; a new frame-batcher coalesces Divider/dock drags per frame; meaningless locate passes skipped during drags. 4x CPU-throttled A/B: >17ms frames on toggle collapse 19→6 / expand 24→4~6, p95 21ms→15ms; drags unchanged (non-regression)
v0.15.1
All changes since v0.15.0:
✨ New features
- 💬 Codex-style transcript rework for Side Chat (#314): transcript rows became collapsible — tool calls, thinking and context injections share one quiet single-line chrome (chevron + label + one-line argument summary) that expands into an indented body on a hairline thread, no cards or fills; streaming labels and a creating hero shimmer (shimmer = generating), failed tools go danger,
prefers-reduced-motionstills every loop; the first question is no longer swallowed by the boundary prompt — context injection and first contact are delivered as separate events (boundary + parked snapshot rideagent.inject, the question wakes the driver), so the transcript maps injections onto a collapsible injection row while genuine user messages — the first one included — render as user bubbles; legacy threads' first message is split out into its own bubble too - 📖 README rewrite: feature tour (real UI screenshots per feature), user-facing DSH compatibility badges, simplified install (
add→approve-builds→add, node-pty-safe build, paste-to-DSH install prompt), 28+ plugin ecosystem with per-category collapsed listings
🐛 Fixes
- 🖥️ Terminal pty stays alive across conversation switches (#323): switching sessions is no longer treated as a transient drop — the client sends a
parkcontrol frame on unmount and the host skips the 30s reconnect-grace countdown; switching back (open()cancels parked) or explicitly closing the tab resumes the normal lifecycle; agent terminals keep their indefinite lifetime - 📂 File-tree upload overlay no longer intercepts Tab drags (#317): dragging tabs (reorder / cross-pane split) across the explorer no longer shows the upload overlay or swallows the event — gated on
dataTransfer.typescontainingFiles(consistent with the panel-host shield), so tabs land normally; OS file drags behave as before - 💬 Subagent auto-open debounced (#314): Side Chat thread creation no longer pops the task page — the 0→N trigger rearms for 500ms and re-evaluates the original baseline against the live snapshot, by which time the title filter recognizes the thread; genuine subagents still auto-activate the Tasks page (wide viewports expand the sidebar, while narrow viewports prepare the tab without forcing the drawer open)
v0.15.0
All changes since v0.14.0:
✨ New features
- 💬 Side Chat (beta) tab (#286): Codex-style side threads, one independent tab per conversation — the child inherits the parent's full context (completed turns + pending messages + the in-progress turn's assistant output and tool activity, honestly frozen with an "interrupted" marker); created with an identical composition (same preset / provider / model) so the first request reuses the parent's input prefix cache; threads stay invisible in the main session list with zero subagent-catalog noise; follow-ups survive DSH restarts (auto cold-resume); one-click "Save as new session" promotes the thread to a top-level session (design)
- 📤 Upload into the files window (#239): header "upload file / upload folder" buttons plus drag-drop (drop on the tree body = workspace root, on a directory row = that directory, on a file row = its parent directory, VSCode semantics); full-window blurred progress overlay while uploading (per-file progress + cancel / Esc); buttons disabled while busy, tree refreshes after the upload settles
- 🧩 Desktop compatibility in four options (#284): "Position compatibility mode" is now a main-row dropdown — Auto-detect (default, conservative: only the standard Window Controls Overlay geometry contributes; real 32/36px caption-overlay heights per shell, live on maximize/restore; zero modification on plain web) / DSH official web (explicitly no adaptation) / Shell preset (built-in, opt-in; only shells that appeared in this repo's issues/PRs with 100+ stars, "detected" badge when the environment matches) / Custom (free-form CSS + shift distance). Documents that already carried compatibility values migrate to the custom scheme; interactive chrome opts out of desktop drag regions (
no-drag); the bottom-push anchor is a composite selector ([data-pane]and:has(> [data-slot])) - 🎛️ Settings page UI/UX modernization (#300): the side-card secondary-settings entry is now a full-width "Feature settings" strip at the card bottom (replacing the invisible corner gear — much easier to discover); coordinated two-tone enabled state (brand activation accent + success-green check badge); every color is still
--dsw-alias-*token-derived so skins follow automatically - ➕ New entries in the recommended-plugin catalog:
dsh-docs-panel(global docs, #230),dsh-flowglass(#261),dsh-git-forgeanddsh-ssh-tunnel(#204),dsh-turn-review(#102)
🐛 Fixes
- ⚡ Batched live preview for the subagent page (#298): the old implementation polled
subagents.historyper running subagent, each poll triggering a full host-side enumeration — an O(N²) amplification that stalled the page with many concurrent subagents; now a single batch routesubagents.live(one enumeration of the whole tree) plus one client poller with a single in-flight request; display logic and copy unchanged - 🖱️ Interrupted / fast-release drags no longer roll back (#249, closes #247 #248): interrupted or fast-released drags commit the last known position; HMR re-activation re-locates the center column (fixes the blank bottom panel after a hot reload)
- 📐 Push variables stay effective while mounted (#259, fixes #258): the bottom panel no longer flashes full-width after a drag is released
- 🔐 Workspace boundary hardening for file APIs (#328):
fs.tree/read/write, media, HTML preview, and uploads now share real-path containment checks that reject outside absolute paths and symlink escapes - 🔧 Adapted to DSH 0.1.1-rc.1 / rc.2 (@next) (#297 #305): no code changes needed
- 🔒 Upload-chain hardening (#239): empty and absolute
relativePathsegments are refused outright; uniquely named temp files (concurrent uploads stay independent, crashed processes never block later uploads); write-stream error listeners (a failing disk can no longer crash the host); client error codes unified with the wire (too-large), 413s localized
v0.14.0
⚠️ This release requires DSH ≥ 0.1.0-rc.8. All changes since v0.13.1:
✨ New features
- 🖼️ Unified panel-host injection refactor (#232): panels/toggle clusters moved into a
[data-dsh-panel-host]fixed containing block (fixed inset-0 z-40), immune to desktop-shell intermediate transforms hijackingfixed; mount self-check (page-level transform →data-dsh-panel-host-degradeddegraded sync, judged on uncorrected geometry, exits only when the ancestor transform is gone); push anchor switched to#root [data-dsh-frame] > [data-pane="conversation"]+#rootcalc width against desktop-shell additive overflow; chunk revalidation on activation (HEAD+ETag keeps unchanged chunks, 5s timeout fails open);visualViewportkeyboard inset +env(safe-area-inset-*)mobile adaptation - 📂 Separate file windows by default (#232):
editorExplorernow defaults to separate — tree clicks / file opens create a new tab per path and the path-less window is a pure file manager; merged mode stays available as an opt-in - 🖥️ Terminal shell / shellArgs configurable from the settings page (#232): the terminal card's gear popup gains "Shell path" and "Shell arguments" rows (previously yaml-only via
cordis.patch.yml) — saved values take effect immediately for terminals opened afterwards (UI terminals and modelterminal_createalike); empty keeps the existing yaml →$SHELL/ login shell /powershell.exeresolution order - 🏷️ Version badge on the settings page (#232): the side-card settings section now opens with a
DSH-better-sidebar v0.14.0identity badge (version synced with the service instance, test-guarded) - 🔍 Add-plugin catalog: search / grouping / independent scroll (#232): built for a growing plugin ecosystem — a live search box (filters by name / id / description), optional
categorygrouping for entries, and an independently scrolling list (the modal no longer grows unbounded with catalog size)
🐛 Fixes
- 🧩 rc.8 module-system migration (#232): rc.8 no longer exposes the
window.__DSH_MODULES__page global (it moved to thectx.modulesservice), which broke every lazy chunk's externals resolution — the client now injects themodulesservice and shares it with chunk-bundle copies through a plugin-owned global (terminal / editor / Mermaid on-demand loading restored) - 🧩 Chunk revalidation barrier hardening (#232): HEAD revalidation gains a 5s timeout (fails open on a stuck route so the barrier can never wedge lazy loads);
resetChunksclears a pending revalidation barrier - 🖱️ Drag robustness (#232): fast releases (browsers merge/lose pointermove bursts) commit the last known dragged position instead of rolling back;
pointercancel/ lost-capture interruptions keep the drag result too; the center column is re-measured right after commit (no mid-frame bottom-panel width jump); HMR re-activation re-locates the center column via an<html>style observer plus a retry when the bottom panel opens (fixes the blank bottom panel / shifted input bar after a hot reload)
v0.13.1
✨ New features
- 📊 Safe Mermaid rendering in the Markdown preview (#164): when a previewed md file contains mermaid fences, a
client-mermaid.jschunk (~7MB) is served on demand (zero load without mermaid); defense-in-depth rendering —securityLevel: 'strict'+htmlLabels: false(node labels use real SVG<text>) + a second sanitize pass before SVG injection (foreignObject/script/foreign HTML elements removed,@*/on*/hrefattributes stripped); click a diagram to zoom in a modal overlay (wheel zoom centered on the cursor, drag pan, toolbar & shortcuts), re-renders with light/dark theme, falls back to the raw code block on parse failure - 🖥️ Configurable terminal shell & shellArgs (#125):
cordis.patch.ymlbetter-sidebar.configcan setshell/shellArgs(a non-emptyshellArgsfully replaces the defaults; unset keeps the previous auto-resolution of$SHELL/ login shell /powershell.exe), applied to both UI terminals and agent terminals (terminal_create); terminal tab titles now show the shell name (bash/zsh/powershell) and internal tab ids use UUIDs so the same shell can open multiple terminals
🐛 Fixes
- 🔗 Aggregate double-mount auto-yield (#200): when an aggregate package (e.g. dsh-web-ui-all) mounts the same package under its own entry id, the guard expression in
cordis.patch.ymldisables the plugin's ownbetter-sidebarrow so/sidebar/apiis no longer registered twice (duplicate prefix routecrashing the whole plugin tree /dsh web); standalone installs behave as before - 🔧 Adapted to DSH 0.1.0-rc.7 (#207, fixes #206): fixes the
agent-presets: refusing to compose an unscoped contexterror when picking a model / sending a message after DSH moved to rc.7
v0.13.0
✨ New features
- 📁 Files window merged with the explorer (#151): new
editorExplorersetting (editor card gear) — file tabs gain a path-input header plus a toggleable right-docked file tree (per-tab open/width memory, drag-resize 160–480px from the left edge, global filename search via the hostfs.searchroute with a hard budget, skipping.gitand symlink dirs); in separate mode (default) tree clicks / Enter in the path input open each file in its own new tab, merged mode switches the current tab in place; fresh sessions seed an empty Files window instead of the explorer tab, and a path-less window is a bare file manager in separate mode / a chrome'd empty file window in merged mode; the tree context menu offers "Open in new tab" and "Open to the side" (split) - 🎛️ Select rows for declarative settings (#151): settings rows gain
type: 'select'(optionswith value/title/desc/icon,multistores the picked values as an array); options with icons render big-icon option cards and keep the icon in the closed anchor;editorExplorerbecame an iconed select (merged vs separate); the capability list gainedsettingSelect - 🔀 Mutual exclusion with the dsh-web-ui family right panel (#181): reads the
aionui-panelsettings namespace's provider choice — when "Use aionui-panel" is selected, the whole better-sidebar (right sidebar / bottom panel / floating entry / all takeovers) does not mount; with DSH-better-sidebar (or no aionui installed) it behaves as before. Takes effect live after a settings save (settings-document push), no reload needed
v0.12.3
✨ New features
- 🎨 Skin compatibility (token-driven): fully consumes DSH design tokens and follows the dsh-web-ui skin center's 10 skins automatically; terminal/editor surfaces fall back to opaque backgrounds under transparent/translucent-glass token values so text never scrolls over the skin art (#110, fixes #106 #105 #90 #60, also #52 #57 #92)
- 🗂️ Unified path handling: UNC / symlink classification (directory symlinks expandable, broken links highlighted) + HTML-route platform guards (#134, #65 #67 #43 #79 #115)
- 🖥️ Configurable terminal shell: custom shell setting with Windows pwsh auto-probe (#95)
- 📝 Editor languages: C# / Kotlin / Swift syntax highlighting (#120)
- 🧭 Settings nav icon: settings-page navigation icon and layout polish (#114)
- ➕ Recommended-plugin catalog: added
dsh-git-remotes— Git Remotes tab (branches/upstream/ahead-behind, fetch with prune, ff-only pull, confirm-before-push; does not replace the built-in stage/commit tab) (#91); anddsh-video-preview— inline video preview (.mp4/.webm/.mov/.mkv/.avi etc.) backed by a /video host route with HTTP Range (206) scrubbing, not capped by the 20MB mediaLimit (#126)
🐛 Fixes
- 🔧 xterm migration: deprecated xterm dependency migrated to
@xterm/xterm(Closes #122, #128) - 📝 Markdown editor: selection-to-conversation popup restored (#24)
- 🖼️ Markdown preview renders local/relative images: image destinations that point at local files (relative/absolute paths, reference-style
[id]: url) are rewritten to/sidebar/filemedia URLs and displayed in the preview (previously only absolute http(s) images rendered; relative paths showed just the alt text) - 🐛 node-pty load failure no longer crashes the server (#140): the host half now lazy-loads node-pty — when it is missing the plugin still mounts, the terminal shows a repair banner (copyable command + Retry button), and agent terminal tools are skipped
- 🧪 Test engineering: unit spec split (#141) + flaky smoke cleanup fix