You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
The knowledge-base sidebar entry now appears only when the feature is enabled, and the main panel stays registered so saved layouts still load. No concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Reviewing files that changed from the base of the PR and between ea4ac5b and 8495a92.
Files selected for processing: 2
dsh-mneme/lib/client.js
dsh-mneme/test/client.test.js
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么
#685:关掉知识库(
kbEnabled)之后,侧栏还留着「知识库」那一格入口,点进去只有空态。知识库是三个可选功能里唯一把侧栏图标与主座位都无条件注册的,与仓库地志(choro)的「关着就不注册座位」不一致——这正是 2026-11-11 定的口径。这条修反转了 #598 评论区第四节里「入口常驻 + 空态自解释」的那一半。
改了什么(
dsh-mneme/lib/client.js)sidebar.panellist/id: "dsh-mneme-kb")从 panellist 块里的无条件注册移进独立的座位闸:与 choro 同一形态——同一个/api/dsh-mneme/features端点、同样 fail-closed(读不到就不注册,不猜)、同样读到kbEnabled才ctx.slots.register。disposeKbGlyph与它在清理回调里的调用一并删掉:登记现在归座位闸的ctx.effect管,与本回调的成对座位不同源。main/key: "dsh-mneme-kb")仍无条件注册。这是 feat(panel): 记忆库搬进宿主原生面板位(sidebar.panellist + main),老宿主保留回落 #562 那堵墙:布局里存着activePanelId="dsh-mneme-kb"的宿主,少注册 main 会在selectPanel时直接抛。所以「关着就不注册座位」在这里落成「侧栏没有入口、点不进去」,与 wiki 座位同一处理。验证
dsh-mneme/test/client.test.js改两条:原来锁「kb 在 panellist 块里成对注册」的用例改写为锁「图标在闸里、主座位保留」;座位计数 2→1。check-sync✓ 125。kbEnabled判断改成if (false)→ 新用例红;② 往 panellist 块插回一行无条件注册 → 新用例 + 座位计数用例一起红。Ref #685
Summary by CodeRabbit