升级与修复
最省事的一体化升级
Section titled “最省事的一体化升级”uc up它依次执行官方 opencode upgrade、更新 UltraCode 到稳定 Release,并幂等应用配置。只有用户显式执行该命令时才会升级 OpenCode。
继续使用官方入口
Section titled “继续使用官方入口”官方 TUI /update、CLI 和安装脚本不受 UltraCode 影响:
opencode upgradecurl -fsSL https://opencode.ai/v2/install | bash完成后执行:
uc sync这会补回缺失文件、合并新增配置并修复私有运行时,不需要输入冗长命令。
只更新 UltraCode
Section titled “只更新 UltraCode”uc update该命令不升级 OpenCode。
uc doctoropencode --versiondoctor 只检查结构、版本、文件和运行时,不调用模型。
当前支持 OpenCode V2.3.x,并对更新的 V2 版本执行结构检查。新大版本或插件接口变化需要新的兼容适配与 Release,不能承诺未发布版本天然兼容。
- 必要时通过官方入口恢复 OpenCode 版本。
- 固定 UltraCode Release 后重新执行安装器或
uc sync。 - 仍有问题时执行
uc uninstall --yes。 - 最后才按时间戳恢复备份,避免覆盖新修改。