OpenCode:v2.4.0 新增自动化任务与桌面内置浏览器
智能体可按定时、cron 计划或 MCP 服务器事件运行提示词、脚本或 shell 命令;配置中将 automations 设为 false 可关闭。
- 事件类型
- 功能更新
- 版本
- v2.4.0
- 官方发布
- 本站整理
本次变化 · 变化明细 · 版本时间线
关键变化
可以让智能体按定时、按 cron 计划或在 MCP 服务器发送事件时运行提示词、脚本或 shell 命令,并通过 /automation 管理这些任务。
本次变化
共 9 条要点
可以让智能体按定时、按 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 如果不想使用自动化任务,可在配置中将 automations 设为 false。
官方原文 · c2
Set
"automations": falsein your config if you don't want them.官方原文 · c2 内置桌面浏览器可以从 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 所有内容保存在一个持久的桌面配置文件中:聊天链接以已登录状态打开,标签页在重启后保留,智能体无需切换应用即可读取并操作同样的页面。
官方原文 · 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 当已连接的提供商拥有视频模型时,智能体可以使用 generate_video 生成视频。
官方原文 · c5
When a connected provider has a video model, the agent can make videos with
generate_video.官方原文 · c5 使用旧名称的权限规则会被自动映射,但已保存的“始终允许”批准不会被映射,因此会再询问一次。
官方原文 · c6
Permission rules with the old name are mapped automatically, but saved "always allow" approvals are not, so it asks again once.
官方原文 · c6 以 name@latest、版本范围、Git 分支或 Git semver: 范围方式编写的插件会在启动时以及每 24 小时检查一次,并安装且重新加载较新的匹配版本。
官方原文 · c7
A plugin written as
name@latest, a version range (such asname@^1.2.0), a Git branch or a Gitsemver:range is checked on startup and every 24 hours, and a newer match is installed and reloaded.官方原文 · c7 GitHub Copilot 不再读取 GITHUB_TOKEN。
官方原文 · c8
GitHub Copilot no longer reads
GITHUB_TOKEN.官方原文 · c8 在 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
变化明细
下表按已审核事实整理,保留原语言;原文见各要点的引用。
| 编号 | 主体 | 动作 | 对象 | 范围 | 数值 | 判断 |
|---|---|---|---|---|---|---|
| c1 | agent | run on a timer, cron schedule or MCP server event | a prompt, a script or a shell command, managed with /automation | |||
| c2 | config setting automations | set to false to turn off | automations | config | ||
| c3 | built-in desktop browser | import and add | sign-ins, browsing history and extensions | Chrome, Edge, Firefox or Safari for sign-ins and history; Chromium browsers or Chrome and Edge stores for extensions | ||
| c4 | desktop browser | keeps everything in | one persistent desktop profile | desktop | ||
| c5 | agent | make videos with generate_video | videos | when a connected provider has a video model | ||
| c6 | permission rules with the old image tool name | mapped automatically, but saved always allow approvals are not | permission rules and approvals | |||
| c7 | plugins that follow a version | checked and updated | name@latest, version range, Git branch or Git semver: range plugins | on startup and every 24 hours | 精确 24 hours | |
| c8 | GitHub Copilot | no longer reads | GITHUB_TOKEN | 否定 | ||
| c9 | taskbar button | shows session progress, counts sessions that need you and flashes | session status | Windows |
版本时间线
同一工具在本站已发布的快讯,按官方发布日期由新到旧。
- 当前v2.4.0 新增自动化任务与桌面内置浏览器
- 连接支持图像的提供方后默认启用图像生成
- 桌面插件可在设置›扩展›插件中管理
关于这个工具
相关教程
- 为 OpenCode 配置命令审批边界用有序的 permissions 规则让 shell 命令默认询问、放行只读 Git 检查、拒绝推送,并学会读懂批准选项与保存后的规则。
- 为 OpenCode 配置项目模型与入口在项目里写一份 opencode.jsonc,设定默认模型、默认 agent、附加说明文件和一个斜杠命令,并核对多层配置的覆盖结果。
- OpenCode 自定义命令:用位置参数写一个可复用的评审提示把重复提示写成 .opencode/commands 下的 Markdown 文件,用 $1、$2 传参,并在运行前检查参数个数与注入内容。
- AI 编程工具怎么选:IDE、终端与费用条件按 IDE、终端等工作场景,核对 Cursor、GitHub Copilot、Cline、Codex、Claude Code 和 OpenCode 的登录与费用条件;未确认项明确标注。
来源与说明
官方原文 · github.com/anomalyco/opencode/releases/tag/v2.4.0
AI 整理说明
本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。