Repository navigation
Releases
v1.1.0
新增
- 项目行显示状态点:取旗下会话里最值得注意的那一个(待操作 > 运行中 > 已完成未读),固定在行尾、新建会话按钮之前。归档会话不参与汇总;全部空闲时不显示。宿主在项目层级不聚合状态,这是本插件补的能力。
- 项目会话行显示状态标记:与最近会话区同源同判定,同一个会话在两个列表里不再有两个说法。归档行与空白行行尾留空,与宿主一致。
修复
- 项目列表不再显示子代理会话:此前注释假设子代理会话不进
sessionIds,该假设不成立——子代理继承父会话cwd且标origin: 'subagent',工作区 bootstrap 按cwd归组时不看 origin。现与宿主sessionVisible一致地过滤。 - 项目列表注意力水位判据对齐宿主:运行中 / 待操作 / 已完成未读的会话不再被「显示更多」挡住。
文档
- 更正 ADR-0005 中「插件侧不用按 origin 过滤」这条已被证伪的结论。
- 同步 GLOSSARY、PRD、设计说明与中英使用指南。
说明
- 无破坏性变更:无新增依赖、宿主兼容范围不变、
localStorage键不变,回退 #38 即可恢复旧行为。 - 与宿主的一处已知差异仍然保留:注意力判据不含
runningSubagentCount(需要子代理投影,属 PRD 非目标)。
v1.0.0
一句话
一次完整重写:源码迁移到 TypeScript,浮层结构对齐宿主原生,新增分页与定时任务标记,并开始支持 Windows Desktop。
主要变化
会话列表分页 — 默认 10 条,「显示更多」每次 +10,全部显示后按钮消失。运行中、待操作、未读完成的会话会自动突破分页显示。
浮层结构对齐宿主 — 去掉分区独立滚动和 1/3 限高,改为整块一个滚动容器,与宿主侧栏一致。浮层标题与分区标题的层级重新设计(原先分区标题比条目还小)。
定时任务标记 — 被活跃定时任务使用的会话,行上显示时钟图标。
空会话规则 — 空白会话只保留当前那一个,其余隐藏;不删除真实数据。
支持 Windows Desktop — 不再只限 macOS。按宿主折叠列的实际宽度决定是否接管,macOS 与 Windows 均验证通过。
移除设置项 — 浮层的「最近会话条数」步进器和插件详情页设置块已删除,分页取代了固定条数。
修复
取数中切换浮层导致列表永久加载、Escape 回焦重开、窗口失焦仍唤出、多屏右缘误唤出、标题过长既不滚动也无省略号、npm install 报 ERESOLVE。
兼容性
需要 DSH Desktop ≥ 0.2.2-rc.1。运行时依赖为零。macOS 与 Windows Desktop 已验证。
破坏性变更:plugins.bundle.config 不再注册、recentCount 偏好不再读取。旧存储里的该字段会被忽略,不报错。
已知问题
- 添加项目的系统目录选择器标题为英文(宿主硬编码,插件层无法覆盖)
- 默认收起的分区需点两次才展开
安装
npm install @skylerfee/dsh-sidebar-rail@1.0.00.3.3
0.3.3
本版只改描述文案:把 GitHub、npm 与 DSH 插件列表里展示的说明改成中英双语、更通俗的表达,并修正一处与实际行为不符的旧描述。无功能变化。
A description-only release: the text shown on GitHub, npm and the DSH plugin list is now bilingual and written in plain language, and one description that contradicted the actual behaviour has been corrected. No functional changes.
中文
文档与说明
- 描述改为中英双语、更易懂:GitHub 仓库描述原本是纯英文技术表达(
Additive icon rail、56px rail with hover flyouts),普通用户不容易看懂。现在中文在前、英文在后,内容改为用户能直接感知的收益:侧栏收起后依然能切换项目、查看最近会话、管理定时任务和插件,鼠标靠近窗口左缘即滑出图标轨。 - npm 页面描述同步:
package.json的description改为同一套双语表达,安装前在 npm 上看到的就是这句话。 - DSH 插件列表描述同步:
locale/zh.json与locale/en.json的展示文案一并更新。
修正
- 移除与实际行为不符的描述:两份 locale 原本写「常驻 56px 图标轨」/「persistent 56px rail」,但自 0.3.0 起轨道默认隐藏,指针靠近窗口左缘或键盘聚焦时才滑出(见 AGENTS.md 硬约束 4 与
client.js的translateX(-100%))。现在改为如实描述「滑出、移开即收起」。
升级说明
无破坏性变更,无配置项变化,无需迁移。localStorage 中已有的 pinnedWorkspaceIds 与 recentCount 原样沿用。
English
Documentation
- Descriptions rewritten in plain bilingual language: the GitHub repository description used technical shorthand (
Additive icon rail,56px rail with hover flyouts) that general readers do not parse easily. Chinese now comes first with English after it, and the content states the benefit directly: after the sidebar is collapsed you can still switch projects, browse recent sessions, manage scheduled tasks and plugins, and hovering the window's left edge reveals the rail. - npm page description aligned: the
package.jsondescriptionnow carries the same bilingual wording, so the text seen on npm before installing matches. - DSH plugin list aligned: the display strings in
locale/zh.jsonandlocale/en.jsonwere updated to match.
Fixed
- Removed a description that contradicted the implementation: both locale files described a "persistent 56px rail", but since 0.3.0 the rail is hidden by default and only slides out when the pointer approaches the left edge or the rail receives keyboard focus (see AGENTS.md hard rule 4 and
translateX(-100%)inclient.js). The text now describes the reveal-and-retract behaviour accurately.
Upgrade notes
No breaking changes, no configuration changes, no migration needed. Existing pinnedWorkspaceIds and recentCount values in localStorage are used as-is.
Verification
npm run check— 4 repository rules, both entry points parse, 35 tests pass, 37 i18n keys aligned (zh/en).- Package contents confirmed at 13 files, including the updated
locale/*.json. - The
localemetakeys were checked to be aligned between zh and en. - Not verified: how the new description renders inside the DSH plugin list (requires an app restart so the locale files are re-read).
0.3.2
0.3.2
本版修正工作区浮层的尺寸行为:浮层改为定高,项目区与最近会话区各占一半,两区标题行固定、之间有明确分隔线。调整最近会话条数不再改变浮层高度。
This release fixes the workspace flyout's sizing: the panel now keeps a fixed height, splits evenly into a projects pane and a recent-sessions pane, each with a pinned header row and a clear divider between them. Changing the recent-session count no longer resizes the panel.
中文
修复
- 工作区浮层高度随条数变化:此前浮层高度跟随内容,把「最近会话条数」从 5 调到 15,整个浮层会被撑高,跨过窗口中线。现在按视口比例定高(约
0.7 × innerHeight),并以窗口剩余空间钳制;条数只决定最近会话是否需要滚动。 - 两区大小不一致:项目区与最近会话区此前没有明确的尺寸约定,列表长短直接影响另一区。现在两区各占一半可用高度(实测 314.5 px / 351.0 px ≈ 0.90 : 1)。
- 标题行会随列表滚走:滚动列表时区域标题一起滚出视野,失去分组上下文。现在每个区域的标题行固定在顶部,只有列表本身滚动。
- 两区之间缺少视觉分隔:现在用宿主
--dsw-alias-border-l1在「最近会话」上方画出 1px 分隔线。
说明
- 分栏交给 CSS flex(两个 pane 各
flex:1 1 0)而不是 JS 常数:真实的首行标题与步进器高度只有布局知道,常数估算会偏。曾按视口 0.38 比例实现,实测偏成 0.76:1,已弃用。 - 任务、插件、账号三个浮层保持内容自适应 —— 它们的列表短,固定高度会留下一大片空白。
- 最近会话为空时显示「还没有最近会话」空态,不再只剩一个空标题。
升级说明
无破坏性变更,无配置项变化。localStorage 中已有的 pinnedWorkspaceIds 与 recentCount 原样沿用。
English
Fixed
- The workspace flyout grew with its content: raising Recent count from 5 to 15 stretched the whole panel well past the window's midline. The panel now takes a fixed share of the viewport (about
0.7 × innerHeight), clamped to the space actually available, so the count only decides whether the recent list scrolls. - The two panes had no agreed size: a long project list or a long recent list could push the other around. They now split the available height evenly (measured 314.5 px / 351.0 px ≈ 0.90 : 1).
- Headers scrolled away with their lists: the section heading left the viewport as soon as the list moved, losing the grouping context. Each pane now keeps its header pinned while only the list scrolls.
- No visual separation between the panes: a 1px divider using the host
--dsw-alias-border-l1now sits above Recent sessions.
Notes
- The split is done by CSS flex (both panes at
flex:1 1 0), not by arithmetic in JS: only layout knows the real head and stepper heights, and a constant estimate drifts. An earlier attempt sized the recent pane at 0.38 of the viewport and measured out at 0.76:1; it has been removed. - Tasks, plugins and account flyouts stay content-sized — their lists are short, and a fixed tall panel would be mostly empty space.
- An empty recent list now shows "No recent sessions yet" instead of a bare heading.
Upgrade notes
No breaking changes and no configuration changes. Existing pinnedWorkspaceIds and recentCount values in localStorage are used as-is.
Verification
npm run check— 4 repository rules, both entry points parse, 35 tests pass, 37 i18n keys aligned (zh/en).- Real Desktop (macOS, collapsed sidebar, 982px logical viewport): panel holds 666 px while the count moves 6 → 15; the two panes measure 314.5 / 351.0 px; headers stay put while lists scroll; divider sits at logical y ≈ 405.5.
- Not verified: the feel on a short window where the available budget is below
0.7 × viewport(clamping is unit-tested only); the empty-projects and empty-recent states were not screenshotted individually.
0.3.1
0.3.1
本版包含最近会话条数设置、会话状态标识与账号余额展示;并修复了发布前复核中发现的一处未接线功能、一处跨入口数据丢失与一处金额格式化进位缺陷。
This release adds a recent-session count setting, session status marks and account balances, and fixes one unwired feature, a cross-entry data loss and a negative-balance rounding defect found during pre-release review.
中文
新增
- 最近会话条数设置:默认 5 条,可调 1–20;工作区浮层底部的步进器与插件详情页共享同一偏好,两处即时同步并持久化到
localStorage['dsh.sidebar-rail.v1'].recentCount。最近会话改为独立滚动区域(上限38vh),工作区列表再长也不会把它挤没。 - 会话状态标识:最近会话行按宿主
sessionStatuses同优先级显示状态点(等待你的操作 → 运行中 → 完成未读 → 空闲),视觉复刻宿主StateDot(运行中为 14px 旋转环,其余为 6px 实心点)。只把approval/plan-review/question视为待处理,与宿主visiblePendingKind一致。 - 账号浮层余额:只读展示宿主提供的头像、主余额、赠金与「查询用量 / 充值」链接;余额格式化与宿主
formatBalance对齐(正数截断、负数进位、支持指数记法、零保留)。 - 设置入口路径说明:账号浮层补一行「设置:展开侧栏后点左下角「设置」」。宿主未向第三方 Client 模块暴露打开设置的 API,故按路径说明实现。
- README 增补安装、设置、账号、键盘与故障排查说明,并加入三张真机截图;补
powered_by_dsh徽章与中文 PR 模板。
修复
- 会话状态标识原本完全没有接线(P0):
sessionStatusOf定义完整、单测全绿,但全仓库零调用点,行对象没有status字段,组件永不渲染——功能实际不存在而测试显示通过。现已接入deriveSections,并新增断言生产路径输出的回归测试。 - 最近会话条数跨入口不同步且会丢数据(P1):两个入口各自持有状态且只在挂载时读一次,实测「详情页设 8 → 浮层仍显示 6 → 在浮层加一后持久值被覆盖成 7」。现已改为共享存储,两处订阅同一快照。
- 负数余额进位溢出到分位以上(P1):
-0.999曾显示为-¥0.100、-99.999曾显示为-¥99.100;宿主Big语义应为-¥1.00/-¥100.00。已补整元进位并新增 28 条对照用例。 - 未登录时丢失用量/充值链接(P1):账号读取的三条早退分支未携带
links,而未登录账号同样应看到这两个入口。 - 账号读取缺少超时(P1):整段读取现在与
REMOTE_TIMEOUT_MS竞速,超时落到明确失败态并记录日志,符合项目硬约束「可选的 Host 调用必须有超时与失败态」。 - 文档与实现对齐:轨默认隐藏(12px 热区唤出)、
recentCount存储键、账号只读约定、PR 语言规范。
升级说明
无破坏性变更。recentCount 是新增偏好,旧版本数据(仅含 pinnedWorkspaceIds)可直接读取;写入使用合并语义,不会清掉已有置顶。折叠状态仍由宿主持有,插件只读。
English
Added
- Recent-session count setting: 5 by default, adjustable 1–20. The stepper at the foot of the workspace flyout and the plugin detail page share one preference, stay in sync and persist to
localStorage['dsh.sidebar-rail.v1'].recentCount. Recent sessions now live in their own scroll area (capped at38vh), so a long workspace list can no longer bury them. - Session status marks: recent rows show a status mark with the host
sessionStatusesprecedence (waiting for you → running → finished-unread → idle), drawn to match the hostStateDot(a 14px spinning ring while running, a 6px solid dot otherwise). Onlyapproval/plan-review/questioncount as pending, matching the hostvisiblePendingKind. - Account balance in the flyout: read-only avatar, primary balance, bonus wallets and the View usage / Top up links the host provides; formatting mirrors the host
formatBalance(positives truncated, negatives carried, exponent notation accepted, zero preserved). - Settings path in the account flyout: a line noting that Settings lives at the sidebar foot once expanded. The host exposes no public "open settings" API to a third-party client module, so the path is spelled out instead.
- README gains install, settings, account, keyboard and troubleshooting guidance plus three real screenshots, the
powered_by_dshbadge and a Chinese PR template.
Fixed
- Session status marks were never wired up (P0):
sessionStatusOfexisted with green unit tests but had zero call sites, rows carried nostatusfield and the component never rendered — the feature did not exist while tests passed. It is now wired intoderiveSections, with a regression test asserting the production output. - The recent-session count did not sync across entries and could lose data (P1): each entry held its own state and read it once at mount; setting 8 on the detail page left the flyout showing 6, and pressing "+" there persisted 7. Both entries now subscribe to one shared snapshot.
- Negative balances carried into phantom decimals (P1):
-0.999rendered as-¥0.100and-99.999as-¥99.100; the hostBigsemantics are-¥1.00/-¥100.00. Whole-unit carry added, with 28 comparison cases. - Usage and top-up links disappeared when signed out (P1): three early-return paths dropped
links, though the host returns them regardless of sign-in state. - Account reads had no timeout (P1): the read now races
REMOTE_TIMEOUT_MSand lands in an explicit failure state with a log line, honoring the project rule that optional Host calls need a timeout and a failure state. - Documentation aligned with the implementation: hidden-by-default rail with a 12px hot zone, the
recentCountstorage key, the read-only account contract and PR language rules.
Upgrade notes
No breaking changes. recentCount is a new preference; data written by earlier versions (only pinnedWorkspaceIds) is read as-is, and writes merge rather than replace, so existing pins survive. Collapse state remains host-owned and read-only here.
Verification
npm run check— 4 repository rules, both entry points parse, 33 tests pass, 36 i18n keys aligned (zh/en).- Real Desktop (macOS, host
0.2.2-rc.1, collapsed sidebar): status ring appears on a running session row; count changes propagate both ways between the flyout and the detail page; account flyout shows balance, bonus, links and avatar. - Currency formatting matched against the host
Bigsemantics on 28 cases. - Not verified: the spinning-animation feel of the running ring; a real account holding a non-empty primary wallet; sign-in-state changes while the plugin stays mounted; running-subagent status (
runningSubagentCount > 0), which needssubagentCatalogthis row projection does not carry.
0.3.0
The rail hides until you reach for it
The collapsed rail no longer sits on screen. It slides out of the window and appears when the pointer reaches the left edge (12px strip) or on keyboard focus. A persistent 56px rail covered the conversation's first tab — the host gives the tab row no leading clearance while the column is collapsed — so the only way to keep that tab usable was to stop covering it. This is a deliberate reversal of the earlier "always visible" contract; AGENTS.md now forbids restoring it.
Fixes from the 0.2.0 desktop audit
- Flyouts retry after switching to another flyout and back (they used to sit on "loading" forever).
- Structured failures are not empty lists: a
{ ok: false, error }frame or an absent optional service now shows a failure line with "open panel" instead of pretending there is no data. - Placement respects the window: the panel budgets the height actually left below its anchor, so the recent-session foot is no longer clipped on a short window.
- Keyboard entry: Down/Right on a rail icon moves focus into its flyout, Escape returns focus to the icon. Tabbing the rail no longer swaps the list out from under you.
- Row states paint: hover, focus-visible and current-session backgrounds work again on rows without a pin button.
- Choosing an entry retracts the rail in the same interaction.
- No oscillation: closing a flyout and retracting the rail are separate acts now, so hovering across the icon column no longer makes the rail slide in and out.
Published to npm over OIDC trusted publishing.
0.2.0
Collapsed rail refinements
Session reveal fixed — clicking a recent session opens that session. openSession takes a bare SessionId; the previous code passed an object, which the host read as "no session named", cleared the main view and released the previous session, so the click fell back to the New Session hero.
Workspace flyout — rows show the workspace name only; the path subtitle made every row two lines tall.
Plugins flyout — lists the bundles you installed and enabled, with no host plugins. This needs pluginManager.listBundles because only a bundle carries official and availability, which is how the host separates its own base bundles from yours.
Account seat — shows your real avatar, read through the boot graph's client version (a hand-written static module has no process), and falls back to the host's own signed-out ellipsis rather than an invented monogram. The account flyout now anchors to the seat instead of floating far above it.
Published to npm over OIDC trusted publishing.