黄奕彬

外部精选

Zed 1.21.0

本文来自外部来源,不是黄奕彬的原创文章。本站提供原文入口,并在采集端生成 AI 结构化摘要、解读与中文翻译(如有),一切以原文为准。

阅读原文(zed.dev)
来源
Zed stable releases ↗
作者 / 署名
未标注
发布日期
本站收录时间
原文域名
zed.dev

以上时间均为北京时间;来源更新时间由来源提供,不代表首次发布时间。

结构化摘要 AI 生成

背景与问题

Zed 编辑器 1.21.0 稳定版的官方周更发布说明,面向 Zed 用户,回答「本版本更新了什么」。

背景是 Zed 持续迭代编辑器与 AI Agent 能力,本版要解决的问题包括:语法高亮文件与 Markdown 代码块的渲染性能、语言服务器交互方式、长时间 Agent 任务期间的系统空闲休眠,以及用自有 API 密钥(BYOK)接入更多模型。

方法或内容

以变更清单形式发布,按类别组织:

  • AI:SuperGrok 登录、agent.prevent_idle_sleep 设置、DeepSeek Flash 4.1、线程侧栏与重命名改进、多条 BYOK 支持
  • Git:提交信息编辑器右键 Cut/Copy/Paste
  • 语言:语言服务器命令选择器、Emmet 扩展安装提示、从 inlay hint 直接触发语言服务器动作、Markdown 代码块渲染提速、自动替换过期 WASI SDK
  • 其他编辑器设置与快捷键,以及约 30 项 Bug 修复;每项附 PR 编号,多数致谢社区贡献者

关键发现 / 结果

  • 渲染:提升语法高亮文件(尤其开启 minimap 时)及 Agent 面板、悬浮窗、Markdown 预览中代码块的渲染速度
  • AI:agent.prevent_idle_sleep(默认开启,Agent 线程运行时阻止系统空闲休眠)、agent.threads_sidebar_default_width、重命名当前线程;接入 SuperGrok 登录、DeepSeek Flash 4.1、Z.ai GLM(Mistral 提供商)
  • BYOK:Claude Opus 5.5(Anthropic API key)、GPT-6 Astra/Sol/Luna(OpenAI API key)
  • 语言:语言服务器命令选择器、showDocument 打开文件与 URL、从 inlay hint 直接运行语言服务器动作
  • 编辑器:editor::ToggleComments 新增 comment_empty_lines(Zed 默认 true、VS Code keymap false)、editor.code_lens.foreground、read_only_files 支持 ... 继承
  • 修复:Linux XKB 启动崩溃、Windows ARM64 扩展编译、merge conflict 空侧输入崩溃、Git 面板多仓库误切换等约 30 项

结论与意义

本版为增量更新,主线是 AI/Agent 生态扩展(BYOK 模型接入、防休眠默认开启)与编辑器渲染性能改进,辅以大量跨平台缺陷修复。边界:内容仅描述 1.21.0 一个版本的变更;性能提升未给量化数据;这些行为在后续版本是否延续,原文未说明。

AI 解读 AI 生成

方法:按「时空变量」分析(时间 / 空间 / 变量,严格区分包含、相关与因果),对象包括原文作者、署名人员与关键技术及其实际原理;结论用「元反空」(元思考、反思考、空思考、综合)整理。

时间:何时发生,现在是否仍成立

来源日期 2026年9月23日 23:42(北京时间),即北京时间 2026-09-23 23:42:38;原文自称「This week's release」,说明为周更节奏。所有变更在 1.21.0 发布时已生效,属既成事实记录。

作为该版本的发布记录,内容稳定成立;但性能提升与模型可用性在当前及后续版本是否仍如此,原文未说明。

空间:谁的环境 / 场景

适用于 Zed 编辑器 1.21.0 稳定版用户,覆盖 macOS、Linux、Windows。

具体边界:BYOK 需自备 Anthropic 或 OpenAI API key;SuperGrok 登录仅面向 SuperGrok 订阅者;agent.prevent_idle_sleep 只在 Agent 线程运行期间影响系统休眠;Project Panel 右键快捷键 menu 仅 Linux/Windows,shift-f10 全平台;部分修复绑定特定环境(Linux XKB/Wayland、macOS Space、Windows ARM64 等)。

