github boogoo619/dsh-focus-overlay v0.13.0

one hour ago

新增功能 · New features

  • 适配 DSH 桌面版 0.2.2-rc.1(macOS / Windows):专注遮罩按官方窗口框架变量为 macOS 红绿灯(68px)与 Windows 原生标题栏(60px)预留顶部空间,顶部空白条即可拖动窗口;原生全屏(macOS 绿灯 / Windows 最大化)自动降为 20px;普通 Web 浏览器回退 0px,与旧版逐像素一致。
    Adapted to the DSH desktop app 0.2.2-rc.1 (macOS and Windows share the Electron renderer): the overlay reserves the official frame clearance for the macOS traffic lights (68px) and the Windows native titlebar (60px), that top band drags the window, and native fullscreen drops it to 20px; a plain web browser keeps the old pixel-identical 0px fallback.
  • Windows 标题栏层避让:专注时隐藏被官方提升到固定 z-30 标题栏层的「侧边栏开关」与折叠侧栏时的「新建会话」按钮(它们会浮在专注层之上、误触会在阅读时切换会话),退出专注后随窗口 chrome 一起恢复。
    On Windows, the official sidebar toggle and the collapsed-sidebar new-session control — both promoted into a fixed z-30 titlebar layer above shell.overlay — are hidden while focus is on and restored on exit.

修复 · Bug fixes

  • dsh 0.2.2 桌面版移除 projectUserText:专注遮罩渲染用户消息时会抛 TypeError(React #130 同类故障);改为运行时按可用性解析 projectUserText → UserTextRun → 纯文本,一个 bundle 兼容 0.1.2–0.2.2。
    dsh 0.2.2 removed projectUserText from the client primitives, crashing the overlay on user rows; the projection is now resolved at runtime (projectUserText → UserTextRun → raw text) so one bundle serves 0.1.2 through 0.2.2.
  • 恢复 AI 回复内文件引用 chip:0.2.x 的官方 chatFileMentions 需要真实 Turn face(turn.data.get('deliverables')),旧 owner 形状被静默吞掉;现在从 Chat 快照 timeline.turns 解析(仅闭合轮次,0.1.x 保留旧形状),点击仍走官方 dsh-resource://file/… 地址打开。
    Restored inline file-mention chips on 0.2.x: the official provider needs the real Turn face; the owner is now resolved from the chat snapshot's timeline.turns (closed turns only, legacy shape for 0.1.x) and opens through the official dsh-resource://file/… address.
  • 「已排队 N」徽章:0.2.x 会话快照不再带 queue,改读官方输入机 state.queue(保留旧快照读取作为回退)。
    The queued-send badge now reads the official input facade's state.queue (old snapshot read kept as fallback).
  • 兼容性声明补充 0.2.2-rc.1;README 增加桌面版安装、窗口框架与文件 chip 说明。
    Declared 0.2.2-rc.1 compatibility and documented desktop install, window chrome and file-mention chips.

测试 · Tests

  • 新增桌面框架 e2e:tests/e2e/desktop-frame.mjs + tests/e2e/lib/desktop-sim.mjs,7 个场景(plain / macOS / macOS 全屏 / Windows / Windows 全屏 / Windows 折叠侧栏 1280 / 窄窗 520)、99 条断言全绿,含「z≥20 元素不得绘制在遮罩之上」泄漏守卫(移除隐藏规则会立刻变红);header-toggle / input-caret 也支持隔离的 0.2.2 实例。
    New desktop-frame e2e (7 scenarios, 99 assertions) including a z-index leak guard; the header-toggle and input-caret loops also accept an isolated 0.2.2 instance.
  • 单测 129 全绿(新增 fileMentionOwnerOf 用例)。
    129 unit tests green (new fileMentionOwnerOf cases).

Full Changelog: v0.12.4...v0.13.0

Don't miss a new dsh-focus-overlay release

NewReleases is sending notifications on new releases.