Skip to content

v1.4.9:LLM Gateway 提供商 + 远程工作区重连

发布日期:2026年4月17日


🎯 一句话总结

新增 LLM Gateway 提供商,远程工作区重连使用指数退避策略,修复了 --session-id 启动后不打开指定会话的问题。


🆕 新功能:LLM Gateway 提供商

这次更新了什么?

新增 LLM Gateway 作为模型提供商,包括配置支持和模型使用统计。

这有什么用?

LLM Gateway 是一个 AI 模型网关服务,可以通过它统一管理多个模型提供商的访问。如果你在企业中使用 LLM Gateway,现在可以直接在 OpenCode 中配置使用。


🆕 改进:远程工作区重连

这次更新了什么?

远程工作区的重连机制改用指数退避策略,失败时有更清晰的错误提示。

这有什么用?

网络波动导致工作区断连后,重连会更智能地尝试(间隔逐渐增加),而不是盲目重复,减少不必要的网络负载。


🔧 问题修复

--session-id 启动后不打开会话

问题:使用 --session-id 参数启动 TUI 后,没有打开指定的会话。

修复:现在正确打开请求的会话。


Ghostty 亮色模式检测

问题:Ghostty 终端的亮色模式检测不正确。

修复:修复了检测逻辑。


📊 要不要升级?

情况建议
使用 LLM Gateway✅ 强烈推荐
使用远程工作区✅ 推荐
使用 --session-id✅ 推荐
正常使用中可以等下次

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Added LLM Gateway as a provider, including config support and model usage reporting. (@smakosh)
  • Limited GitHub Copilot Opus 4.7 models to medium reasoning effort to avoid unsupported variants. (@OpeOginni)
  • Improved remote workspace reconnection with exponential backoff and clearer failure handling.

TUI

  • Fixed --session-id so it opens the requested session after app startup.
  • Fixed light mode detection in Ghostty.

Desktop

  • Fixed the beta desktop app so the file tree still appears when enabled in settings.

Thank you to 3 community contributors:

  • @OpeOginni: fix(opencode): restrict github copilot opus 4.7 variants to "medium" (#23097)
  • @jenperson: docs: adding Mistral to docs as a provider (#23070) (#23072)
  • @smakosh: feat: add LLM Gateway provider (#7847)

← 返回更新日志