claude-code-best/docs
IronRookieCoder 3a463313ea fix(plugin): make marketplace auto-update configurable by default
## Bug 详情
/plugin marketplace 中的 Enable/Disable auto-update 会继承 CLI binary auto-updater 的禁用状态。在 CSC 默认关闭 CLI auto-updater 的场景下,plugin marketplace 的自动更新配置入口不可见,用户无法按 marketplace 配置 autoUpdate。

## 根因
shouldSkipPluginAutoupdate() 复用了 isAutoUpdaterDisabled(),导致 ENABLE_AUTOUPDATER、/config channel、development build、nonessential traffic 等 CLI updater 门禁同时影响 plugin marketplace 自动更新。

## 修复方案
将 plugin marketplace auto-update 门禁收敛为 DISABLE_AUTOUPDATER 和 FORCE_AUTOUPDATE_PLUGINS:默认不跳过 plugin auto-update;DISABLE_AUTOUPDATER 显式关闭;FORCE_AUTOUPDATE_PLUGINS 可覆盖关闭状态。

## 变更要点
- 调整 shouldSkipPluginAutoupdate(),使 plugin auto-update 独立于 CLI binary updater 配置
- 新增 plugin autoupdate 门禁单元测试
- 补充 plugin auto-update 机制文档,记录 UI、配置优先级和环境变量行为

## 自测
- bun test src/utils/__tests__/pluginAutoupdateConfig.test.ts
- bun test src/utils/settings/__tests__/config.test.ts
- bun run typecheck 仍失败,失败项为仓库既有 Zod 类型、缺声明和依赖类型问题,非本次变更引入
2026-05-16 16:58:20 +08:00
..
agent docs: expand sub-agent architecture guide 2026-05-06 17:26:49 +08:00
context docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
conversation docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
design chore: 合并社区 upstream/main 代码至 v2.4.2 2026-05-12 11:55:04 +08:00
diagrams feat: 重构供应商层次 (#286) 2026-04-17 09:33:14 +08:00
extensibility docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
features fix(plugin): make marketplace auto-update configurable by default 2026-05-16 16:58:20 +08:00
images docs: 更新文档, 加上配图 2026-04-01 11:14:20 +08:00
internals fixup: address CodeRabbit review on PR #386 2026-04-29 15:17:50 +08:00
introduction docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
logo docs: 尝试修复 docs 的位置 2026-04-01 10:09:00 +08:00
safety docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
serve feat(server/question): adapt question API to opencode-compatible format 2026-05-09 17:52:43 +08:00
task docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
test-plans Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
testing feat: 注册所有新命令到命令系统和工具注册表 2026-05-09 23:04:39 +08:00
tools fix: 内存优化 — FileReadTool 100KB 上限、lookups 缓存、microcompact 替换清理 2026-05-02 11:21:22 +08:00
auto-updater.md merge: sync upstream/main while preserving local brand/config 2026-04-29 09:06:20 +08:00
config-list.md feat(rawDump): add raw dump reporting module with local mode and deduplication 2026-05-13 23:49:20 +08:00
external-dependencies.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
favicon.svg docs: 尝试修复 docs 的位置 2026-04-01 10:09:00 +08:00
lsp-integration.md Fix mintlify validate errors (#367) 2026-04-26 11:07:20 +08:00
memory-leak-audit.md feature: 20260429 代码巡检 (#383) 2026-04-29 09:14:26 +08:00
memory-peak-analysis.md docs: 压缩内存分析报告(720→120 行,保留全部可操作信息) 2026-05-02 20:37:14 +08:00
telemetry-remote-config-audit.md feat: 关闭 Datadog 日志发送 2026-04-03 09:49:59 +08:00
user-guide.md feat(rawDump): add raw dump reporting module with local mode and deduplication 2026-05-13 23:49:20 +08:00