Skip to content

v1.4.1:clangd 项目根修复 + 快速模型变体

发布日期:2026年4月9日


🎯 一句话总结

修复 clangd 把 CMakeLists.txt 当项目根的问题,新增 Claude 和 GPT 快速模式变体,Bash 中断后保留输出。


🆕 新功能:快速模式变体

这次更新了什么?

为支持的 Claude 和 GPT 模型添加了「fast」(快速)模式变体。

这有什么用?

快速模式使用更轻量的模型版本,响应速度更快,适合简单的代码补全、小修改等不需要深度推理的场景,同时也更省 Token。


🆕 改进:Bash 中断保留输出

这次更新了什么?

手动中断 Bash 命令时(Ctrl+C),命令的已有输出和截断信息会被保留,不再显示为「已中止」。

这有什么用?

之前中断一个长时间运行的命令后,已经生成的输出就丢失了。现在中断后能看到命令执行到哪了、输出了什么。


🔧 问题修复

clangd 项目根识别

问题:在 C/C++ 工作区中,clangd 会错误地将 CMakeLists.txtMakefile 识别为项目根目录,导致 LSP 功能不正常。

修复:移除了 CMakeLists.txtMakefile 作为 clangd 的根目录标记。

对你有什么影响:C/C++ 项目的代码补全和跳转更准确。


GitLab Duo 工具审批

问题:GitLab Duo Workflow 的工具调用会自动执行,没有权限确认。

修复:现在会弹出权限确认提示。


Desktop 终端连接

问题:在同源的 Desktop 和 Web 应用配置中,终端连接可能失败。

修复:跳过同源配置的 URL 密码设置。


📊 要不要升级?

情况建议
C/C++ 开发者✅ 强烈推荐
想要更快的响应速度✅ 推荐
使用 GitLab Duo✅ 推荐
正常使用中可以等下次

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Fix clangd choosing CMakeLists.txt or Makefile as the project root in C and C++ workspaces. (@nonbanana)
  • Add permission prompts for GitLab Duo Workflow tool calls instead of auto-running them. (@vglafirov)
  • Hide unsupported variants for Big Pickle models.

TUI

  • Show an OpenCode Go subscribe prompt when free usage limits are reached.
  • Simplify provider labels in the model and provider pickers.

Desktop

  • Fix terminal connections in same-origin desktop and web app setups. (@OpeOginni)
  • Fix session review and change lists when diff data arrives in inconsistent shapes.

SDK

  • Fix the generated SDK and OpenAPI types for /providers and session shell responses.

Thank you to 3 community contributors:

  • @OpeOginni: fix(app): skip url password setting for same-origin server and web app (#19923)
  • @vglafirov: feat(llm): integrate GitLab DWS tool approval with permission system (#19955)
  • @nonbanana: fix(lsp): remove CMakeLists.txt and Makefile from clangd root markers (#21466)

← 返回更新日志