变量:实际改变了什么

  • 新增设置:agent.prevent_idle_sleep(默认开启,改变 Agent 运行期的系统休眠行为)、agent.threads_sidebar_default_width、editor.code_lens.foreground
  • 行为变化:Zed 默认 keymap 的多行注释会连空行一起注释(true),VS Code keymap 跳过(false);语言服务器可经 showDocument 打开文件与 URL
  • 能力扩展:SuperGrok 登录、DeepSeek Flash 4.1、Z.ai GLM、Claude Opus 5.5 与 GPT-6 Astra/Sol/Luna 的 BYOK;开发扩展编译自动替换过期 WASI SDK
  • 性能与修复:渲染提速及约 30 项缺陷修复;性能变化原文未给量化数据

区分:包含 ≠ 相关 ≠ 因果

包含:全部条目同属 1.21.0 的变更集;各功能之间(如 BYOK 与命令选择器)只是同期发布的相关关系,原文未建立因果。有明确因果/目的证据的仅有:agent.prevent_idle_sleep 的目的是在 Agent 线程运行时阻止系统空闲休眠;各 Bug 修复与其触发条件一一对应(如可执行文件输出非 UTF-8 时 Python 解释器发现过程崩溃)。

「尤其开启 minimap 时」是性能提升的适用范围描述,不是因果证明。

对象:作者/署名与关键技术原理

结构化作者字段为空,署名未标注:作者信息视为原文未说明;正文中的「thanks XXX」仅为社区贡献者致谢,不作为署名依据。关键技术按原文描述:

  • BYOK:用自有 Anthropic/OpenAI API key 调用对应模型
  • 语言服务器:命令选择器与 showDocument 请求使其能打开文件与 URL;actionable inlay hints 可直接触发其动作
  • agent.prevent_idle_sleep:Agent 线程运行期间阻止系统空闲休眠
  • Tree-sitter 语法与 WASI SDK:影响开发扩展编译,过期的 WASI SDK 会被自动替换
  • ACP:原文仅称改进其兼容性与异步任务唤醒处理,未说明具体含义

元反空综合结论

元:这是 Zed 1.21.0 的官方周更发布说明,本质在回答「本版本改了什么」,是产品迭代的事实通报,而非论证或评测文章。

反:最可能失效或有边界的主张——「faster rendering」等性能说法无量化数据,实际收益随硬件、文件规模、是否开 minimap 而异;agent.prevent_idle_sleep 默认开启会在 Agent 运行期改变系统休眠行为,用户可能未察觉;Claude Opus 5.5、GPT-6 系列等模型的可用性取决于第三方提供商;大量修复仅针对特定平台/场景。

空:去掉叙事后剩下的必要事实是一份带 PR 编号的变更清单——若干新设置与快捷键、四组 BYOK 模型接入、语言服务器交互增强、渲染改进与约 30 项缺陷修复。

综合:作为 1.21.0 变更的权威记录可信,可用于评估是否升级;性能与体验结论需自行验证,且所有描述仅适用于该版本。

中文译文 AI 生成

本周发布带来了语法高亮文件与 Markdown 代码块的更快渲染、一个语言服务器命令选择器、一项在长时间运行的 agent 回合期间保持系统唤醒的设置,以及对 Claude Opus 5.5 (Anthropic) 和 GPT-6 Astra、Sol、Luna (OpenAI) 的 BYOK 支持。

新功能

