@chatcode/cco-better-sidebar 0.18.0-alpha.4 → 0.18.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +30 -9
  2. package/README_EN.md +30 -9
  3. package/cordis.patch.yml +6 -5
  4. package/lib/client-editor.js +10954 -395
  5. package/lib/client-mermaid.js +10835 -300
  6. package/lib/client-registry.js +4035 -2215
  7. package/lib/client-terminal.js +435 -292
  8. package/lib/client.js +4035 -2215
  9. package/lib/index.js +282 -47
  10. package/lib/types/client/LogoutConfirmDialog.d.ts +5 -0
  11. package/lib/types/client/PluginMarketSettingsSection.d.ts +7 -0
  12. package/lib/types/client/PluginMarketView.d.ts +7 -0
  13. package/lib/types/client/PluginProjectPicker.d.ts +13 -0
  14. package/lib/types/client/api.d.ts +21 -0
  15. package/lib/types/client/builtins/tabs.d.ts +13 -1
  16. package/lib/types/client/icons.d.ts +26 -8
  17. package/lib/types/client/locales-ja.d.ts +25 -0
  18. package/lib/types/client/locales.d.ts +39 -0
  19. package/lib/types/client/plugin-market-catalog.d.ts +25 -0
  20. package/lib/types/client/service.d.ts +1 -1
  21. package/lib/types/client/ui-tweaks/archive.d.ts +9 -28
  22. package/lib/types/client/ui-tweaks/branding.d.ts +1 -1
  23. package/lib/types/client/ui-tweaks/dom-text.d.ts +2 -0
  24. package/lib/types/client/ui-tweaks/index.d.ts +9 -1
  25. package/lib/types/client/ui-tweaks/sidebar-header.d.ts +6 -0
  26. package/lib/types/client/ui-tweaks/typography.d.ts +9 -0
  27. package/lib/types/config.d.ts +4 -3
  28. package/lib/types/context-types.d.ts +12 -14
  29. package/lib/types/login-page-script.d.ts +2 -0
  30. package/lib/types/login-route.d.ts +2 -0
  31. package/lib/types/plugin-market-api.d.ts +5 -0
  32. package/lib/types/plugin-market-shared.d.ts +59 -0
  33. package/lib/types/prefs-shared.d.ts +1 -1
  34. package/lib/types/pty-deps.d.ts +1 -1
  35. package/lib/types/ui-tweaks/config.d.ts +6 -7
  36. package/lib/types/ui-tweaks/index.d.ts +2 -3
  37. package/package.json +2 -2
  38. package/src/client/AccountMenu.tsx +12 -2
  39. package/src/client/BrowserView.tsx +1 -1
  40. package/src/client/DiffTab.tsx +1 -1
  41. package/src/client/EditorHost.tsx +1 -1
  42. package/src/client/FileTree.tsx +10 -5
  43. package/src/client/FreeWindow.tsx +2 -1
  44. package/src/client/GitView.tsx +7 -3
  45. package/src/client/LogoutConfirmDialog.tsx +39 -0
  46. package/src/client/PluginMarketSettingsSection.tsx +55 -0
  47. package/src/client/PluginMarketView.module.css +50 -0
  48. package/src/client/PluginMarketView.tsx +243 -0
  49. package/src/client/PluginProjectPicker.tsx +73 -0
  50. package/src/client/SideCardSection.tsx +2 -23
  51. package/src/client/Sidebar.tsx +2 -2
  52. package/src/client/TabBar.tsx +2 -4
  53. package/src/client/TextEditor.tsx +2 -1
  54. package/src/client/TreePanel.tsx +1 -2
  55. package/src/client/UsageHeatmapSection.tsx +1 -1
  56. package/src/client/api.ts +12 -0
  57. package/src/client/builtins/tabs.tsx +25 -5
  58. package/src/client/builtins/viewers.tsx +2 -1
  59. package/src/client/icons.tsx +57 -4
  60. package/src/client/index.tsx +10 -1
  61. package/src/client/intercept.tsx +1 -1
  62. package/src/client/locales-ja.ts +65 -0
  63. package/src/client/locales.ts +118 -1
  64. package/src/client/md-toc.tsx +1 -1
  65. package/src/client/mermaid.tsx +2 -1
  66. package/src/client/open-with-settings.tsx +1 -1
  67. package/src/client/plugin-market-catalog.ts +90 -0
  68. package/src/client/service.ts +1 -1
  69. package/src/client/sidebar.module.css +81 -19
  70. package/src/client/ui-tweaks/archive.tsx +118 -140
  71. package/src/client/ui-tweaks/branding.tsx +117 -49
  72. package/src/client/ui-tweaks/cachehit.tsx +24 -14
  73. package/src/client/ui-tweaks/dom-text.ts +12 -0
  74. package/src/client/ui-tweaks/index.tsx +75 -103
  75. package/src/client/ui-tweaks/sidebar-header.ts +73 -0
  76. package/src/client/ui-tweaks/typography.ts +38 -0
  77. package/src/config.ts +22 -2
  78. package/src/context-types.ts +5 -15
  79. package/src/index.ts +28 -21
  80. package/src/login-page-script.ts +107 -0
  81. package/src/login-route.ts +7 -4
  82. package/src/plugin-market-api.ts +88 -0
  83. package/src/plugin-market-shared.ts +30 -0
  84. package/src/prefs-shared.ts +1 -1
  85. package/src/pty-deps.ts +2 -2
  86. package/src/ui-tweaks/config.ts +12 -12
  87. package/src/ui-tweaks/index.ts +7 -13
