外部精选
Zed 1.22.0
本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。
阅读原文(zed.dev)结构化摘要 AI 生成
背景与问题
这是 Zed 编辑器 stable 渠道 1.22.0 版本的官方发布说明,面向 Zed 用户与关注者,目的是告知本周版本包含的功能新增、问题修复与破坏性变更,帮助用户决定升级并了解行为变化。发布时间为来源日期 2026-09-30 16:03 UTC(北京时间 2026-10-01 00:03)。
方法或内容
文章为变更日志(changelog)形式,先以一句话概述本周亮点,再按三类组织:Features(细分 AI、Git、Terminal、macOS、Windows、Other)、Bug Fixes、Breaking Changes and Notices。
每项附 GitHub issue 编号,部分附贡献者致谢,未说明测试方法或内部实现细节。
关键发现 / 结果
主要变更点:
- AI:
spawn_agent新增可选model参数可为单次生成指定模型;GPT-6.1 Sol 支持 BYOK(使用 OpenAI API key);Grok 4.7 加入 SuperGrok 与 xAI providers 并设为推荐默认;子代理启用 compaction;OpenCode Zen 与 Go 模型列表改为动态获取并隐藏弃用模型;新增agent.threads_sidebar.auto_open设置。 - 多处设置支持
"..."以扩展继承的排除规则(如edit_predictions.disabled_globs、terminal.path_hyperlink_regexes、file_scan_inclusions)。 - Git:
zed --diff <old> <new>打开的 diff 视图新增 unified/split 切换。 - Windows:
background.appearance新增MicaBackdrop与MicaAltBackdrop;修复高 DPI 下设置窗口头部出屏、UNC 路径 LSP 不启动等。 - macOS:聚焦的 Markdown 预览支持三指 Look Up 与翻译手势。
- 修复:终端每条命令结束后约 2 MB 内存未释放、
cmd-w/ctrl-w误关 dock、X11 GPU 恢复后窗口重绘崩溃等。 - 破坏性变更:关闭 dock 的快捷键改为
ctrl-alt-w;移除外部代理管理终端的 Stop 控件;Threads Sidebar 设置重组为agent.threads_sidebar.position、default_width、auto_open并自动迁移;停止将 VS Codefiles.watcherInclude导入为file_scan_inclusions。
结论与意义
本版本的核心方向是增强 AI/Agent 体验(BYOK、按次生成选模型、子代理 compaction)、统一配置继承语法("...")以及跨平台的大量稳定性修复。
适用边界为:以上结论仅针对 1.22.0 版本本身,破坏性变更会影响依赖旧快捷键或旧设置路径的用户;模型相关内容(如 GPT-6.1 Sol、Grok 4.7)依赖外部服务可用性。原文未说明各项功能的性能数据与回滚方案。
AI 解读 AI 生成
方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。
时间:何时发生,现在是否仍成立
内容对应 Zed 1.22.0 stable 版本,来源日期为 2026-09-30 16:03 UTC,即北京时间 2026-10-01 00:03。发布说明描述的是该时点的状态;此后版本可能继续修改其中行为(如模型默认值、设置项),因此具体细节是否仍成立取决于读者当前使用的 Zed 版本,原文未说明后续计划。
空间:谁的环境 / 场景
适用于 Zed 编辑器 stable 渠道 1.22.0 的桌面用户,覆盖三个平台:macOS(Look Up 手势、窗口内存泄漏修复)、Windows(Mica 背景、高 DPI、UNC 路径、Scoop PowerShell、连字)、Linux(X11 GPU 恢复崩溃修复)。
AI 功能涉及多种使用形态:Zed 内置 Agent/子代理、ACP 外部代理、OpenCode 动态模型列表、BYOK(需用户自己的 OpenAI API key)、SuperGrok 与 xAI providers。终端与 Git 集成功能面向使用集成终端和 zed --diff 命令行的用户。
变量:实际改变了什么
相对此前的实际改变:
- 行为:关闭 dock 从
cmd-w/ctrl-w改为ctrl-alt-w;terminal.path_hyperlink_regexes顶层"..."语义变为插入继承正则;外部代理终端不再显示 Stop 控件;VS Codefiles.watcherInclude不再被导入。 - 结构:Threads Sidebar 三个设置归组为
agent.threads_sidebar.*前缀,旧设置自动迁移。 - 资源占用:修复终端每命令约 2 MB 内存滞留及 macOS 无障碍窗口内存泄漏。
- 功能供给:新增模型(GPT-6.1 Sol BYOK、Grok 4.7 为推荐默认),OpenCode 模型列表由捆绑改为动态获取并隐藏弃用模型。
- 价格、商业化条款:原文未说明。
区分:包含 ≠ 相关 ≠ 因果
包含/相关关系:本版本包含各分类下的功能与修复项;贡献者姓名仅表示对应 issue 的提交者,与变更本身是被致谢的相关关系。明确的因果陈述(原文直接给出):
- 使用 OpenAI API key 是启用 GPT-6.1 Sol BYOK 的前提。
- 动态获取 OpenCode 模型列表「改善了模型可用性」、相关解析「改善了性能」——原文声称的因果。
- Bug Fixes 各项声称修复了对应的缺陷(如修复后终端不再滞留 2 MB 内存)。
不确定项:原文未提供性能改善的量化数据,「改善分支 diff 首次显示速度」的效果幅度原文未说明,无法验证因果强度。
对象:作者/署名与关键技术原理
作者/署名:原文未标注(结构化作者字段为空),正文仅在个别条目致谢外部贡献者(如 itsfuad、ktKongTong、porada 等),但这不构成署名。关键技术及原文描述的原理:
spawn_agent:新增可选model参数,可为该次生成指定模型,而非使用已配置的子代理模型或继承父模型,活动模型显示在卡片上。- BYOK:用户自带 API key(OpenAI)接入 GPT-6.1 Sol。
- 子代理 compaction:原文仅说明「为子代理启用了 compaction」,机制细节未说明。
- OpenCode 模型动态获取:改为运行时获取 Zen 与 Go 模型列表而非依赖随 Zed 捆绑的列表。
"..."继承语法:允许设置扩展(而非覆盖)继承的排除规则、正则、包含/隐藏文件模式。- 其余(Mica 背景、diff 切换等)原文仅描述功能效果,未说明实现原理。
元反空综合结论
元:这条内容本质是一份版本沟通文档,解决「用户如何可靠地知道 1.22.0 改了什么、会破坏什么、该注意什么」的问题,属工程交付的透明化记录,而非论证性文章。
反:最可能失效或有边界的主张——
- 模型相关内容(GPT-6.1 Sol BYOK、Grok 4.7 为推荐默认、OpenCode 动态模型列表)依赖外部服务与模型生态,时效性最强;
- 快捷键与设置路径的变更对老用户是迁移成本,自动迁移是否覆盖所有场景原文未说明;
- 大量平台特定修复(X11、高 DPI、UNC)只在对应环境生效,不可推广到其他环境;
- 性能与内存改善均为定性描述,无量化基准。
空:去掉宣传叙事后剩下的必要事实是——一个具体版本号、一份分组的变更清单、每项对应的 issue 编号、明确的破坏性变更与迁移说明。
综合:这是一份可信度较高的官方变更记录,适合作为升级 1.22.0 前的核对清单;但其中模型供给与推荐默认具有时效性,用户升级时应重点核对 Breaking Changes 中的快捷键与设置迁移项。
中文译文 AI 生成
本周发布包含以下内容:对 GPT-6.1 Sol 的 BYOK 支持、为新 subagent 实时选择模型、subagent 自动压缩、对从命令行打开的 diff 的统一/拆分切换,以及动态获取 OpenCode 模型。
功能
AI
- 为
spawn_agent新增可选的model参数,可为该次调用选择模型,而不是使用已配置的 subagent 模型或继承父级模型,当前使用的模型会显示在其卡片中。(#64498;感谢 itsfuad) - 通过 OpenAI API key 为 GPT-6.1 Sol 新增 BYOK 支持。(#64968;感谢
ktKongTong) - 将 Grok 4.7 添加到 SuperGrok 和 xAI 提供商,并将其设为它们的推荐默认模型。(#64567;感谢 raphaelluethy)
- 新增
agent.threads_sidebar.auto_open设置,用于控制在现有窗口中打开文件夹时是否同时打开 Threads Sidebar。(#64259、#64395;感谢 jackhwalters 和 joshkent94) - 新增对
edit_predictions.disabled_globs和edit_predictions_disabled_in中 "..." 的支持,使设置可以扩展继承的编辑预测排除项和作用域。(#64540、#64546;感谢 porada) - 为 subagent 启用了压缩。(#64135)
- 通过动态获取 Zen 和 Go 模型列表(而非依赖 Zed 自带的列表),改进了 OpenCode 模型的可用性。(#64585)
- 提升了解析 OpenCode 模型时的性能。(#64666)
- 改进了 Threads Sidebar 的尺寸处理,使
agent.threads_sidebar.default_width的更改在手动调整侧边栏大小之后也能生效。(#64395;感谢 joshkent94) - 隐藏了已弃用的 OpenCode 模型。(#64666)
Git
- 为通过
zed --diff <old> <new>打开的 diff 视图新增了统一/拆分切换。(#64529;感谢 rn23thakur) - 改进了当分支偏离其 base 很远时,分支 diff 显示首批更改的速度。(#62536;感谢 azeemshaik025)
终端
- 新增对
terminal.path_hyperlink_regexes中 "..." 的支持,无需重复即可扩展继承的正则表达式。(#64552;感谢 porada)
macOS
- 为聚焦的 Markdown 预览中的文本新增 macOS 三指 Look Up 和翻译手势。(#59297;感谢 cppcoffee)
Windows
- 为
background.appearance主题设置新增 MicaBackdrop 和 MicaAltBackdrop 选项。(#48340;感谢 Marocco2)
其他
- 新增对
file_scan_inclusions和hidden_files中 "..." 的支持,使项目设置可以扩展继承的包含模式和隐藏文件模式。(#64440、#64484;感谢 porada) - 当手动检查更新发现 Zed 已是最新版本时,在标题栏中新增确认提示。(#64106;感谢 tahayvr)
- 通过分组按键绑定、可滚动列表,以及对无超时组合键(例如以
cmd-k开头的快捷键)的支持,改进了待处理按键指示器。(#64362、#64522)
错误修复
- 修复了无效文件模式会丢弃有效的排除、隐藏文件、只读和私有文件规则,或导致包含和文件类型设置 panic 的问题。(#64525;感谢 porada)
- 修复了
cmd-w(macOS)和ctrl-w(Linux/Windows)关闭活动 dock 而非活动窗格项的问题。(#64515) - 修复了 Windows 上除非设置了
buffer_font_features否则连字被禁用的问题。(#62338;感谢 interkelstar) - 修复了不带编辑范围的 LSP 补全会忽略所配置的
completions.lsp_insert_mode的问题。(#64139) - 修复了 Windows 上高 DPI 缩放时 Settings 窗口打开后其头部位于屏幕外的问题。(#62073;感谢 habisahmad)
- 修复了将 VS Code 的
files.exclude导入到file_scan_exclusions时的问题。(#64492;感谢 porada) - 修复了 “Add to .git/info/exclude” 在次级 Git worktree 中失败的问题。(#63967;感谢 mateioprea)
- 修复了终端在命令结束后仍为每个命令保留约 2 MB 内存的问题。(#64405;感谢 EcutAtom336)
- 修复了外部 agent 终端过早结束或报告错误退出状态的问题。(#64544)
- 修复了在启用实验性辅助功能时关闭 macOS 窗口出现的内存泄漏。(#64143;感谢
feigeCode) - 修复了 Windows 上终端网格增长时失去顶部对齐的问题。(#63699;感谢 39ali)
- 修复了 Linux (X11) 上在 GPU 设备恢复后立即重绘窗口时发生的崩溃。(#64570)
- 修复了 Windows 上无法为通过 UNC 路径打开的文件启动 language server 的问题。(#56553;感谢 Joblen)
- 修复了当 Scoop 使用自定义安装目录时,无法检测到由 Scoop 安装的 PowerShell 的问题。(#62473;感谢 jliu666)
- 修复了当焦点位于全局
tasks.json文件时任务 worktree 变量解析到错误项目的问题,以及包含空格的路径导致 Windows 任务出错的问题。(#55727;感谢 di404) - 修复了在未选中文本时使用
cmd->(macOS)、ctrl->(Linux)或ctrl-shift-.(Windows)将当前行添加到 Agent 线程的问题。(#64589) - 修复了块状光标在动画完成前一直遮挡其下方字符的问题。(#64521;感谢 linyisu)
- 修复了列选择在非 ASCII 文本、制表符、软换行和折叠内容附近落在错误列的问题。(#63723;感谢 itsfuad)
- 修复了在打字机式滚动中使用较高的
vertical_scroll_margin时光标偏离编辑器中心的问题。(#63944;感谢 rn23thakur) - 修复了在不同宽度的字符之间移动时以及键盘触发的自动滚动期间的光标动画问题。(#64184;感谢 tiny-paris)
- 修复了统一 diff 中选区位于已删除文本上时的摘录展开问题。(#63946;感谢 IbrahimKhan12)
- 修复了当被注释掉的
disabled_globs设置出现在 “Configure Excluded Files” 之前时,后者选中错误列表的问题。(#64540;感谢 porada) - 修复了诊断导航未将附近的相关诊断链接回主诊断的问题。(#64134;感谢 GautamBytes)
- 修复了 language server 诊断在没有底层文本的位置缺少编辑器下划线的问题。(#63933;感谢 itsfuad)
- 修复了在没有现有终端的项目中启动新终端线程时 Agent Panel 创建两个终端的问题。(#62151;感谢 restlessronin)
- 修复了 ACP elicitation 表单中的键盘导航和提交问题。(#64193)
- 修复了 ACP agent 对空响应负载返回 null 时出现的错误。(#64457)
- 修复了 Markdown 预览标签页悬停时不显示源文件路径的问题。(#64318; 感谢 GautamBytes)
- 修复了 Project Panel 需要按两次左方向键才能折叠已打开文件父级的问题。(#64733)
- 修复了摘录(excerpt)之外区域的面包屑高亮问题。(#64738)
- 修复了复制 REPL 输出时缺少视觉反馈的问题。(#64276; 感谢 Yao0454)
- 修复了在 Keymap Editor 中录制和搜索独立修饰键(modifier-key)绑定的问题。(#64537)
- 修复了远程 external-agent 退出错误在 agent 最终响应更新被应用之前出现的问题。(#64603)
- 修复了点击终端线程时 Threads Sidebar 中选中高亮闪烁的问题。(#64387)
- 修复了来自不同扩展的代码片段(snippet)在同一语言下相互抵消的问题。(#58659; 感谢 LBF38)
- 修复了在查看历史提交处文件时 Markdown 强调、链接和代码块的语法高亮问题。(#64683; 感谢 Sudarsh1010)
- 修复了当
lsp_results_location设为 "picker" 时,Command 点击符号会打开 definitions multibuffer 而非选择器(picker)的问题。(#64039; 感谢 v-shevtsov)
重大变更与注意事项
- 从由 external-agent 管理的终端中移除了 Stop 控件,这些终端由 agent 而非本地进程控制。(#64544)
- 将 Threads Sidebar 设置更改为
agent.threads_sidebar.position、agent.threads_sidebar.default_width和agent.threads_sidebar.auto_open,并在 Settings Editor 中归为一组。现有设置会自动迁移。(#64395; 感谢 joshkent94) - 将关闭活动 dock 的快捷键从 cmd-w(macOS)或 ctrl-w(Linux/Windows)改为在所有平台上使用 ctrl-alt-w。(#64515)
- 更改了
terminal.path_hyperlink_regexes,使顶层的 "..." 条目现在会插入继承的正则表达式。若要保留之前的三字符正则表达式,请将该条目替换为 ["..."]。(#64552; 感谢 porada) - 不再将 VS Code 的
files.watcherInclude导入为file_scan_inclusions;watch roots 并非 Git-ignore 覆盖。(#64440; 感谢 porada)
展开原文提取正文(采集端自动提取,可能有缺失)
This week's release includes BYOK support for GPT-6.1 Sol, on-the-fly model selection for new subagents, automatic subagent compaction, a unified/split toggle for diffs opened from the command line, and dynamically fetched OpenCode models. Features AI
Added an optional model parameter to spawn_agent to choose a model for that spawn instead of using the configured subagent model or inheriting the parent model, with the active model shown in its card. (#64498; thanks itsfuad) Added BYOK support for GPT-6.1 Sol with an OpenAI API key. (#64968; thanks ktKongTong) Added Grok 4.7 to the SuperGrok and xAI providers and made it their recommended default. (#64567; thanks raphaelluethy) Added the agent.threads_sidebar.auto_open setting to control whether opening a folder in an existing window also opens the Threads Sidebar. (#64259, #64395; thanks jackhwalters and joshkent94) Added support for "..." in edit_predictions.disabled_globs and edit_predictions_disabled_in so settings can extend inherited edit prediction exclusions and scopes. (#64540, #64546; thanks porada) Enabled compaction for subagents. (#64135) Improved OpenCode model availability by fetching the Zen and Go model list dynamically instead of relying on one bundled with Zed. (#64585) Improved performance when resolving OpenCode models. (#64666) Improved Threads Sidebar sizing so changes to agent.threads_sidebar.default_width take effect even after manually resizing the sidebar. (#64395; thanks joshkent94) Hid deprecated OpenCode models. (#64666)
Git
Added a unified/split toggle to the diff view opened with zed --diff <old> <new>. (#64529; thanks rn23thakur) Improved how quickly branch diffs show their first changes when a branch has drifted far from its base. (#62536; thanks azeemshaik025)
Terminal
Added support for "..." in terminal.path_hyperlink_regexes to extend inherited regexes without repeating them. (#64552; thanks porada)
macOS
Added macOS three-finger Look Up and translation gestures for text in focused Markdown previews. (#59297; thanks cppcoffee)
Windows
Added MicaBackdrop and MicaAltBackdrop options for the background.appearance theme setting. (#48340; thanks Marocco2)
Other
Added support for "..." in file_scan_inclusions and hidden_files so project settings can extend inherited inclusion and hidden-file patterns. (#64440, #64484; thanks porada) Added confirmation in the title bar when a manual update check found Zed was already up to date. (#64106; thanks tahayvr) Improved the pending keystrokes indicator with grouped bindings, a scrollable list, and support for chords without a timeout, such as shortcuts starting with cmd-k. (#64362, #64522)
Bug Fixes
Fixed invalid file patterns discarding valid exclusion, hidden-file, read-only, and private-file rules or causing inclusion and file-type settings to panic. (#64525; thanks porada) Fixed cmd-w (macOS) and ctrl-w (Linux/Windows) closing the active dock instead of the active pane item. (#64515) Fixed ligatures being disabled on Windows unless buffer_font_features was set. (#62338; thanks interkelstar) Fixed LSP completions without edit ranges ignoring the configured completions.lsp_insert_mode. (#64139) Fixed the Settings window opening with its header off-screen at high DPI scaling on Windows. (#62073; thanks habisahmad) Fixed importing VS Code files.exclude into file_scan_exclusions. (#64492; thanks porada) Fixed “Add to .git/info/exclude” failing in secondary Git worktrees. (#63967; thanks mateioprea) Fixed terminals retaining about 2 MB of memory per command after the command finished. (#64405; thanks EcutAtom336) Fixed external-agent terminals completing prematurely or reporting the wrong exit status. (#64544) Fixed a memory leak when closing macOS windows with experimental accessibility enabled. (#64143; thanks feigeCode) Fixed the terminal grid losing its top alignment when growing on Windows. (#63699; thanks 39ali) Fixed a crash on Linux (X11) when a window was redrawn immediately after GPU device recovery. (#64570) Fixed language servers not starting for files opened via UNC paths on Windows. (#56553; thanks Joblen) Fixed PowerShell installed by Scoop not being detected when Scoop uses a custom installation directory. (#62473; thanks jliu666) Fixed task worktree variables resolving to the wrong project when the global tasks.json file was focused, and paths containing spaces breaking Windows tasks. (#55727; thanks di404) Fixed adding the current line to an Agent thread when no text was selected using cmd-> (macOS), ctrl-> (Linux), or ctrl-shift-. (Windows). (#64589) Fixed a bug where the block cursor hid the character underneath until its animation completed. (#64521; thanks linyisu) Fixed columnar selections landing in the wrong column around non-ASCII text, tabs, soft wraps, and collapsed content. (#63723; thanks itsfuad) Fixed the cursor drifting from the center of the editor when using a high vertical_scroll_margin for typewriter-style scrolling. (#63944; thanks rn23thakur) Fixed cursor animations when moving between characters of different widths and during keyboard-triggered autoscrolling. (#64184; thanks tiny-paris) Fixed excerpt expansion when the selection was on deleted text in unified diffs. (#63946; thanks IbrahimKhan12) Fixed a bug where “Configure Excluded Files” selected the wrong list when a commented-out disabled_globs setting appeared before it. (#64540; thanks porada) Fixed diagnostic navigation not linking nearby related diagnostics back to the primary diagnostic. (#64134; thanks GautamBytes) Fixed missing editor underlines for language server diagnostics at positions without underlying text. (#63933; thanks itsfuad) Fixed a bug where the Agent Panel created two terminals when starting a new terminal thread in a project with no existing terminals. (#62151; thanks restlessronin) Fixed keyboard navigation and submission in ACP elicitation forms. (#64193) Fixed errors when ACP agents returned null for empty response payloads. (#64457) Fixed Markdown preview tabs not showing the source file path on hover. (#64318; thanks GautamBytes) Fixed Project Panel requiring two left presses to collapse opened files’ parent. (#64733) Fixed breadcrumb highlighting outside excerpts. (#64738) Fixed missing visual feedback when copying REPL output. (#64276; thanks Yao0454) Fixed recording and searching for standalone modifier-key bindings in the Keymap Editor. (#64537) Fixed remote external-agent exit errors appearing before the agent's final response updates were applied. (#64603) Fixed the selection highlight flickering in the Threads Sidebar when clicking terminal threads. (#64387) Fixed snippets from different extensions canceling each other out for the same language. (#58659; thanks LBF38) Fixed syntax highlighting for Markdown emphasis, links, and code blocks when viewing a file at a historical commit. (#64683; thanks Sudarsh1010) Fixed Command-clicking a symbol opening a definitions multibuffer instead of the picker when lsp_results_location was set to "picker". (#64039; thanks v-shevtsov)
Breaking Changes and Notices
Removed Stop controls from external-agent-managed terminals, which are controlled by the agent rather than a local process. (#64544) Changed Threads Sidebar settings to agent.threads_sidebar.position, agent.threads_sidebar.default_width, and agent.threads_sidebar.auto_open, grouped together in the Settings Editor. Existing settings are migrated automatically. (#64395; thanks joshkent94) Changed the shortcut for closing the active dock from cmd-w (macOS) or ctrl-w (Linux/Windows) to ctrl-alt-w on all platforms. (#64515) Changed terminal.path_hyperlink_regexes so a top-level "..." entry now inserts inherited regexes. To retain the previous three-character regex, replace that entry with ["..."]. (#64552; thanks porada) Stopped importing VS Code’s files.watcherInclude as file_scan_inclusions; watch roots are not Git-ignore overrides. (#64440; thanks porada)
原文入口
阅读原文(zed.dev)原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。
了解来源批准与收录规则