AI

  • 新增 SuperGrok 登录,使 SuperGrok 订阅者可以在 Agent Panel 中使用 Grok 模型。(#63248;感谢 thibaudgg)
  • 新增 agent.prevent_idle_sleep 设置(默认启用),用于在 agent 线程运行期间防止系统闲置休眠。(#53130;感谢 cppcoffee)
  • 新增对 DeepSeek Flash 4.1 的支持。(#64014;感谢 cppcoffee)
  • 新增 agent.threads_sidebar_default_width 设置,用于配置 Threads Sidebar 的宽度。(#62883;感谢 porada)
  • 新增 agent: rename selected thread 操作,用于从 Agent Panel 重命名当前活动的 Terminal Thread。(#63660;感谢 mauriciord)
  • 新增对 Claude Opus 5.5 的 BYOK 支持,使用 Anthropic API key。(#64627)
  • 新增对 GPT-6 Sol 和 GPT-6 Luna 的 BYOK 支持,使用 OpenAI API key。(#64628)
  • 新增对 GPT-6 Astra 的 BYOK 支持,使用 OpenAI API key。(#64420)
  • 将 Z.ai GLM 添加到 Mistral 提供商。(#63535;感谢 ummon-v)
  • 改进了 ACP 兼容性和异步任务唤醒处理。(#64077)

Git

  • 为提交信息编辑器新增了 Cut、Copy 和 Paste 右键菜单操作。(#64142;感谢 hooch)

语言

  • 新增语言服务器命令选择器,并支持语言服务器通过 showDocument 请求打开文件和 URL。(#63607)
  • 新增了在打开 Emmet 所支持语言的文件时提示安装 Emmet 扩展的功能。(#63750)
  • 新增了直接从可操作的 inlay hint 运行语言服务器操作的支持。(#63605)
  • 提升了 Agent Panel、hover 弹出层和 Markdown 预览中 Markdown 代码块的渲染性能。(#63138)
  • 通过自动替换过时的 WASI SDK 安装,改进了开发扩展的编译。(#63816;感谢 jkbz64)

其他

  • 为 editor::ToggleComments 快捷键操作新增了 comment_empty_lines 参数(用于多行选择)。将其设为 true 会注释空行,设为 false 则跳过空行;Zed 的默认 keymap 现在使用 true,而 VS Code keymap 使用 false。(#63961;感谢 UdeshyaDhungana)
  • 新增 editor.code_lens.foreground,用于单独自定义 CodeLens 文本。(#64084;感谢 giorgiopogliani)
  • 新增了对 read_only_files 中 "..." 的支持,使项目设置可以扩展继承的只读模式。(#64222;感谢 porada)
  • 新增了 menu(Linux 和 Windows)和 shift-f10(所有平台)快捷键,用于打开所选 Project Panel 条目的右键菜单。(#46744;感谢 CCXLV)
  • 提升了语法高亮文件中编辑器的渲染性能,尤其是在启用 minimap 的情况下。(#63145)

问题修复

  • 修复了文件夹停止拖拽后仍保持高亮的问题。(#64038;感谢 tidely)
  • 修复了退出全屏时 macOS 红绿灯按钮的动画问题。(#64339;感谢 tidely)
  • 修复了恢复的 macOS 窗口在当前活动的 Space 而非其原始 Space 上重新打开的问题。(#58886;感谢 tnayuki)
  • 修复了 prompt 限制低于其上下文窗口的 GitHub Copilot 模型的自动压缩阈值。(#64195)
  • 修复了未配置默认模型时 Inline Assistant 未能选择可用回退模型的问题。(#63963;感谢 hferreiro)
  • 修复了 macOS 上将指针移到另一个应用上时,可能触发其下方 Zed 窗口中 hover 效果的问题。(#64234)
  • 修复了查看 diff 时已删除文件出现在 Outline Panel 中文件树之外的问题。(#63570;感谢 FrantisekGazo)
  • 修复了当可执行文件输出非 UTF-8 内容时,Python 解释器发现过程中的崩溃。(#64040)
  • 修复了在 Helix 模式下向已展开的已删除 diff hunk 中粘贴时的崩溃。(#64245)
  • 修复了本地 XKB 键盘定义文件不可用时 Linux 启动崩溃的问题。(#64113)
  • 修复了 Anthropic 额度耗尽被归类为格式错误请求而非支付问题的错误。(#63988)
  • 修复了 Linux Wayland 上已取消的外部文件拖拽有时仍保持活动状态、导致后续点击复制被拖拽文件的问题。(#64122;感谢 itsfuad)
  • 修复了 Windows ARM64 上开发扩展的编译。(#63816;感谢 jkbz64)
  • 修复了包含大型 Tree-sitter 语法的开发扩展的编译。(#63816;感谢 jkbz64)
  • 修复了托管计数和压缩请求的数据保留同意检查。(#64194)
  • 修复了 diff 统计,使其对新增和删除行数使用主题的版本控制颜色。(#64083;感谢 kvechkanov)
  • 修复了字体建议列出不可用回退字体和内部字体别名的问题。(#64095)
  • 修复了跨 Zed 实例共享数据库时间歇性出现的 "database is locked" 错误。(#63923;感谢 whitecat1331)
  • 修复了 Ollama 无法访问工具调用返回图像的问题。(#64121;感谢 marius851000)
  • 修复了 Python 装饰器语法高亮与矩阵乘法运算符冲突的问题。(#58077;感谢 allachance)
  • 修复了远程服务器移除提示未能捕获键盘焦点的问题。(#60965;感谢 cfiq)
  • 修复了 Agent Panel 中的终端工具输出,使其始终使用主题的 terminal.background 颜色。(#64163;感谢 chrisdrackett)
  • 修复了按住 Command 后 gutter 工具提示中的修饰键点击提示。(#64124;感谢 GautamBytes)
  • 修复了 Project Panel 未能滚动到已折叠父文件夹的问题。(#64207)
  • 修复了在合并冲突的空白一侧输入时的崩溃。(#64604)
  • 修复了新可用的 ChatGPT 订阅模型未出现在模型选择器中的问题。(#64625)
  • 修复了在多仓库项目中查看更改时 Git Panel 意外切换仓库的问题。(#58795;感谢 mengh04)
  • 修复了已删除的 Git gutter 标记在较窄的自定义宽度下消失的问题。(#64469;感谢 rajin-khan)
  • 修复了项目根文件夹无法重命名为与子文件夹同名的问题。(#64268;感谢 D4r3NPo)

修复了 Mistral Small 和 Mistral Medium 的 thinking 切换开关。(#63535;感谢 ummon-v)

展开原文提取正文(采集端自动提取,可能有缺失)

This week's release includes faster rendering in syntax-highlighted files and Markdown code blocks, a language server command picker, a setting that keeps your system awake during long-running agent turns, and BYOK support for Claude Opus 5.5 (Anthropic) and GPT-6 Astra, Sol, and Luna (OpenAI). Features AI

Added SuperGrok sign-in so SuperGrok subscribers can use Grok models in the Agent Panel. (#63248; thanks thibaudgg) Added the agent.prevent_idle_sleep setting, enabled by default, to prevent idle system sleep while agent threads are running. (#53130; thanks cppcoffee) Added support for DeepSeek Flash 4.1. (#64014; thanks cppcoffee) Added the agent.threads_sidebar_default_width setting to configure the width of the Threads Sidebar. (#62883; thanks porada) Added the agent: rename selected thread action for renaming the active Terminal Thread from the Agent Panel. (#63660; thanks mauriciord) Added BYOK support for Claude Opus 5.5 with an Anthropic API key. (#64627) Added BYOK support for GPT-6 Sol and GPT-6 Luna with an OpenAI API key. (#64628) Added BYOK support for GPT-6 Astra with an OpenAI API key. (#64420) Added Z.ai GLM to the Mistral provider. (#63535; thanks ummon-v) Improved ACP compatibility and async task wakeup handling. (#64077)

Git

Added Cut, Copy, and Paste context menu actions to the commit message editor. (#64142; thanks hooch)

Languages

Added a language server command picker and support for language servers to open files and URLs with showDocument requests. (#63607) Added a prompt to install the Emmet extension when opening files in Emmet-supported languages. (#63750) Added support for running language-server actions directly from actionable inlay hints. (#63605) Improved rendering performance for Markdown code blocks in the Agent Panel, hover popovers, and Markdown preview. (#63138) Improved development extension compilation by automatically replacing outdated WASI SDK installations. (#63816; thanks jkbz64)

Other

Added a comment_empty_lines parameter to the editor::ToggleComments keybinding action for multiline selections. Set it to true to comment blank lines or false to skip them; Zed's default keymap now uses true, while the VS Code keymap uses false. (#63961; thanks UdeshyaDhungana) Added editor.code_lens.foreground for customizing CodeLens text independently. (#64084; thanks giorgiopogliani) Added support for "..." in read_only_files so project settings can extend inherited read-only patterns. (#64222; thanks porada) Added menu (Linux and Windows) and shift-f10 (all platforms) shortcuts to open the context menu for the selected Project Panel entry. (#46744; thanks CCXLV) Improved editor rendering performance in syntax-highlighted files, especially with the minimap enabled. (#63145)

Bug Fixes

Fixed a bug where folders remained highlighted after they stopped being dragged. (#64038; thanks tidely) Fixed the macOS traffic light animation when exiting fullscreen. (#64339; thanks tidely) Fixed a bug where restored macOS windows reopened on the currently active Space instead of their original Space. (#58886; thanks tnayuki) Fixed auto-compaction thresholds for GitHub Copilot models with a prompt limit below their context window. (#64195) Fixed the Inline Assistant failing to select an available fallback model when no default model was configured. (#63963; thanks hferreiro) Fixed a bug on macOS where moving the pointer over another app could trigger hover effects in a Zed window underneath it. (#64234) Fixed a bug where deleted files appeared outside the file tree in the Outline Panel when viewing a diff. (#63570; thanks FrantisekGazo) Fixed a crash during Python interpreter discovery when an executable emitted non-UTF-8 output. (#64040) Fixed a crash when pasting in an expanded deleted diff hunk in Helix mode. (#64245) Fixed a Linux startup crash when local XKB keyboard-definition files were unavailable. (#64113) Fixed Anthropic credit exhaustion being classified as a malformed request instead of a payment issue. (#63988) Fixed canceled external file drags on Linux Wayland sometimes remaining active and causing later clicks to copy the dragged file. (#64122; thanks itsfuad) Fixed compilation of development extensions on Windows ARM64. (#63816; thanks jkbz64) Fixed compilation of development extensions with large Tree-sitter grammars. (#63816; thanks jkbz64) Fixed data-retention consent checks for hosted counting and compaction requests. (#64194) Fixed diff statistics to use the theme's version-control colors for added and deleted line counts. (#64083; thanks kvechkanov) Fixed font suggestions listing unavailable fallback fonts and internal font aliases. (#64095) Fixed intermittent "database is locked" errors when sharing a database across Zed instances. (#63923; thanks whitecat1331) Fixed Ollama being unable to access images returned by tool calls. (#64121; thanks marius851000) Fixed Python decorator syntax highlighting conflicting with the matrix multiplication operator. (#58077; thanks allachance) Fixed remote server removal prompts not capturing keyboard focus. (#60965; thanks cfiq) Fixed terminal tool output in the Agent Panel to consistently use the theme's terminal.background color. (#64163; thanks chrisdrackett) Fixed the gutter tooltip's modifier-click hint after holding Command. (#64124; thanks GautamBytes) Fixed the Project Panel failing to scroll to collapsed parent folders. (#64207) Fixed a crash when typing into an empty side of a merge conflict. (#64604) Fixed newly available ChatGPT subscription models not appearing in the model picker. (#64625) Fixed the Git Panel unexpectedly switching repositories when viewing changes in multi-repository projects. (#58795; thanks mengh04) Fixed deleted Git gutter markers disappearing at narrow custom widths. (#64469; thanks rajin-khan) Fixed a bug where a project root folder could not be renamed to match a child folder. (#64268; thanks D4r3NPo) Fixed the thinking toggle for Mistral Small and Medium. (#63535; thanks ummon-v)

原文入口

阅读原文(zed.dev)

原文将在新窗口打开。收录时间不是内容更新时间;正文、译文与解读的版权归原作者/来源所有,本站仅作个人阅读辅助并保留原文入口;页面时间均为北京时间。

作者/署名来自原文结构化字段(Atom/RSS/HTML meta/JSON-LD;GitHub release 显示的是发布者账号),未经模型补充。

了解来源批准与收录规则