package/README.md CHANGED
@@ -25,6 +25,18 @@
25
25
  <video src="https://github.com/user-attachments/assets/23187822-047e-45cc-b480-fe997bd55b86" muted autoplay loop playsinline controls width="100%"></video>
26
26
  </div>
27
27
 
28
+ 品牌适配仅作用于产品标识与版本声明;输入框草稿、粘贴内容、会话正文和代码保留原文。文字扫描限于品牌区域,内容相同时不重复写入;适配完成后停止自触发刷新。
29
+
30
+ `0.18.0-rc.7` 重整左侧导航顶部:24px 品牌标识、紧凑标题与折叠按钮,以及左对齐的轻量「新会话」入口;快捷键提示保持可见。移除该入口的红色渐变与阴影,浅色、深色主题均跟随宿主令牌;原生按钮、快捷键、窗口拖拽和折叠功能保持不变。
31
+
32
+ `0.18.0-rc.8` 增强「新会话」的辨识度:淡红底、红色描边与图标、14px 加粗文字,悬停和按下时加深底色。保持紧凑布局与无阴影设计,深色模式使用同一套主题令牌派生配色。
33
+
34
+ `0.18.0-rc.9` 将「新会话」改为高对比石墨色主按钮,使用细微冷色渐变与清晰的悬停、焦点状态,不再使用错误状态红色。左侧原生「插件」菜单暂时通过 `sidebar-header.ts` 中独立标注的 CSS 块隐藏,删除该块即可恢复;插件加载、设置和其他入口不变。
35
+
36
+ `0.18.0-rc.10` 按反馈恢复「新会话」最初的品牌红色底与白色图标、文字,保留紧凑布局、快捷键和交互状态。登录恢复逻辑与「插件」菜单临时隐藏保持不变。
37
+
38
+ `0.18.0-rc.12` 修复正文含「发送」时,思考/工具摘要与回答选项被误涂成深红色的问题。摘要恢复宿主配色,回答选项仅在悬停、选中时使用 5%–10% 的浅红提示;文字、键盘焦点与选择交互不变。「新会话」保留现有红色主按钮样式。
39
+
28
40
  ## 📑 目录
29
41
 
