github zed-industries/zed v1.22.0-pre

pre-release3 hours ago

This week's release includes BYOK support for Claude Opus 5.5 (Anthropic) and GPT-6 Astra, Sol, and Luna (OpenAI), per-call model overrides in spawn_agent, automatic subagent compaction, and dynamically fetched OpenCode models.

Features

AI

  • Added BYOK support for GPT-6 Astra with an OpenAI API key. (#64420)
  • Added BYOK support for GPT-6 Sol and GPT-6 Luna with an OpenAI API key. (#64628)
  • Added BYOK support for Claude Opus 5.5 with an Anthropic API key. (#64627)
  • 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 Grok 4.7 to the SuperGrok and xAI providers and made it their recommended default. (#64567; thanks raphaelluethy)
  • Added Z.ai GLM to the Mistral provider. (#63535; thanks ummon-v)
  • 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 Threads Sidebar sizing so changes to agent.threads_sidebar.default_width take effect even after manually resizing the sidebar. (#64395; thanks joshkent94)

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 newly available ChatGPT subscription models not appearing in the model picker. (#64625)
  • Fixed a crash when typing into an empty side of a merge conflict. (#64604)
  • 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 the Git Panel unexpectedly switching repositories when viewing changes in multi-repository projects. (#58795; thanks mengh04)
  • 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 a project root folder could not be renamed to match a child folder. (#64268; thanks D4r3NPo)
  • 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 deleted Git gutter markers disappearing at narrow custom widths. (#64469; thanks rajin-khan)
  • 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 the thinking toggle for Mistral Small and Medium. (#63535; thanks ummon-v)
  • Fixed Markdown preview tabs not showing the source file path on hover. (#64318; thanks GautamBytes)
  • 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 Command-clicking a symbol opening a definitions multibuffer instead of the picker when lsp_results_location was set to "picker". (#64039; thanks v-shevtsov)
  • Fixed the macOS traffic light animation when exiting fullscreen. (#64339; thanks tidely)

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)

Don't miss a new zed release

NewReleases is sending notifications on new releases.