Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(md-ux): default openMarkdownPreview to ON (follow-up to #496)
enesa7e49dcba81a
diff --git a/src/core/settings-store.test.ts b/src/core/settings-store.test.tsindex 1c3ad2f93..9ef6eafcf 100644--- a/src/core/settings-store.test.ts+++ b/src/core/settings-store.test.ts@@ -60,6 +60,26 @@ describe('SettingsStore nested-default merge', () => {expect(store.get().ptyShadowClients).toBe(false)})+ it('turns markdown auto-preview ON for a settings.json that predates the key', () => {+ // Every pre-v0.3.3 install upgrades with no `openMarkdownPreview` in its file: the shallow+ // merge is what delivers the flipped default (#495) to exactly that population.+ writeFileSync(path.join(dir, 'settings.json'), JSON.stringify({ fontSize: 15 }), 'utf-8')+ const store = new SettingsStore()+ store.init()+ expect(store.get().openMarkdownPreview).toBe(true)+ })++ it('keeps an explicit openMarkdownPreview:false — an opt-out survives the default flip', () => {+ writeFileSync(+ path.join(dir, 'settings.json'),+ JSON.stringify({ openMarkdownPreview: false }),+ 'utf-8'+ )+ const store = new SettingsStore()+ store.init()+ expect(store.get().openMarkdownPreview).toBe(false)+ })+it('leaves an already-modern speech object alone', () => {writeFileSync(path.join(dir, 'settings.json'),diff --git a/src/shared/types.ts b/src/shared/types.tsindex 6bb5b61d0..91d9a21bc 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -1214,7 +1214,13 @@ export interface Settings {doubleClickFocus: boolean/** Open Markdown files (.md, .markdown, …) in rendered preview instead of the code editor.* Only picks the view an editor node OPENS in — the node's Preview/Edit toggle (and the- * markdown-toggle chord) still switches either way. Default off: the historical behavior. */+ * markdown-toggle chord) still switches either way. Default ON since the release after+ * v0.3.3 (maintainer decision on issue #495; docs open as docs). An absent key picks up the+ * new default via the shallow merge; an explicit `false` is respected. Caveat, same shape as+ * `terminalGpuRendering`'s boolean history: `saveNow` materializes EVERY key, so a file+ * saved by v0.3.3 itself (the one release that defaulted off) carries `false`+ * indistinguishable from a user's explicit off — those installs keep off, which is the safe+ * direction (never overwrite what may be an explicit choice). */openMarkdownPreview: boolean/*** Let a MIDDLE CLICK inside a terminal paste (Linux in practice — macOS and Windows have no@@ -1494,7 +1500,7 @@ export const DEFAULT_SETTINGS: Settings = {worktreePathTemplate: DEFAULT_WORKTREE_PATH_TEMPLATE,panHoverDelay: 600,doubleClickFocus: true,- openMarkdownPreview: false,+ openMarkdownPreview: true,terminalMiddleClickPaste: false,wheelZoom: false,trackpadPan: true,