feat(apes-sidebar): Phase 2 — badge 计数 + auto-collapse(visible 门控暂停)
- apes:tasks badge = running 会话数;apes:agents badge = subagent 数 (纯 (ctx)=>number|null 函数,0→null 隐藏,host 封顶 99+) - useSessionList 接受 visible:非活动 tab 切 no-op subscribe, 停止 live session-list churn 重渲染隐藏面板(better-sidebar 'live views pause otherwise' 契约 = auto-collapse) - tests/tabs.spec.ts:新增 5 个 badge 契约测试(6→11),mock sessions feed 直测 badge 纯函数 - AGENTS.md:Phase 2 标 partial(per-tab state / scratch 冒烟 / apps·messages·profile feed 延后,better-sidebar 0.18.0 无相应 API/数据源) 门禁:typecheck rc=0 · build rc=0(client.js 15.74→20K)· test 25/25
This commit is contained in:
1 parent
e4dcd1118e
commit
856d744139
3 files changed
+141
-10
No files matched your search
@@ -132,6 +132,10 @@ cordis.patch.yml # plugin registration into the DSH profile
|
||||
graceful degrade when `betterSidebar` is absent. Unit smoke: `tests/tabs.spec.ts`
|
||||
(6 tests). The cordis scratch mount smoke (real DSH host process) is deferred
|
||||
to Phase 2 — it needs a live host and is outside the unit gate.
|
||||
- **Phase 2 (later)**: badge/reminder counts, auto-collapse, per-tab state,
|
||||
the cordis scratch mount smoke (live DSH host), and wiring `apps` /
|
||||
`messages` / `profile` to real host feeds (currently placeholders).
|
||||
- **Phase 2 (partial)**: badge counts + auto-collapse (visible-gated
|
||||
subscription pause) landed for `apes:tasks` / `apes:agents`. Per-tab state,
|
||||
the cordis scratch mount smoke, and wiring `apps` / `messages` / `profile`
|
||||
to real feeds are **deferred** — better-sidebar 0.18.0 exposes no
|
||||
meta-write API for plugin tab state, no workspace-apps / message-stream /
|
||||
model-provider host feeds for those three panels, and no local `dsh` CLI to
|
||||
drive a live scratch mount. See docs/ for the deferral rationale.
|
||||
Reference in new issue
Block a user