30
42
  - [✨ 功能一览](#-功能一览)
@@ -50,7 +62,7 @@
50
62
  - **📌 固定终端**:右键终端 Tab 可「固定到工作区 / 固定到全局」——固定后切换会话不消失,在 TabBar 内联呈现(跨会话虚拟 Tab,点击就地激活,PTY 按 home 会话 id+tab 直连宿主 PTY,无需切回宿主会话);Agent 终端被 reconcile 移除时豁免保留
51
63
  - **🔁 会话隔离**:布局 / Tab / 面板按会话持久化,陈旧状态自动净化
52
64
  - **⚙️ 声明式设置**:设置页「侧边卡片」逐项独立开关,二级设置经齿轮弹窗
53
- - **🎛️ 界面调整(已合并 dsh-ui-tweaks)**:消息/代码字号与行距、Claude 风格表格、GitBar、归档与 MCP 管理、`/init`、鲸鱼工作指示、任务通知和精确缓存命中率均由本插件直接提供;继续使用原 `ui-tweaks` 设置命名空间,无需迁移配置
65
+ - **🎛️ 界面调整(已合并 dsh-ui-tweaks)**:消息/代码字号与行距、Claude 风格表格、GitBar、归档与 MCP 管理、`/init`、鲸鱼工作指示、任务通知和精确缓存命中率均由本插件直接提供;在 DSH 0.1.7 中与侧边卡片设置一起由 `better-sidebar` 配置表单实时管理。默认正文 14px、代码 13px,与主界面一致;消息与表格共用字号和行高,标题只增加少量字号;字体设置保留粗体、斜体及主题字体,并同步输入框的文字尺寸;归档管理支持逐项勾选、全选、取消选择和删除所选,保留恢复、单条删除与全部删除,均调用 Web/CLI 共用的宿主接口;永久删除先确认所选会话与含子代理的记录总数,默认取消,部分失败时只保留失败项重试,不直接删除日志文件。
54
66
  - **⚡ 按需加载**:启动只拉 ~325KB 核心,终端 / 编辑器 / Mermaid 图表等重依赖用到才按需拉取([设计文档](docs/plans/2026-08-12-lazy-chunks-design.md))
55
67
  - **🌏 多语言**:界面文案跟随 ChatCode CLI 语言(zh / en)实时切换;安装 `@huanlin/dsh-plugin-better-locale` 后支持日语(ja)等第三语言覆盖(见下方「🌏 第三语言覆盖」)
56
68
  - **🆕 版本更新日志**:升级后首次打开 Web 端时展示后台配置的当前版本 Markdown 更新内容;跨多个版本升级也只展示当前版本的一条日志
@@ -74,7 +86,7 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest #
74
86
 
75
87
  装完**硬刷新浏览器**(Cmd/Ctrl+Shift+R)即可看到侧边栏(ChatCode CLI 对 client 改动热加载,无需重启;仅 host 半更新时需要重启)。
76
88
 
77
- > 从独立 `dsh-ui-tweaks` 迁移时,请先从 profile 的 bundle/patch 中移除旧插件挂载,只保留 `dsh-better-sidebar`。两者同时挂载会重复注册 `ui-tweaks` 命名空间和 `/_dsh/ui-tweaks/*` 路由;原有 `settings.yaml` 配置会由合并后的插件原样继续读取。
89
+ > 从独立 `dsh-ui-tweaks` 迁移时,请先从 profile 的 bundle/patch 中移除旧插件挂载,只保留 `dsh-better-sidebar`。两者同时挂载会重复注册 `/_dsh/ui-tweaks/*` 路由;DSH 0.1.7 的旧设置导入器会把原 `dsh-better-sidebar` 与 `ui-tweaks` 分区合并进 `better-sidebar` 配置条目。
78
90
 
79
91
  **方式二:让 ChatCode CLI 自己装**——把下面这段提示词发给任意一个 ChatCode CLI 会话:
80
92
 
@@ -107,9 +119,10 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest
107
119
  | 报 `minimum release age` / 版本不足 24h | 装的版本发布不足 24 小时。等 24h 或重跑一次(pnpm 会自动补 `minimumReleaseAgeExclude`)。 |
108
120
  | 报「找不到 profile 目录」 | 先跑一次 `chatcode-cli web`,让它初始化 `~/.chatcode-cli/profiles/web`。 |
109
121
  | 页面出现**两个侧边栏** | 双挂载。旧的手动挂载行:`~/.chatcode-cli/profiles/web/cordis.patch.yml` 还留着 `- insert: ... better-sidebar ...`,删掉那段(同 id 重复挂载 loader 会直接报 `duplicate loader entry id`)。聚合包(如 `@linxin666/dsh-web-ui-all`)以**不同 id** 挂载本包时,0.13.x 起插件自身 bundle patch 会自动退让(检测到已有启用中的同包名挂载就不挂自己),无需手动处理;若仍双挂载,先确认聚合包的 bundle 顺序在 `dsh-better-sidebar` 之前。 |
110
- | 启动时报 `ui-tweaks` 设置或 `/_dsh/ui-tweaks` 路由重复 | profile 中仍挂载着独立的 `dsh-ui-tweaks`。移除该旧插件行/旧 bundle,只保留 `dsh-better-sidebar`;不要删除 `settings.yaml` 中的 `ui-tweaks:` 配置。 |
122
+ | 启动时报 `/_dsh/ui-tweaks` 路由重复 | profile 中仍挂载着独立的 `dsh-ui-tweaks`。移除该旧插件行/旧 bundle,只保留 `dsh-better-sidebar`;升级 DSH 0.1.7 时旧设置会导入 `better-sidebar` 配置条目。 |
123
+ | macOS 报 `posix_spawnp failed` / Windows 打开终端卡住 | `0.18.0-rc.3` 起与主程序固定使用 `node-pty@1.2.0-beta.15`:Mac 安装包携带可执行的 `spawn-helper`,普通用户无需修改 root 安装文件;Windows 在 ConPTY 输出线程就绪后再连接。更新侧边栏依赖并重启 Web 服务。 |
111
124
  | Windows 下终端无法使用 | `node-pty` 依赖预编译二进制;若当前 Node 版本没有对应产物,需装编译工具链(VS Build Tools)。主流 Node 版本一般已有预编译。 |
112
- | 终端提示「node-pty 加载失败」 | `node-pty` 安装缺失/损坏(如 pnpm 拦截了构建脚本)。终端横幅会给出修复命令:复制到 ChatCode CLI 所在环境的终端/cmd 执行(在 `~/.chatcode-cli/profiles/web` 下 `pnpm approve-builds --all && pnpm rebuild node-pty`),完成后重启 ChatCode CLI 并点重试。插件与 ChatCode CLI 核心使用同一 `node-pty@^1.1.0`,修复后两者同步恢复。 |
125
+ | 终端提示「node-pty 加载失败」 | `node-pty` 安装缺失/损坏(如 pnpm 拦截了构建脚本)。终端横幅会给出修复命令:复制到 ChatCode CLI 所在环境的终端/cmd 执行(在 `~/.chatcode-cli/profiles/web` 下 `pnpm approve-builds --all && pnpm rebuild node-pty`),完成后重启 ChatCode CLI 并点重试。插件与 ChatCode CLI 核心使用同一 `node-pty@1.2.0-beta.15`,修复后两者同步恢复。 |
113
126
  | 提示 `chatcode-cli: command not found` | 先安装 ChatCode CLI;或直接用 `npx -y --package @chatcode/chatcode-cli chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest`。旧 `dsh` 命令仅作为隐藏兼容别名。 |
114
127
 
115
128
  </details>
@@ -120,8 +133,8 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest
120
133
  调试本地改动或跟随开发分支时,把依赖指向本地克隆并自行构建:
121
134
 
122
135
  ```text
123
- 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/DSH-better-sidebar
124
- cd ~/Code/DSH-better-sidebar && pnpm install && pnpm build
136
+ 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/cco-better-sidebar
137
+ cd ~/Code/cco-better-sidebar && pnpm install && pnpm build
125
138
  2. ~/.chatcode-cli/profiles/web/package.json 的 dependencies 写 "@chatcode/cco-better-sidebar": "link:<克隆目录绝对路径>"
126
139
  3. ~/.chatcode-cli/profiles/web/cordis.patch.yml 追加挂载行(需要指定终端 shell 时,在行内加 `config.shell`;`config.shellArgs` 可带参启动,非空时替换默认的 `-l`。不填则自动解析 `$SHELL` / 登录 shell / powershell.exe):
127
140
  - insert:
@@ -138,7 +151,7 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest
138
151
 
139
152
  更新:`git pull && pnpm install && pnpm build` → 硬刷新浏览器即可(client 改动热加载生效,无需重启 ChatCode CLI;host 半改动才需重启)。切回 npm 通道时,把依赖改回 `"@chatcode/cco-better-sidebar": "^0.16.1"` 再 `pnpm install`。
140
153
 
141
- CodingPlan 模型目录默认从 `http://localhost:8080/api/cli/v1/model-runtime-configs` 预加载;如服务部署在其他地址,在同一插件行中配置 `codingPlan.baseUrl`。模型会显示在「设置 → 侧边卡片」的内嵌 CodingPlan 区块,连接信息与 API Key 不会显示或下发到浏览器:
154
+ CodingPlan 模型目录默认从 `http://localhost:8080/api/cli/v1/model-runtime-configs` 预加载;如服务部署在其他地址,在同一插件行中配置 `codingPlan.baseUrl`。「设置 → 侧边卡片」不展示 CodingPlan 模型配置区块;后台目录接口与已保存的模型选项保留,连接信息与 API Key 不会显示或下发到浏览器:
142
155
 
143
156
  ```yaml
144
157
  config:
@@ -154,7 +167,7 @@ config:
154
167
  前置:ChatCode CLI 已集成 [plugin-registry](https://github.com/dsh-external/plugin-registry)(`chatcode-cli registry` 可用)。**同时启用两个通道会双挂载**(Node 半挂两次、页面两个侧边栏)。
155
168
 
156
169
  ```sh
157
- git clone https://github.com/omdsh-dev/DSH-better-sidebar.git && cd DSH-better-sidebar
170
+ git clone https://github.com/omdsh-dev/DSH-better-sidebar.git cco-better-sidebar && cd cco-better-sidebar
158
171
  pnpm install && pnpm build
159
172
  node scripts/package-registry.mjs # 组装 registry/ 暂存(含清单 + 产物 + README,不入库)
160
173
  chatcode-cli registry install ./registry # 安装(默认禁用)
@@ -551,4 +564,12 @@ Windows / Linux / macOS 三平台适配(macOS 日常验证;其余经单元
551
564
 
552
565
  ## ChatCode 账号入口
553
566
 
554
- 从当前主库源码执行 `pnpm cco web` 时,启动包装器会自动叠加本侧栏和 `dsh-llm-chatcode-config`,无需向 `web` profile 安装。未登录时显示全屏门禁;登录后左下角账号菜单提供状态与退出。令牌由配置插件通过兼容凭据服务管理,Web 只展示账号和操作结果。浏览器未自动打开时可使用备用链接。两端共享条件及操作步骤见相邻配置插件仓库的 [使用手册](../dsh-llm-chatcode-config/docs/chatcode-login.zh.md)。
567
+ 未登录时,每次进入登录页面都会重新发起一次登录并尝试打开登录网页;浏览器拦截自动弹窗时,页面始终显示可点击、可复制的登录链接。若登录网页被关闭,点击「重新打开登录页」即可在原请求仍有效时复用链接;请求失效后可重新发起,按钮不会一直禁用,也无需删除凭据文件。已有账号仅在校验成功后进入工作台,网络故障不会清除凭据。
568
+
569
+ `0.18.0-rc.6` 起,点击「退出登录」会先弹出确认窗口,默认聚焦「取消」;取消或按 Esc 保留登录状态,确认后才执行原有退出操作。
570
+
571
+ `0.18.0-rc.5` 起,左下角账号入口与弹出菜单使用更紧凑的布局:用户名和菜单文字为 13px,头像为 24px,底部入口高度为 44px;设置、登录与退出操作保持不变。
572
+
573
+ 设置 →「插件市场」已替换为内部市场,也可从侧栏「+」菜单进入。先展示内部市场及默认 ChatCode 官方市场,点击市场后以「技能市场」同款卡片展示插件;项目级、用户级安装或卸载按钮直接位于卡片内。顶部显示当前项目目录,可通过“选择项目目录”更换目标。点击项目级安装仅弹窗显示插件名和完整目标目录,确认后开始安装;取消后可重新切换目录,未选择目录时提示先选择;安装期间显示带旋转图标的进度提示,完成或失败后自动恢复操作;取消不会安装,没有会话时也可选择目录。页面显示完整安装路径;用户级安装无需选目录。市场列表在 Web 启动时加载一次,插件目录首次进入时加载并缓存;返回、切换标签或重开设置不会重复请求,有更新时点击「刷新」。本机安装记录与 CLI `/plugins` 共用并自动同步。需要启用新版 config 插件,配置及加载能力见 [插件市场说明](../cco-llm-chatcode-config/docs/plugin-market.zh.md)。
574
+
575
+ 从当前主库源码执行 `pnpm cco web` 时,启动包装器会自动叠加本侧栏和 `cco-llm-chatcode-config`,无需向 `web` profile 安装。未登录时显示全屏门禁;登录后左下角账号菜单提供状态与退出。令牌由配置插件通过兼容凭据服务管理,Web 只展示账号和操作结果。浏览器未自动打开时可使用备用链接。两端共享条件及操作步骤见相邻配置插件仓库的 [使用手册](../cco-llm-chatcode-config/docs/chatcode-login.zh.md)。
package/README_EN.md CHANGED
@@ -25,6 +25,18 @@
25
25
  <img alt="dsh-better-sidebar workbench" src="https://github.com/user-attachments/assets/dfdb875e-a1a8-4d4b-8340-353736b1708f" />
26
26
  </div>
27
27
 
28
+ Brand adaptation applies to product identity and version notices; composer drafts, pasted content, conversation text, and code retain their original text. Text scans stay within brand regions and skip unchanged content, so adaptation stops triggering its own observer once settled.
29
+
30
+ `0.18.0-rc.7` refreshes the top-left navigation: a 24px brand mark, compact wordmark and collapse control, and a left-aligned, lightweight **New session** action with its shortcut kept visible. The action no longer has a red gradient or shadow; both light and dark palettes follow host tokens. Native buttons, shortcuts, window dragging and collapse behavior are unchanged.
31
+
32
+ `0.18.0-rc.8` makes **New session** easier to find with a pale red fill, red border and icon, bold 14px text, and stronger hover/pressed fills. The layout stays compact and shadow-free; dark-mode colors derive from the same host theme tokens.
33
+
34
+ `0.18.0-rc.9` replaces the error-red treatment with a high-contrast graphite primary action, a subtle cool gradient and distinct hover/focus states. An isolated, commented CSS block in `sidebar-header.ts` temporarily hides only the native sidebar **Plugins** entry; remove that block to restore it. Plugin loading, Settings and other entry points are unchanged.
35
+
36
+ `0.18.0-rc.10` restores the original brand-red **New session** fill with white text and icon, keeping the compact layout, shortcut and interaction states. Login recovery and the temporary sidebar **Plugins** hide are unchanged.
37
+
38
+ `0.18.0-rc.12` fixes reasoning/tool summaries and answer choices incorrectly receiving a solid red background when their text mentions sending. Summaries retain host colors; answer choices use only a 5%–10% red tint on hover or selection. Text, keyboard focus, selection behavior and the existing red **New session** button are unchanged.
39
+
28
40
  ## 📑 Contents
29
41
 
30
42
  - [✨ Features](#-features)
@@ -50,7 +62,7 @@
50
62
  - **📌 Pinned Terminals**: right-click a terminal tab to "Pin to Workspace / Pin Globally" — pinned terminals survive session switches and surface inline in the TabBar as virtual tabs (click activates in-place, PTY connects directly to the home session's PTY via WS, no session jump needed); agent terminals exempted from reconcile removal
51
63
  - **🔁 Session Isolation**: layout / tabs / panels persisted per session, stale state auto-purged
52
64
  - **⚙️ Declarative Settings**: per-item toggles in the "Side Cards" settings section, secondary settings via the gear dialog
53
- - **🎛️ UI Tweaks (dsh-ui-tweaks merged)**: message/code sizing and spacing, Claude-style tables, GitBar, archive and MCP managers, `/init`, whale activity indicator, task notifications, and precise cache-hit percentages now ship in this plugin; the existing `ui-tweaks` settings namespace is retained without migration
65
+ - **🎛️ UI Tweaks (dsh-ui-tweaks merged)**: message/code sizing and spacing, Claude-style tables, GitBar, archive and MCP managers, `/init`, whale activity indicator, task notifications, and precise cache-hit percentages now ship in this plugin; on DSH 0.1.7 they are live fields in the shared `better-sidebar` entry form. Defaults match the host: 14px prose and 13px code. Messages and tables share size and leading, headings add only a small size increment, and font settings retain emphasis, italics and live theme families while keeping the composer in step; archive management supports individual selection, select all, clear selection and delete selected alongside restoration, single deletion and delete all, using the shared Web/CLI Host operations. Permanent deletion confirms the selected sessions and full subagent record count with Cancel focused; partial failures retain only failed items for retry, without deleting log files directly.
54
66
  - **⚡ On-demand Loading**: only ~325KB core at startup; heavy deps (terminal / editor / mermaid diagrams) load on demand ([design](docs/plans/2026-08-12-lazy-chunks-design.md))
55
67
  - **🌏 i18n**: UI text follows ChatCode CLI's language (zh / en) with live switching; with the optional `@huanlin/dsh-plugin-better-locale` peer, 19 third-language overlays (ja / de / fr / …) are available
56
68
  - **🆕 Release notes**: on the first Web launch after an upgrade, shows the backend-configured Markdown note for the current version only; skipped versions are never merged
@@ -74,7 +86,7 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest # re
74
86
 
75
87
  Then **hard-refresh the browser** (Cmd/Ctrl+Shift+R) to see the sidebar (ChatCode CLI hot-reloads client changes; only host-half updates need a restart).
76
88
 
77
- > When migrating from the standalone `dsh-ui-tweaks`, remove its old bundle/patch mount and keep only `dsh-better-sidebar`. Mounting both duplicates the `ui-tweaks` namespace and `/_dsh/ui-tweaks/*` routes. Existing `settings.yaml` values continue to be read unchanged by the merged plugin.
89
+ > When migrating from the standalone `dsh-ui-tweaks`, remove its old bundle/patch mount and keep only `dsh-better-sidebar`. Mounting both duplicates the `/_dsh/ui-tweaks/*` routes. DSH 0.1.7's legacy-settings importer merges the old `dsh-better-sidebar` and `ui-tweaks` sections into the `better-sidebar` entry.
78
90
 
79
91
  **Or let ChatCode CLI install it for you** — paste this prompt into any ChatCode CLI session:
80
92
 
@@ -107,9 +119,10 @@ or bump the version in `~/.chatcode-cli/profiles/web/package.json` (e.g. `"^0.16
107
119
  | `minimum release age` / version `< 24h` | The release is younger than 24 hours. Wait, or re-run once (pnpm auto-adds `minimumReleaseAgeExclude`). |
108
120
  | "profile directory not found" | Run `chatcode-cli web` once so it initializes `~/.chatcode-cli/profiles/web`. |
109
121
  | Two sidebars on the page | Double-mount. Old hand-written line: `~/.chatcode-cli/profiles/web/cordis.patch.yml` still has `- insert: ... better-sidebar ...` — delete it (a same-id duplicate mount makes the loader fail loudly with `duplicate loader entry id`). When an aggregate bundle (e.g. `@linxin666/dsh-web-ui-all`) mounts this package under a **different** id, the plugin's own bundle patch backs off automatically since 0.13.x (it detects an already-enabled mount of the same package name and does not mount itself) — no manual fix needed; if it still double-mounts, make sure the aggregate bundle precedes `dsh-better-sidebar` in `dsh.profile.bundles`. |
110
- | Duplicate `ui-tweaks` settings or `/_dsh/ui-tweaks` route at startup | The profile still mounts the standalone `dsh-ui-tweaks`. Remove that old plugin row/bundle and keep `dsh-better-sidebar`; retain the `ui-tweaks:` section in `settings.yaml`. |
122
+ | Duplicate `/_dsh/ui-tweaks` route at startup | The profile still mounts the standalone `dsh-ui-tweaks`. Remove that old plugin row/bundle and keep `dsh-better-sidebar`; on a DSH 0.1.7 upgrade the legacy settings are imported into the `better-sidebar` entry. |
123
+ | macOS reports `posix_spawnp failed` / Windows terminal hangs on opening | From `0.18.0-rc.3`, the sidebar pins the core's `node-pty@1.2.0-beta.15`: the Mac package ships an executable `spawn-helper`, so normal users need not modify root-owned installation files; Windows waits for the ConPTY output worker before connecting. Update the sidebar dependency and restart the Web server. |
111
124
  | Terminal fails on Windows | `node-pty` relies on prebuilt binaries; if none match your Node version, install a build toolchain (VS Build Tools). Mainstream Node versions are usually covered. |
112
- | Terminal shows "node-pty failed to load" | The `node-pty` install is missing or broken (e.g. pnpm skipped its build script). The terminal banner shows a repair command — copy it into a terminal/cmd on the ChatCode CLI machine and run it (in `~/.chatcode-cli/profiles/web`: `pnpm approve-builds --all && pnpm rebuild node-pty`), then restart ChatCode CLI and click Retry. The plugin and ChatCode CLI core share the same `node-pty@^1.1.0`, so the repair restores both. |
125
+ | Terminal shows "node-pty failed to load" | The `node-pty` install is missing or broken (e.g. pnpm skipped its build script). The terminal banner shows a repair command — copy it into a terminal/cmd on the ChatCode CLI machine and run it (in `~/.chatcode-cli/profiles/web`: `pnpm approve-builds --all && pnpm rebuild node-pty`), then restart ChatCode CLI and click Retry. The plugin and ChatCode CLI core share the same `node-pty@1.2.0-beta.15`, so the repair restores both. |
113
126
  | `chatcode-cli: command not found` | Install ChatCode CLI first, or run `npx -y --package @chatcode/chatcode-cli chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest`. The old `dsh` command remains a hidden compatibility alias. |
114
127
 
115
128
  </details>
@@ -120,8 +133,8 @@ or bump the version in `~/.chatcode-cli/profiles/web/package.json` (e.g. `"^0.16
120
133
  To debug local changes or track the dev branch, point the dependency at a local clone and build it yourself:
121
134
 
122
135
  ```text
123
- 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/DSH-better-sidebar
124
- cd ~/Code/DSH-better-sidebar && pnpm install && pnpm build
136
+ 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/cco-better-sidebar
137
+ cd ~/Code/cco-better-sidebar && pnpm install && pnpm build
125
138
  2. In ~/.chatcode-cli/profiles/web/package.json dependencies write "@chatcode/cco-better-sidebar": "link:<absolute path of the clone>"
126
139
  3. Append this mount line to ~/.chatcode-cli/profiles/web/cordis.patch.yml (to pick the terminal shell, add `config.shell`; `config.shellArgs` starts it with explicit args — when non-empty they replace the default `-l`. When omitted the host resolves `$SHELL` / the login shell / powershell.exe):
127
140
  - insert:
@@ -138,7 +151,7 @@ To debug local changes or track the dev branch, point the dependency at a local
138
151
 
139
152
  Update: `git pull && pnpm install && pnpm build` → just hard-refresh the browser (client changes hot-reload; only host-half changes need a ChatCode CLI restart). To switch back to the npm channel, restore `"@chatcode/cco-better-sidebar": "^0.16.1"` and re-run `pnpm install`.
140
153
 
141
- The CodingPlan catalogue is preloaded from `http://localhost:8080/api/cli/v1/model-runtime-configs` by default. To use another service origin, configure `codingPlan.baseUrl` on the same plugin row. The models appear in the embedded CodingPlan section under **Settings → Side card**; connection details and API keys are never displayed or sent to the browser:
154
+ The CodingPlan catalogue is preloaded from `http://localhost:8080/api/cli/v1/model-runtime-configs` by default. To use another service origin, configure `codingPlan.baseUrl` on the same plugin row. **Settings → Side card** does not display a CodingPlan model configuration group; the host catalogue routes and saved model options remain available. Connection details and API keys are never displayed or sent to the browser:
142
155
 
143
156
  ```yaml
144
157
  config:
@@ -154,7 +167,7 @@ config:
154
167
  Prerequisite: ChatCode CLI with [plugin-registry](https://github.com/dsh-external/plugin-registry) integrated (`chatcode-cli registry` available). **Enabling both channels double-mounts** (the Node half loads twice, the page gets two sidebars).
155
168
 
156
169
  ```sh
157
- git clone https://github.com/omdsh-dev/DSH-better-sidebar.git && cd DSH-better-sidebar
170
+ git clone https://github.com/omdsh-dev/DSH-better-sidebar.git cco-better-sidebar && cd cco-better-sidebar
158
171
  pnpm install && pnpm build
159
172
  node scripts/package-registry.mjs # assemble the registry/ staging (manifest + artifacts + README, not committed)
160
173
  chatcode-cli registry install ./registry # install (disabled by default)
@@ -560,4 +573,12 @@ Thanks to everyone who contributed:
560
573
 
561
574
  ## ChatCode account menu
562
575
 
563
- When `pnpm cco web` runs from the current ChatCode CLI checkout, its source wrapper applies this sidebar and `dsh-llm-chatcode-config` automatically, with no Web-profile installation. Signed-out users see a full-page gate; after sign-in, the bottom-left menu shows status and sign-out. The configuration plugin manages tokens through the compatible credential service, and Web displays only account metadata and outcomes. A fallback link is provided if the browser blocks the popup. See the sibling configuration repository’s [guide](../dsh-llm-chatcode-config/docs/chatcode-login.md).
576
+ Each signed-out visit starts one fresh login and attempts to open its page automatically. A visible, copyable link remains available if the browser blocks the popup. **Reopen sign-in page** reuses the current request while it is valid; an expired request can be restarted without deleting credentials. The button never remains permanently disabled. Only a verified account enters the workbench, and network failures retain the stored grant.
577
+
578
+ From `0.18.0-rc.6`, **Log out** opens a confirmation dialog with **Cancel** focused by default. Cancel or Escape preserves the session; confirming runs the existing logout operation.
579
+
580
+ From `0.18.0-rc.5`, the bottom-left account control and its popup use a more compact layout: 13px names and menu text, 24px avatars, and a 44px-high trigger. Settings, sign-in and sign-out behavior is unchanged.
581
+
582
+ **Settings → Plugin marketplace** opens the internal catalog, also available from the sidebar's **+** menu. Browse internal marketplaces and the default official ChatCode marketplace first, then open one to see plugin cards styled like the Skill marketplace. Each card has project/user install and uninstall buttons. The current project directory is shown at the top; use **Choose project directory** to change it. Project installation opens a confirmation dialog with the plugin name and full target path, then installs only after confirmation. Cancel to choose another directory; if none is selected, the page prompts you to choose one first; a spinner and progress message remain visible until installation and local status sync finish, with controls restored on success or failure; cancelling installs nothing, and no conversation is required. Full installation paths are shown. User installation needs no directory selection. The marketplace list loads once at Web startup; plugin catalogs load on first access and remain cached across navigation, tab switches and reopening Settings. Click **Refresh** to fetch updates. Local installed records sync automatically with CLI `/plugins`. See the [marketplace guide](../cco-llm-chatcode-config/docs/plugin-market.md) for configuration and supported assets.
583
+
584
+ When `pnpm cco web` runs from the current ChatCode CLI checkout, its source wrapper applies this sidebar and `cco-llm-chatcode-config` automatically, with no Web-profile installation. Signed-out users see a full-page gate; after sign-in, the bottom-left menu shows status and sign-out. The configuration plugin manages tokens through the compatible credential service, and Web displays only account metadata and outcomes. A fallback link is provided if the browser blocks the popup. See the sibling configuration repository’s [guide](../cco-llm-chatcode-config/docs/chatcode-login.md).
package/cordis.patch.yml CHANGED
@@ -11,11 +11,12 @@
11
11
  # plugin row) exactly like the manual cordis.patch.yml mount line used
12
12
  # before. No profile file edits needed — one command installs and mounts.
13
13
  #
14
- # This package now embeds dsh-ui-tweaks while deliberately retaining its
15
- # `ui-tweaks` settings namespace and `/_dsh/ui-tweaks/*` routes. Remove any
16
- # standalone `dsh-ui-tweaks` row/bundle before mounting this package; keeping
17
- # both would register the same settings namespace and routes twice. Existing
18
- # settings.yaml values do not need migration.
14
+ # This package now embeds dsh-ui-tweaks. On DSH 0.1.7 its live fields belong to
15
+ # the `better-sidebar` Loader entry form, while the established
16
+ # `/_dsh/ui-tweaks/*` routes remain unchanged. Remove any standalone
17
+ # `dsh-ui-tweaks` row/bundle before mounting this package; keeping both would
18
+ # still register the same routes twice. The DSH legacy-settings importer maps
19
+ # the old `dsh-better-sidebar` and `ui-tweaks` sections into this entry.
19
20
  #
20
21
  # If the profile still carries the old manual mount line in its own
21
22
  # cordis.patch.yml, remove it before switching to the bundle channel to