OpenCode:v2.4.0 新增自动化任务与桌面内置浏览器

智能体可按定时、cron 计划或 MCP 服务器事件运行提示词、脚本或 shell 命令;配置中将 automations 设为 false 可关闭。

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

关键变化

可以让智能体按定时、按 cron 计划或在 MCP 服务器发送事件时运行提示词、脚本或 shell 命令,并通过 /automation 管理这些任务。

官方原文

本次变化

共 9 条要点

  1. 可以让智能体按定时、按 cron 计划或在 MCP 服务器发送事件时运行提示词、脚本或 shell 命令,并通过 /automation 管理这些任务。

    官方原文 · c1

    Ask the agent to run a prompt, a script or a shell command on a timer, on a cron schedule or when an MCP server sends an event, and manage them with /automation.

    官方原文 · c1
  2. 如果不想使用自动化任务,可在配置中将 automations 设为 false。

    官方原文 · c2

    Set "automations": false in your config if you don't want them.

    官方原文 · c2
  3. 内置桌面浏览器可以从 Chrome、Edge、Firefox 或 Safari 导入登录状态和浏览历史,并可从 Chromium 浏览器或 Chrome 和 Edge 商店添加扩展。

    官方原文 · c3

    Import your sign-ins and browsing history from Chrome, Edge, Firefox or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores.

    官方原文 · c3
  4. 所有内容保存在一个持久的桌面配置文件中:聊天链接以已登录状态打开,标签页在重启后保留,智能体无需切换应用即可读取并操作同样的页面。

    官方原文 · c4

    Everything stays in one persistent desktop profile: chat links open signed in, your tabs survive restarts and the agent can read and drive the same pages without you switching apps.

    官方原文 · c4
  5. 当已连接的提供商拥有视频模型时,智能体可以使用 generate_video 生成视频。

    官方原文 · c5

    When a connected provider has a video model, the agent can make videos with generate_video.

    官方原文 · c5
  6. 使用旧名称的权限规则会被自动映射,但已保存的“始终允许”批准不会被映射,因此会再询问一次。

    官方原文 · c6

    Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once.

    官方原文 · c6
  7. 以 name@latest、版本范围、Git 分支或 Git semver: 范围方式编写的插件会在启动时以及每 24 小时检查一次,并安装且重新加载较新的匹配版本。

    官方原文 · c7

    A plugin written as name@latest, a version range (such as name@^1.2.0), a Git branch or a Git semver: range is checked on startup and every 24 hours, and a newer match is installed and reloaded.

    官方原文 · c7
  8. GitHub Copilot 不再读取 GITHUB_TOKEN。

    官方原文 · c8

    GitHub Copilot no longer reads GITHUB_TOKEN.

    官方原文 · c8
  9. 在 Windows 上,任务栏按钮会显示会话进度,统计需要你处理的会话数量,并在有权限请求或问题等待时闪烁。

    官方原文 · c9

    On Windows, the taskbar button shows session progress, counts sessions that need you and flashes when a permission or question is waiting.

    官方原文 · c9

变化明细

下表按已审核事实整理,保留原语言;原文见各要点的引用。

编号主体动作对象范围数值判断
c1agentrun on a timer, cron schedule or MCP server eventa prompt, a script or a shell command, managed with /automation
c2config setting automationsset to false to turn offautomationsconfig
c3built-in desktop browserimport and addsign-ins, browsing history and extensionsChrome, Edge, Firefox or Safari for sign-ins and history; Chromium browsers or Chrome and Edge stores for extensions
c4desktop browserkeeps everything inone persistent desktop profiledesktop
c5agentmake videos with generate_videovideoswhen a connected provider has a video model
c6permission rules with the old image tool namemapped automatically, but saved always allow approvals are notpermission rules and approvals
c7plugins that follow a versionchecked and updatedname@latest, version range, Git branch or Git semver: range pluginson startup and every 24 hours精确 24 hours
c8GitHub Copilotno longer readsGITHUB_TOKEN否定
c9taskbar buttonshows session progress, counts sessions that need you and flashessession statusWindows

版本时间线

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

  1. 当前v2.4.0 新增自动化任务与桌面内置浏览器
  2. 连接支持图像的提供方后默认启用图像生成
  3. 桌面插件可在设置›扩展›插件中管理

关于这个工具

OpenCode

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

分类AI编程工具

查看 OpenCode 详情

相关教程

来源与说明

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

AI 整理说明

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