v1.3.7:PowerShell 支持 + 插件配置保留注释
发布日期:2026年3月30日
🎯 一句话总结
Windows PowerShell 获得一等支持,安装插件时配置文件中的注释不再丢失,变体对话框交互更自然。
🆕 新功能:PowerShell 一等支持
这次更新了什么?
Windows 上的 PowerShell 现在被作为一等 Shell 环境支持。
这有什么用?
之前在 Windows 上主要支持 cmd,PowerShell 用户可能遇到命令执行不一致的问题。现在 PowerShell 的命令处理逻辑与 Bash、cmd 同等对待,Windows 用户的体验更好。
🆕 新功能:插件安装保留 JSONC 注释
这次更新了什么?
安装插件时,配置文件(如 opencode.json)中的 JSONC 注释(// 注释)不再被删除。
这有什么用?
之前安装插件会重写配置文件,导致你手动添加的注释全部丢失。现在注释会被保留,你的配置文档和说明不会白写。
🔧 问题修复
CLAUDE.md 环境变量未生效
问题:设置了 OPENCODE_DISABLE_CLAUDE_CODE_PROMPT 环境变量后,项目级 CLAUDE.md 仍然被加载。
修复:环境变量现在对项目级 CLAUDE.md 也生效。
📊 要不要升级?
| 情况 | 建议 |
|---|---|
| Windows PowerShell 用户 | ✅ 强烈推荐 |
| 安装过插件发现注释丢失 | ✅ 推荐 |
| 使用 CLAUDE.md + 环境变量控制 | ✅ 推荐 |
| 正常使用中 | 可以等下次 |
⬆️ 升级命令
bash
opencode upgrade📋 技术细节
点击展开完整更新列表
Core
- Added first-class PowerShell support on Windows
- Plugin installs now preserve JSONC comments in configuration files
- Fixed
OPENCODE_DISABLE_CLAUDE_CODE_PROMPTnot being respected for project-level CLAUDE.md
TUI
- Improved variant modal behavior to be less intrusive
- Added theme colors for dialog textarea placeholders
Thank you to 2 community contributors:
- @KnutZuidema: fix: discourage _noop tool call during LiteLLM compaction (#18539)
- @yejiming: docs: rename patch tool to apply_patch and clarify apply_patch behavior (#19979)

