v1.8.2
zed-industries/zedv1.8.2Jun 24, 2026by zed-zippy[bot]
AI Summary
Added features for creating worktrees from the sidebar, configuring agent terminal initialization commands, and expanding selections through nested delimiters.
Key Highlights
- Enabled creating new worktrees from the sidebar's new-thread button
- Added `agent.terminal_init_command` setting for automatic terminal commands
- Added `workspace: reset pane sizes` command
- Added `editor: select inside delimiters` actions
New Features
- Sidebar worktree creation
- Agent terminal init command
- Pane reset command
- Delimiter selection actions
- Go builtin highlighting support
Full Release Notes
This week's release includes the ability to create a new worktree right from the sidebar's new-thread button, a new `agent.terminal_init_command` setting to automatically run a command when opening a new agent terminal thread, a `workspace: reset pane sizes` command to reset all panes to equal sizes, and new `editor: select inside delimiters` / `editor: select around delimiters` actions for expanding a selection through nested brackets and quotes.
## Features
### AI
- Sidebar: Enabled creating a new worktree from the sidebar's "new thread" icon button. ([#59341](https://github.com/zed-industries/zed/pull/59341))
- Sidebar: Improved the archive "Search all threads" view so you can filter by project name, not just by thread title — handy when many projects are open. ([#58214](https://github.com/zed-industries/zed/pull/58214); thanks [KevinLaveto](https://github.com/KevinLaveto))
- Agent: Improved edit tool performance with a more succinct success response. ([#59335](https://github.com/zed-industries/zed/pull/59335))
- Agent: Improved scroll smoothness while a response is streaming. ([#59002](https://github.com/zed-industries/zed/pull/59002))
- Agent: Improved truncation of long configuration button labels for external agents. ([#57808](https://github.com/zed-industries/zed/pull/57808); thanks [Bitaru](https://github.com/Bitaru))
- Agent: Added the `agent.terminal_init_command` setting to automatically run a command when opening a new terminal thread in the agent panel. ([#59374](https://github.com/zed-industries/zed/pull/59374))
- Agent: Pressing up in an empty agent message editor now brings back the last queued message for editing if there is one. ([#58807](https://github.com/zed-industries/zed/pull/58807))
- Improved agent panel markdown rendering: Single newlines within agent responses now render as line breaks, matching the convention used by GitHub comments and Obsidian. ([#57376](https://github.com/zed-industries/zed/pull/57376); thanks [tredondo](https://github.com/tredondo))
- Agent: Added the ability to grant agent terminal commands network access to specific hosts (rather than all-or-nothing), enforced by an allowlisting proxy. ([#59220](https://github.com/zed-industries/zed/pull/59220))
- Agent: Improved sandbox permission prompts to show the command being requested. ([#59362](https://github.com/zed-industries/zed/pull/59362), [#59391](https://github.com/zed-industries/zed/pull/59391))
- Agent: Improved agent terminal sandbox network permission handling. ([#59385](https://github.com/zed-industries/zed/pull/59385))
- Agent: Improved the agent panel's empty-state toolbar to show a "New {agent} Thread" placeholder title (or your draft prompt as you type), with a stable new-thread button on the right. ([#59126](https://github.com/zed-industries/zed/pull/59126))
- Added Anthropic-compatible provider support in settings. ([#50381](https://github.com/zed-industries/zed/pull/50381); thanks [cppcoffee](https://github.com/cppcoffee))
### Git
- Added "View File" to the Git Panel context menu to open a changed file in the editor without a diff view. ([#59383](https://github.com/zed-industries/zed/pull/59383); thanks [ahmedash95](https://github.com/ahmedash95))
- Improved scrolling performance in diff views containing large hunks. ([#58658](https://github.com/zed-industries/zed/pull/58658))
- Improved placeholder copywriting in both the branch and worktree pickers to communicate it's possible to type-to-create each. ([#59130](https://github.com/zed-industries/zed/pull/59130))
- Improved the toast shown after `git: push` to always display the "Create Pull Request" button. ([#53913](https://github.com/zed-industries/zed/pull/53913))
- Improved performance of git HEAD state resolution. ([#59044](https://github.com/zed-industries/zed/pull/59044); thanks [lgeiger](https://github.com/lgeiger))
- Improved performance of git uncommit. ([#59069](https://github.com/zed-industries/zed/pull/59069); thanks [lgeiger](https://github.com/lgeiger))
- Improved performance of listing git remotes. ([#59053](https://github.com/zed-industries/zed/pull/59053); thanks [lgeiger](https://github.com/lgeiger))
- Improved performance of retrieving default git branch. ([#59087](https://github.com/zed-industries/zed/pull/59087); thanks [lgeiger](https://github.com/lgeiger))
- Reduced git processes run on every file change. ([#59042](https://github.com/zed-industries/zed/pull/59042); thanks [lgeiger](https://github.com/lgeiger))
- Reduced number of git operations when repository state changes outside of Zed. ([#59318](https://github.com/zed-industries/zed/pull/59318); thanks [lgeiger](https://github.com/lgeiger))
### Languages
- Prettier now reads the project's `.editorconfig` files when formatting. ([#59149](https://github.com/zed-industries/zed/pull/59149); thanks [matt-h](https://github.com/matt-h))
- REPL: Added a Stop button to notebook cells to interrupt the running kernel while a cell is executing. ([#57093](https://github.com/zed-industries/zed/pull/57093); thanks [raideno](https://github.com/raideno))
### Remote Development
- Added a `dev_container_use_buildkit` setting to build dev containers with the classic Docker builder for engines without an integrated BuildKit (e.g. Apple Container). ([#59288](https://github.com/zed-industries/zed/pull/59288); thanks [tnayuki](https://github.com/tnayuki))
### Other
- Added a `workspace: reset pane sizes` command that equalizes the sizes of all panes in the center group. ([#59046](https://github.com/zed-industries/zed/pull/59046); thanks [42piratas](https://github.com/42piratas))
- Added `editor: select inside delimiters` and `editor: select around delimiters` actions for selecting content within the nearest enclosing brackets, braces, parentheses, or quotes. Repeating the action expands the selection to the next enclosing pair. ([#53789](https://github.com/zed-industries/zed/pull/53789); thanks [subeax](https://github.com/subeax))
- Editor: Improved multi cursor editing performance. ([#58510](https://github.com/zed-industries/zed/pull/58510); thanks [Rani367](https://github.com/Rani367))
- Improved long filename truncation in the tab switcher and file finder so extensions remain visible. ([#59072](https://github.com/zed-industries/zed/pull/59072); thanks [saberoueslati](https://github.com/saberoueslati))
- Improved performance when searching in markdown preview. ([#59473](https://github.com/zed-industries/zed/pull/59473))
- Added the file icon to the breadcrumbs when the tab bar is hidden, if file icons are enabled for tabs. ([#56267](https://github.com/zed-industries/zed/pull/56267); thanks [hron](https://github.com/hron))
- Added a `zed: rebuild dev extension` action to rebuild an installed dev extension from the command palette. ([#55173](https://github.com/zed-industries/zed/pull/55173); thanks [tahayvr](https://github.com/tahayvr))
## Bug Fixes
- ACP: Fixed failed permission requests for external agents. ([#58537](https://github.com/zed-industries/zed/pull/58537))
- ACP: Fixed Cursor Agent only being able to use Fast mode with Composer 2.5. ([#59695](https://github.com/zed-industries/zed/pull/59695))
- Sidebar: Fixed a flicker when clicking on an empty draft thread. ([#59342](https://github.com/zed-industries/zed/pull/59342))
- macOS: Fixed fallback fonts missing weight/style. ([#56771](https://github.com/zed-industries/zed/pull/56771))
- Fixed the "Loading Commit History..." message in the History tab being stuck on projects with empty or no repositories. ([#58649](https://github.com/zed-industries/zed/pull/58649); thanks [Jeremy-Qian](https://github.com/Jeremy-Qian))
- Fixed `zed: open log` and `zed: reveal log in file manager` appearing and erroring when Zed was launched directly from a terminal. These actions are now hidden in that scenario, since logs go to stdout rather than Zed's log file. ([#57114](https://github.com/zed-industries/zed/pull/57114); thanks [tredondo](https://github.com/tredondo))
- Fixed a file descriptor leak on macOS. ([#59128](https://github.com/zed-industries/zed/pull/59128))
- Fixed a race condition that caused collab users to not receive/send any audio to their peers. ([#59195](https://github.com/zed-industries/zed/pull/59195))
- Fixed agent panel errors telling users to check their API key when the provider doesn't use one (Zed account, ChatGPT subscription). Permission errors also now show the provider's actual message. ([#59119](https://github.com/zed-industries/zed/pull/59119))
- Fixed agent terminal tool hanging with a `$` prompt when commands encounter syntax errors or unsupported shell features like process substitution. ([#59270](https://github.com/zed-industries/zed/pull/59270); thanks [procr1337](https://github.com/procr1337))
- Fixed agent threads failing to restore after quitting or updating Zed while a response was still in progress. ([#58962](https://github.com/zed-industries/zed/pull/58962))
- Fixed an issue where Git blame text would overlap with line numbers in the gutter. ([#59008](https://github.com/zed-industries/zed/pull/59008); thanks [lingyaochu](https://github.com/lingyaochu))
- Fixed an issue where splitting brackets inside line comments inserted an extra line and broke the comment formatting. ([#59260](https://github.com/zed-industries/zed/pull/59260); thanks [lingyaochu](https://github.com/lingyaochu))
- Fixed an issue where the worktree picker's "Remove Worktree from Window" button could act on the wrong worktree if the list updated at the moment of the click. ([#59084](https://github.com/zed-industries/zed/pull/59084))
- Fixed archiving an agent thread incorrectly deleting manually-created git worktrees. ([#58275](https://github.com/zed-industries/zed/pull/58275))
- Fixed a bug where Zed stopped watching changes to the `.git` directory if it was added to the project-local `file_scan_exclusions`. ([#57895](https://github.com/zed-industries/zed/pull/57895); thanks [AlvaroParker](https://github.com/AlvaroParker))
- Fixed dark shadow and gradient artifacts in the agent panel and multibuffer headers when using a transparent or blurred window background. ([#58981](https://github.com/zed-industries/zed/pull/58981); thanks [ebertn](https://github.com/ebertn))
- Fixed dev container Dockerfiles not expanding build args written in the bare `$VAR` form. ([#59280](https://github.com/zed-industries/zed/pull/59280); thanks [tnayuki](https://github.com/tnayuki))
- Fixed dragged file mentions in the agent composer being appended to the end of the prompt instead of inserted at the cursor. ([#55127](https://github.com/zed-industries/zed/pull/55127); thanks [saberoueslati](https://github.com/saberoueslati))
- Fixed external agent servers and debug adapters leaking helper processes (e.g. node workers and MCP servers) on Windows. ([#58885](https://github.com/zed-industries/zed/pull/58885))
- Fixed file change events not reporting changed paths in remote projects. ([#58157](https://github.com/zed-industries/zed/pull/58157))
- Fixed ghost project appearing in the window project picker and sidebar when switching between local and remote projects. ([#59272](https://github.com/zed-industries/zed/pull/59272); thanks [procr1337](https://github.com/procr1337))
- Fixed horizontal scrollbars not being rendered behind buffer headers in split editors. ([#53782](https://github.com/zed-industries/zed/pull/53782); thanks [cppcoffee](https://github.com/cppcoffee))
- Fixed inline assistant prompt sometimes not appearing, or lingering after dismissal, when that line was soft-wrapped. ([#59018](https://github.com/zed-industries/zed/pull/59018))
- Fixed mermaid diagram labels overflowing and overlapping nodes when long labels wrap. ([#59140](https://github.com/zed-industries/zed/pull/59140))
- Fixed misalignment of column selection on rows that contain multi-byte characters. ([#57097](https://github.com/zed-industries/zed/pull/57097); thanks [Dnreikronos](https://github.com/Dnreikronos))
- Fixed missing keybinding hints in the "Recent Projects" picker action button tooltips. ([#59030](https://github.com/zed-industries/zed/pull/59030))
- Fixed orphaned processes being leaked on macOS. ([#59156](https://github.com/zed-industries/zed/pull/59156))
- Fixed pasting text starting with a scheme-like prefix (such as `editor: ...`) over a selection in a Markdown buffer incorrectly creating a Markdown link. ([#59071](https://github.com/zed-industries/zed/pull/59071); thanks [TomPlanche](https://github.com/TomPlanche))
- Fixed pending subagent file changes being discarded when editing an earlier message in the agent panel. ([#59060](https://github.com/zed-industries/zed/pull/59060))
- Fixed renaming a folder with a dot in its name selecting only the part before the dot. ([#59390](https://github.com/zed-industries/zed/pull/59390); thanks [IbrahimKhan12](https://github.com/IbrahimKhan12))
- Fixed settings input fields not clearing when a setting was reset to its default while the field was focused. ([#59395](https://github.com/zed-industries/zed/pull/59395))
- Fixed sticky scroll anchoring to unhelpful context rows for multiline signatures when symbol metadata provides a more precise name range. ([#56333](https://github.com/zed-industries/zed/pull/56333); thanks [saberoueslati](https://github.com/saberoueslati))
- Fixed the "Reopen in Dev Container" suggestion re-appearing in new git worktrees after choosing "Don't Show Again". ([#58576](https://github.com/zed-industries/zed/pull/58576))
- Fixed the active debug line color not updating when switching themes while the debugger is paused ([#58736](https://github.com/zed-industries/zed/issues/58736)). ([#59274](https://github.com/zed-industries/zed/pull/59274); thanks [Dnreikronos](https://github.com/Dnreikronos))
- Fixed the agent panel offering a thinking toggle for models that cannot run with thinking disabled. ([#58980](https://github.com/zed-industries/zed/pull/58980))
- Fixed the agent permission dialog's "Always Allow" action having no keybinding on macOS; it is now bound to `cmd-alt-y`, matching Linux and Windows. ([#58365](https://github.com/zed-industries/zed/pull/58365); thanks [wazer24](https://github.com/wazer24))
- Fixed the "Remote Projects" modal not being dismissed on "Open Folder" click. ([#58889](https://github.com/zed-industries/zed/pull/58889); thanks [mateioprea](https://github.com/mateioprea))
- Fixed validation of `command_aliases` setting to avoid showing warnings when aliasing to an arbitrary string. ([#57812](https://github.com/zed-industries/zed/pull/57812))
- Fixed project grouping for opened subdirectories that share the same parent Git repository. ([#57998](https://github.com/zed-industries/zed/pull/57998); thanks [alisinabh](https://github.com/alisinabh))
- Fixed Markdown preview tabs not being restored when reopening a workspace. ([#56972](https://github.com/zed-industries/zed/pull/56972); thanks [cbedard](https://github.com/cbedard))
- Fixed missed file system events on case-insensitive filesystems that could cause stale Git state and other sync issues. ([#59714](https://github.com/zed-industries/zed/pull/59714))
- Fixed the Copilot sign-in window floating above all other applications instead of being scoped to Zed. ([#59701](https://github.com/zed-industries/zed/pull/59701))
- Improved file watcher performance in large worktrees. ([#59560](https://github.com/zed-industries/zed/pull/59560))
- Agent: Fixed compaction happening too early when using the ChatGPT subscription provider. ([#59686](https://github.com/zed-industries/zed/pull/59686); thanks [gb-jos](https://github.com/gb-jos))
- Fixed Ollama models silently failing to appear in the model picker, and the "Connect" button appearing to do nothing, when a single model's details could not be fetched, such as a retired Ollama Cloud model. ([#59606](https://github.com/zed-industries/zed/pull/59606); thanks [deXterbed](https://github.com/deXterbed))