EN

OpenCode:连接支持图像的提供方后默认启用图像生成

连接了支持图像的提供方时,experimental_image_generate 默认启用。

OpenCode
事件类型
功能更新
版本
v2.2.2
官方发布
本站整理

本次变化

共 5 条要点

  1. 连接了支持图像的提供方时,experimental_image_generate 默认启用;当已连接的提供方支持图像模型时,智能体无需额外配置即可使用 experimental_image_generate。

    官方原文 · c1 c2

    Enabled `experimental_image_generate` by default when an image-capable provider is connected.

    官方原文 · c1

    When a connected provider supports image models, agents can now use `experimental_image_generate` without additional configuration.

    官方原文 · c2
  2. 可通过 experimental.image_generate.model 设置其首选模型。

    官方原文 · c3

    Set its preferred model through `experimental.image_generate.model`.

    官方原文 · c3
  3. 新会话界面上的 Git 分支现在可直接打开当前项目的工作树选择器;时间线引用、终端引用和浏览器批注现在共用一个紧凑的可选评论编辑器,同时来源高亮仍附着在本地草稿上。

    官方原文 · c4 c5

    Made the Git branch on the new-session screen open the current project’s worktree picker directly.

    官方原文 · c4

    Timeline quotes, terminal quotes, and browser annotations now share a compact optional-comment editor, while source highlights remain attached to local drafts.

    官方原文 · c5
  4. client.experimental.schedule.create 增加了 if 和 until 输入,以及计划检查结果和输出字段;SessionInfo.time.busy 现已暴露,用于表示最近一次执行的开始时间。

    官方原文 · c6 c7

    Added `if` and `until` inputs for `client.experimental.schedule.create`, plus schedule check results and output fields.

    官方原文 · c6

    Exposed `SessionInfo.time.busy` for the latest execution’s start time.

    官方原文 · c7
  5. 会话被分叉或导入时,媒体内容会被保留;工作目录已不存在的持久终端请求会被拒绝。

    官方原文 · c8 c9

    Preserved media when sessions are forked or imported.

    官方原文 · c8

    Rejected persistent terminal requests whose working directory no longer exists.

    官方原文 · c9

变化明细

下表字段直接取自官方原文,保持原文语言,不做翻译。

编号主体动作对象范围
c1experimental_image_generateenabled by defaultimage generation toolwhen an image-capable provider is connected
c2agentscan use without additional configurationexperimental_image_generatewhen a connected provider supports image models
c3userset preferred modelexperimental_image_generatethrough experimental.image_generate.model
c4Git branch on the new-session screenopenscurrent project’s worktree picker directlynew-session screen
c5timeline quotes, terminal quotes, and browser annotationssharecompact optional-comment editorsource highlights remain attached to local drafts
c6client.experimental.schedule.createaddedif and until inputs, schedule check results and output fieldsclient.experimental.schedule.create
c7SessionInfo.time.busyexposedlatest execution’s start timelatest execution
c8sessionspreservedmediawhen sessions are forked or imported
c9persistent terminal requestsrejectedrequests whose working directory no longer existsworking directory no longer exists

版本时间线

同一工具在本站已发布的快讯,按官方发布日期由新到旧。

  1. 当前连接支持图像的提供方后默认启用图像生成
  2. 桌面插件可在设置›扩展›插件中管理

关于这个工具

OpenCode

OpenCode 是可在终端、桌面和 IDE 使用的编程 Agent,允许接入不同模型供应商及本地模型。

分类AI编程工具

查看 OpenCode 详情

相关教程

来源与说明

官方原文 · github.com/anomalyco/opencode/releases/tag/v2.2.2

AI 整理说明

本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。