Moves `cloud_api_client` off the `zed-industries/yawc` fork pin
(`71a452f`) to the upstream crates.io release, `yawc` 0.4.2.
The fork's only commit beyond upstream was an earlier version of a wasm
connect fix. Upstream shipped a more complete fix in 0.4.0
([infinitefield/yawc@f1c6317](https://github.com/infinitefield/yawc/commit/f1c6317eff64a01433aad683280e22ddff4f9c3f)):
- `connect` settles on the browser's `open`, `error`, or `close` event.
- The wasm `WebSocket` owns its event handlers instead of leaking them
with `Closure::forget`.
- `Drop` unregisters the handlers and calls `close()`, including when
the connect future is dropped mid-handshake.
That last point matters for the web Cloud client, which drops a pending
connect after 30 seconds. With the fork, the abandoned browser socket
kept handshaking indefinitely. Delta hit the same leak in its web client
and has already moved to 0.4.2.
The other changes between the fork and 0.4.2 are native-only: opt-in
HTTP/2 WebSockets, SOCKS5 proxy support, and a deflate decompression
fix. The APIs `cloud_api_client` uses are unchanged. The lock file also
picks up `send_wrapper` and bumps `hyper` to 1.11 and `h2` to 0.4.19,
which `yawc` 0.4.2 requires.
Checked with `cargo check -p cloud_api_client` for native and
`wasm32-unknown-unknown`.
Release Notes:
- N/A
# Objective
- Fixes#62765
Fenced code blocks with extra content after the language (e.g. ````
```ts import.meta.vitest ````) weren't syntax highlighted, since the
whole info string was used as the language name.
## Solution
- Resolve the language from the first whitespace-separated word of the
info string, per CommonMark. The full info string is still stored, so
mermaid scale options keep working.
## Testing
- Added `test_code_block_language_uses_first_word_of_info_string`.
- Existing `markdown` code block tests pass on Linux.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed syntax highlighting for fenced code blocks with extra text after
the language name.
# Objective
`CredReadW` returns a null `UserName` when the stored credential has no
username, and a null `CredentialBlob` when the blob is empty
([docs](https://learn.microsoft.com/en-us/windows/win32/api/wincred/ns-wincred-credentialw)).
`read_credentials` dereferenced both unconditionally, so `wcslen`
faulted on the null username and crashed Zed.
Fixes ZED-BTS
## Solution
We now treat a null `UserName` as an empty username and a null
`CredentialBlob` as an empty password. Every caller either ignores the
username or parses it with `.ok()?`, so an empty one just reads as "no
credentials", same as on macOS and Linux. Also, `CredFree` now runs
before a UTF-16 conversion error is propagated, so the allocation can't
leak.
## Testing
- Added round-trip tests through Credential Manager for a generic
credential with and without a username.
- Verified against the ZED-BTS minidump that the faulting read is
`wcslen` on `UserName` inside `read_credentials`.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [ ] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed a crash on Windows when reading a stored credential that has no
username.
- [GPUI] `Platform::read_credentials` on Windows no longer crashes on
credentials with a null `UserName` or `CredentialBlob`.
## Problem
Row border lived on the outer row div, which always spans full width —
so on `Resizable`-width tables the separator ran past the last column
into empty space.
## Solution
Moved border into a `render_section` wrapper around just the cells; that
wrapper hugs cell width (`flex_shrink_0`) only when all columns are
absolute-width, else stays `size_full()` so percentage/flex columns
still resolve correctly.
Also extracted the pinned/scrollable cell-mapping logic into
`render_section` to dedupe.
## Testing
- `cargo check -p ui`, `./script/clippy` clean.
- Verified visually: resizable, percentage, and pinned-column tables —
border stops at last column.
Before:
<img width="742" height="400" alt="image"
src="https://github.com/user-attachments/assets/6ee19825-868e-436d-be86-3503a0686d5e"
/>
After:
<img width="756" height="439" alt="image"
src="https://github.com/user-attachments/assets/e30a2b9a-2d06-44c4-8d46-46c391ebb0e6"
/>
Note, other table modes are unaffected (keymap editor as example)
<img width="790" height="691" alt="image"
src="https://github.com/user-attachments/assets/8bd4f68d-4905-408f-b35b-47585a1076b8"
/>
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] UI standards followed
- [ ] Tests cover the new/changed behavior
- [x] Performance impact considered, acceptable
Release Notes:
- UI: Fixed row separator lines in the data table extending past the
last column
## Objective
Extend the existing tabular preview to support `.jsonl` and `.ndjson`
files, making it easier to compare fields across records.
Discussed in https://github.com/zed-industries/zed/discussions/62917.
## Solution
Parse each nonblank line as a JSON object and reuse the existing table
preview. Top-level keys become columns in first-seen order, with new
keys from later records appended to the right.
- Preserve JSON values, including large numbers, without numeric
conversion.
- Display nested objects and arrays as compact JSON.
- Keep missing fields, `null`, `"null"`, and empty strings distinct.
- Show invalid-record errors with source line numbers and recover after
edits.
- Preserve sorting and filters unless column names or order change.
- Add JSONL/NDJSON to the existing preview shortcuts and document the
behavior.
Also fix a crash found during CSV regression testing: deleting rows
could leave the renderer using an old row mapping against shorter data.
Clear the mapping and virtual list together before recomputing them.
The preview remains read-only, accepts object records only, and uses the
existing text-based sorting and full-file parsing behavior.
## Testing
- All 20 tests in `tabular_data_preview` passed.
- The multiline CSV deletion regression passed across 20 scheduler
seeds.
- `cargo fmt -p tabular_data_preview -- --check` passed.
- `./script/clippy -p tabular_data_preview` passed.
- `cargo build -p zed --bin zed` passed.
- `git diff --check` passed.
- Manual QA on macOS, including retesting the reported CSV crash.
Windows and Linux were not tested locally. Large-file performance has
not been benchmarked.
To try it, open a `.jsonl` or `.ndjson` file and run `tabular data: open
preview` or `tabular data: open preview to the side`.
## Self-Review Checklist
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
## Showcase
<img width="2358" height="1576" alt="image"
src="https://github.com/user-attachments/assets/8f7e7725-5a5c-465d-aa0a-d61cbb22d04f"
/>
The example shows source-order columns, fields introduced by later
records, nested values, and the distinction between missing values,
nulls, and strings.
Release Notes:
- Added JSONL and NDJSON support to the tabular data preview.
---------
Co-authored-by: Anthony Eid <anthony@zed.dev>
# Objective
Fixes#49883.
## Solution
Render completion detail suffixes with the muted text color while
preserving syntax highlights.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
## Showcase
| Before | After |
| --- | --- |
| 
| 
|
---
Release Notes:
- Fixed completion details lacking visual distinction from completion
labels.
## Objective
Fixes#63954
On Linux with client-side decorations, the window controls (close /
minimize / maximize) move 1px up and outward when the agent sidebar is
opened, and move back when it is closed.
## Solution
The title bar draws a 1px border in its own color to cover the window
border at the rounded corners, so the controls it renders sit 1px in
from the edge. When the sidebar is open,
`Sidebar::render_sidebar_header` renders the same controls without that
inset.
Added the matching 1px padding to the sidebar header under
`Decorations::Client`: top always, bottom only when no project is open
(otherwise the header's bottom border already accounts for it), and
left/right only on the side that renders the controls.
## Testing
Compared the close button position with the sidebar closed and open, on
stable 1.20.2 and on this branch, in a floating and a maximized window.
Before: moves by (-1, -1) px. After: stays on the same pixel in both
cases.
Tested on Fedora 44, GNOME on Wayland, with window buttons on the left.
Not tested with buttons on the right.
Validated with:
* `cargo build`
* `cargo test -p sidebar`
* `./script/clippy -p sidebar`
* `cargo fmt -p sidebar`
Before:
<img width="960" height="176" alt="before"
src="https://github.com/user-attachments/assets/c2b7dede-4c4c-4466-ba34-7666144e9cc1"
/>
After:
<img width="960" height="176" alt="after"
src="https://github.com/user-attachments/assets/d54172ca-be8e-4bb6-b5b3-ab193ac96423"
/>
## Self-Review Checklist
* [x] I've reviewed my own diff for quality, security, and reliability
* [x] Unsafe blocks (if any) have justifying comments
* [x] The content adheres to Zed's UI standards
* [ ] Tests cover the new/changed behavior
* [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed window controls shifting by 1px when the agent sidebar is open
on Linux.
---------
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
Buffers built for the commit view (git history -> open excerpts) were
assigned a language without attaching the language registry, so injected
grammars (Markdown-Inline, fenced code block languages) could not be
resolved and their captures went unstyled.
Attach the registry before assigning the language, matching the pattern
in text_diff_view.rs, and add a regression test asserting that a buffer
built via build_buffer parses with Markdown-Inline layers.
Fixes#64577
# Objective
- Describe the objective or issue this PR addresses.
- If you're fixing a specific issue, use "Fixes #X" for each issue as
[described in the GitHub
docs](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).
## Solution
- Describe the solution used to achieve the objective above.
## Testing
- Did you test these changes? If so, how?
- Are there any parts that need more testing?
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?
## Self-Review Checklist:
- [x ] I've reviewed my own diff for quality, security, and reliability
- [ x] Unsafe blocks (if any) have justifying comments
- [ x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ x] Tests cover the new/changed behavior
- [x ] Performance impact has been considered and is acceptable
## Showcase
> This section is optional. If this PR does not include a visual change
or does not add a new user-facing feature, you can delete this section.
- Help others understand the result of this PR by showcasing your
awesome work!
- If this PR includes a visual change, consider adding a screenshot,
GIF, or video
- A before/after comparison is very useful for changes to existing
features!
While a showcase should aim to be brief and digestible, you can use a
toggleable section to save space on longer showcases:
<details>
<summary>Click to view showcase</summary>
<img width="1170" height="831" alt="image"
src="https://github.com/user-attachments/assets/56d948b0-b9da-42ec-abb2-3b19a7b38948"
/>
</details>
---
Release Notes:
- Fixed syntax highlighting for Markdown emphasis, links, and code
blocks when viewing a file at a historical commit
Follow up to #64585
- Filter out deprecated models
- Cache model catalog on disk to reduce loading time
- Refresh models every hour
- Remove auth header when fetching models
All of this matches the behaviour of the OpenCode TUI
Release Notes:
- opencode: Hide deprecated models
- opencode: Improve performance when resolving models
- Fix raw-only tool creation displaying no output and successive
raw-output updates leaving stale text visible.
- Keep structured content separate from the cached raw-output fallback,
with one `content()` accessor shared by rendering, search, visibility
checks, and Markdown export.
- Reuse the fallback's Markdown entity across raw snapshots while
preserving existing formatting, permission handling, and native replay
sequencing.
## Display rule
Nonempty structured content takes precedence. When structured content is
empty, display the latest retained raw output. Clearing structured
content restores that fallback without requiring the agent to resend its
raw output.
Release Notes:
- Fixed missing or outdated output in agent tool results.
Stop inserting completed-plan cards into conversation history. Plan
progress stays in the existing plan panel instead of gaining a second
transcript presentation when a turn finishes.
- Keep the completed current plan visible in the plan panel, including
its existing **All Done** state.
- Let later plan updates revise that state in place, preserving Markdown
entity identity.
- Preserve **Clear Plan** and the existing next-turn cleanup of
completed rows.
- Remove the completed-plan transcript variant, snapshot calls, card
renderer, and associated search/export/view-state handling.
This was an experimental UI change when we had an update_plan tool in
the Zed agent. But now that this is ACP only, I think this
simplification is warranted, also because there are upcoming changes to
plans in RFD for v1 and v2 that will be id-based and allow future
updates.
Release Notes:
- N/A
# Objective
Add `From<u64>` implementation for `ElementId` to reduce boilerplate
code.
## Solution
`ElementId` already implements `From<usize>`, but many call sites deal
with `u64` IDs directly (for example, list items backed by `u64`
identifiers). On 32-bit platforms, `usize` can truncate `u64` values,
and forcing callers to write `as u64` / `as usize` casts is both noisy
and error-prone.
This PR adds a symmetric `From<u64>` implementation, reusing the
existing `ElementId::Integer` variant:
```rust
impl From<u64> for ElementId {
fn from(id: u64) -> Self {
ElementId::Integer(id)
}
}
```
The implementation lives in crates/gpui/src/window.rs, directly adjacent
to the existing `impl From <usize> for ElementId`, so the two stay in
sync. There is no new variant and no behavior change — this is purely an
ergonomics improvement.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- [GPUI] Impl From \<u64\> for ElementId
Fix an ownership cycle in ACP session loading: a connection-owned
pending task retained the thread, which in turn retained the connection.
Closing the loading view could therefore keep both alive indefinitely
while the agent's response was outstanding.
- Keep strong thread ownership with active callers; shared load/resume
operations retain only weak application references while awaiting the
agent.
- Preserve concurrent-load deduplication. Track session close alongside
pending loads so reopening the same session waits for the previous
operation's cleanup before registering a replacement.
- Drain queued foreground replay at cleanup boundaries, without adding a
barrier to successful live loads or changing their mode/config
initialization ordering.
- Ignore replay targeting a released model while preserving session-list
metadata updates.
## Lifecycle boundaries
Successful abandoned loads settle, attempt a best-effort close, and
drain queued replay before replacement. Failed loads drain and clean up
locally before retry, preserving the existing no-close-on-load-error
policy. The tracked close also covers releasing an already-loaded
thread.
This does not add timeouts or cancel detached filesystem/terminal work
already launched by a handler. Same-session reopening waits for the
earlier load/close to settle; pending wire operations no longer keep the
application connection alive by themselves.
Release Notes:
- Fixed external-agent session cleanup when closing and reopening
conversations.
## Objective
Native menu tracking can consume the mouse-up event that normally
cancels synthetic drag replay. Replaying that drag afterward would
alternate the stale pointer position with real mouse moves and flicker
hover state.
## Solution
Check `NSEvent.pressedMouseButtons` before replaying a synthetic drag
and stop when the original button is no longer physically pressed.
Another held button does not keep the old drag alive. Also stop the
timer when its window no longer exists.
The existing replay interval, generation cancellation, and callback
locking remain unchanged.
## Testing
To reproduce, slightly move while secondary-clicking a tab, dismiss its
native menu, then move across tabs and content. Before the fix, the old
tab's hover highlight can flicker as stale drag events repeat.
Release Notes:
- Fixed stale synthetic mouse drags causing hover flicker after native
menus are dismissed on macOS.
- [GPUI] Fix bug where native menu tracking could consume mouse up
events
# Objective
Make `editor: select next` / `editor: select previous` more powerful and
conform to VSCode behaviour
Partial fix for #15415
## Solution
When `editor: select next`/`editor: select previous`/`editor: select
all` is used from an existing selection, it'll now inherit whole-word
from the buffer search bar, while it's open.
If those commands are used starting from a single caret, continue to
always match whole words, with case sensitivity continuing to be
configurable in that case.
## Testing
Test both manually, as well as with unit tests:
- Updated `editor::editor_tests::test_select_next` with new assertion
for whole-word matching
- Added
`search::buffer_search::tests::test_set_active_pane_item_syncs_select_search_options`
- Added
`search::buffer_search::tests::test_search_option_change_during_selections`
- Added
`search::buffer_search::tests::test_show_syncs_select_search_options`
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- Improved `editor: select next` and `editor: select previous` to
respect the buffer search whole-word option.
---------
Co-authored-by: dino <dinojoaocosta@gmail.com>
- Make `MessageContent` own the original SDK content blocks and derive
rendering through borrowed views, removing the separately maintained
`UserMessage.chunks` vector.
- Retain assistant content-block metadata and payloads while revealing
streamed text through a source cursor, without a second pending-text
buffer or per-block shared ownership.
- Preserve existing v1 IDs, grouping, optimistic echo behavior, prompt
formatting, and Markdown/image identity. Standalone tool and compaction
output keeps its existing payload-retention contract.
- Reclaim spare source-vector capacity at turn settlement or
cancellation, with a bounded trailing range and stale-turn guards. Late
output can still append normally.
This is content-ownership preparation for ACP v2.
Release Notes:
- N/A
# Objective
- Fixes: #60353
However, this PR does not address the "...is that the command doesn’t
work at all if you have 2 or more panes open..." part, assuming that it
is an intentional design choice (Centered layout is already squeezed
enough.
One thing that can be done, is allowing multiple panes in zoomed (+
centered too, implicitly) view, that seems like a relevant but a
separate issue. I'll try to work on that, if there's any such need.
## Solution
- Use a separate `should_use_zoomed_and_centered_layout` boolean flag to
decide whether or not to show padding when zoomed in.
## Testing
- Tested manually (See showcase)
- Added automated test for checking left and right paddings when zoomed
+ centered layout is active
## Self-Review Checklist:
- [X] I've reviewed my own diff for quality, security, and reliability
- [X] Unsafe blocks (if any) have justifying comments
- [X] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [X] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable
## Showcase
https://github.com/user-attachments/assets/4269e40e-7c31-428d-b50e-8d3cb84b2370
---
Release Notes:
- Centered layout now works in zoomed in pane
---------
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
# Objective
The suggested-extension prompt only fires for a hand-picked list of file
types. Many rows had drifted from what their extensions actually
register today (`toml` didn't know `uv.lock`, `dockerfile` ignored
Compose files, …), entries were no longer sorted by ID, and the table
had no tests locking its invariants.
## Solution
- Synced every existing row against its extension's current
`path_suffixes`.
- Added 15 popular languages: asciidoc, csv, env, gdscript, groovy, ini,
json5, julia, just, nginx, odin, perl, python-requirements, scala,
solidity.
- Re-sorted by ID.
- Excluded despite appearing in manifests: erb compounds and elixir
`html.eex` (dead keys under exact-match), haskell `x`, asciidoc `asc`
(PGP clash), env/ini generic words (`conf`, `local`, systemd units…),
gdscript `import`, ruby `Berksfile.lock` (JSON). `gradle`/`gradle.kts`
stay with the groovy/kotlin rows.
- Behavior change: git-firefly is no longer suggested for
`COMMIT_EDITMSG` etc., mirroring upstream's own manifest — only
`COMMIT_EDITMSG` has built-in core coverage.
## Testing
- New tests lock suffix uniqueness across the table, ID sortedness, and
representative lookups for every row — including dotfiles (`.envrc`,
`.gitattributes`) and name-over-extension priority (`uv.lock`,
`compose.yaml`, `nginx.conf`).
- All 69 extension IDs were verified against
[zed-industries/extensions](https://github.com/zed-industries/extensions);
every kept suffix appears in that extension's live language config.
- Best exercised by checking out this branch, uninstalling e.g. the
`csv` extension, and opening a `.csv` file.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
<details>
<summary>Showcase</summary>
Before: opening `hello.sol` shows nothing — Zed silently moves on.
After: *"Do you want to install the recommended 'solidity' extension for
'sol' files?"*
</details>
---
Release Notes:
- Added extension installation suggestions for many more languages when
opening unsupported files
---------
Co-authored-by: MrSubidubi <finn@zed.dev>
# Objective
Fix the filtering of inlay hints around the buffer bounds.
The per-chunk range filter compared anchors, and anchor order includes
the bias.
A parameter hint (`anchor_before`) clamped to the end of the buffer
sorted before the chunk's end anchor and was kept, while a type/other
hint (`anchor_after`) exactly at the end of a file without a trailing
newline compared equal to it and was dropped.
Also remove the redundant `anyhow::Result` and `async` from the
LSP-to-project inlay hint conversion.
## Solution
- Drop LSP inlay hints whose line is past the last buffer row before
converting them.
Positions past a line's end are still clipped to the line end, as the
LSP spec prescribes for `Position.character`.
- Compare offsets instead of anchors in the per-chunk range filter, so
it does not depend on the hint's anchor bias, and treat the range end as
inclusive when it is the end of the buffer.
- Make `lsp_to_project_hint` a pure function over a `BufferSnapshot`.
The resolve path now converts the response against the same snapshot the
request position was produced from.
## Testing
- `test_inlay_hints_at_buffer_bounds`: row overflow for both hint kinds,
column overflow clipping on a non-last row, and a type hint exactly at
the buffer end.
Fails on `main` on the row overflow and the buffer end cases.
- An out-of-bounds parameter hint added to the collab
`test_inlay_hint_refresh_is_forwarded`.
- Manually verified that rust-analyzer's closing brace hint appears
after the final `}` of a file without a trailing newline.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed inlay hints positioned past the end of the buffer being shown on
its last line, and inlay hints exactly at the end of a file without a
trailing newline being hidden.
---------
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
# Objective
Fixes ZED-BW8 (``called `Option::unwrap()` on a `None` value`` in
`WrappedLineLayout::_index_for_position`). ZED-75K and ZED-81Z are the
same panic from older releases, and they almost always happen on Linux
when hovering markdown.
Hit testing a wrapped row assumes the next wrap boundary glyph never
sits past the line's width. cosmic-text breaks that assumption. It
computes the width by summing word widths but positions glyphs by
accumulating advances, so a trailing zero-width glyph (zero-width space,
ZWJ, emoji variation selector, combining accent) can land a few ulps
past the width. When that glyph is also a wrap boundary, the row before
it extends slightly past the width. A hit in that sliver made
`index_for_x` return `None`, and we unwrapped it.
## Solution
We now treat `None` from `index_for_x` as past the end of the row and
return `Err` with the row's end index, the same as positions beyond the
row's right edge. `index_for_x` itself is unchanged, so editor click
placement isn't affected.
## Testing
- `index_for_position_past_line_width` shapes `"Warning: this will
delete files\u{200b}"` with the bundled IBM Plex Sans at a 4px wrap
width, then hit tests exactly in the sliver past the width. It panics
without the fix.
- This isn't practical to reproduce by hand, since the sliver is about
1e-5px wide. macOS uses CoreText, which I don't think produces the
overshoot; the web build shares cosmic-text with Linux.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- Fixed a rare crash when hovering wrapped markdown text on Linux.
- [GPUI] Fixed a panic in `WrappedLineLayout::index_for_position` when
hit testing past a wrapped line's width.
LSP log streams can be consumed by split views and downstream clients.
Treating enablement as a single value lets one consumer disable a stream
that another consumer is still using.
Track the streams enabled by each view and reference-count each exact
server and log kind. Keep in-process view ownership separate from
downstream requests, preserve RPC capture while either has an active
consumer, and notify remote hosts only on the first enable and final
disable.
Represent log kinds independently so split views can consume logs,
traces, and RPC messages without overwriting one another.
---
This PR is a stacked follow-up to #61221. It is split out because
project isolation is independently mergeable, while reference-counting
changes the ownership and lifecycle semantics of LSP log streams and
benefits
from separate review.
---
Release Notes:
- Fixed closing one LSP Logs view stopping streams used by another view
or downstream client
---------
Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
# Objective
Get rid of instances of the `block` crate, as it will not compile in a
future version of Rust.
## Solution
Migrate an independent code block to the `objc2` crate family.
This is the last PR in this series, and we get to remove `block` as a
direct dependency!
## Testing
- Tested rendering on MacOS
Release Notes:
- N/A
- [GPUI] Removed `block` as a direct dependency
Closes https://github.com/zed-industries/zed/issues/64444
Ensures that with `ITERATIONS=200000 OPERATIONS=30`, each of the
following tests pass: `test_random_inlays`, `test_random_folds`,
`test_random_tabs`, `test_random_wraps`, `test_random_display_map`,
`test_random_blocks`, and 12/14 shards of the diff test.
Each comment contains the bug and the fix explanation.
Release Notes:
- N/A
This fixes this stupid bug and flicker that we would always select the
first entry when opening context menus for A11y reasons even when A11y
is disabled for the entire window. I call it a bug because it adds
nothing, flickers, and has annoyed me since this was introduced.
Release Notes:
- Fixed an issue where upon opening a context menu, the first entry
would be selected with a delay.
- [GPUI] Added method to query whether A11y support is forcefully
disabled for the current app.
## Summary
Run Danger on the preconfigured `namespace-profile-dangerbot` runner
instead of the shared `namespace-profile-2x4-ubuntu-2404` profile. The
dedicated profile lets Namespace inject the Danger proxy credential
through its egress policy without enabling that capability for unrelated
jobs on the shared profile.
Update the Rust workflow generator, generated workflow, and actionlint
runner-label allowlist together. The proxy URL and placeholder GitHub
token remain unchanged. Proxy-side secret validation is a separate
follow-up; this PR only switches the runner profile.
## Validation
- `cargo fmt --package xtask -- --check`
- `cargo xtask workflows` (including generated workflow validation)
- `actionlint -oneline .github/workflows/danger.yml` (v1.7.12)
- `git diff --check`
- Confirmed the `dangerbot` Namespace profile exists with Ubuntu 24.04,
2 CPUs, and 4 GiB RAM.
The first Danger run on this PR will exercise the new profile; local
checks do not verify runtime header injection.
Release Notes:
- N/A
## Why
The Community PR Board route check looks up the configured Track option
by exact name. The mapping for auth-related labels uses `Auth &
Zed.dev`, while the project option is `Auth & zed.dev`, so `route-pr`
fails when it handles those labels.
## What changed
Update the auth-related label mapping to use the existing `Auth &
zed.dev` Track name.
## Testing
- `python3 -m json.tool script/community-pr-track-mapping.json`
- `git diff --check`
Release Notes:
- N/A
Emit elicitation completion from the authoritative state transition
rather than from the task awaiting its response.
ACP request cancellation can drop the response task before canceling the
stored elicitation. Previously, the request became canceled but never
emitted `ElicitationResponded`. A regression reproduces the consequence:
idle-sleep prevention stays disabled even though the request is no
longer pending and the agent is still generating.
- Make response tasks receiver-only; emit completion from the owning
session thread or connection store.
- Distinguish resolving a pending request from canceling an
already-accepted URL flow, which must not emit a second response.
- Preserve existing response payloads, update-before-completion event
order, and duplicate/no-op behavior.
Release Notes:
- N/A
Implement Zed client support for the draft [ACP Session Notices
RFD](https://agentclientprotocol.com/rfds/session-notices), allowing
agents to surface operational advisories without turning them into
conversation history.
- Advertise the v1 notices capability behind the existing ACP beta
feature flag
- Keep notices in live, session-local state, with independent local
dismissal and no persistence, transcript/export entries, protocol
acknowledgement, or changes to generation status.
- Render dismissible callouts above the composer in a bounded scrolling
area. Support info, warning, and error treatments, with a generic
presentation for unknown severities and plain-text titles/descriptions.
- Provide screen-reader labels, keyboard dismissal with focus
restoration, and a single scrolling surface for long descriptions.
- Add a shared notice component and designer previews for severity
variants, title-only/detailed content, narrow layouts, and overflowing
stacks.
Open **workspace: open component preview**, then select **Agent →
Session Notice**.
<img width="829" height="316" alt="image"
src="https://github.com/user-attachments/assets/2a6eba57-465e-41e8-b99f-5f57c00199d8"
/>
Release Notes:
- N/A
Discover permission requests that are already pending when a thread is
registered with a conversation. Previously, registration only subscribed
to future authorization events, so a waiting tool call could exist in
the thread but remain absent from the conversation's pending-request
lookup and subagent permission counts.
- Seed tracking from existing `WaitingForConfirmation` tool calls in
entry order.
- Use the same deduplicating insertion path for initial state and
subsequent request events, preserving already-tracked order.
- Leave authorization-received removal, conversation-wide shortcut
policy, and preview interaction unchanged.
Not really an issue in practice for the zed agent, but will be
potentially for ACP v2
Release Notes:
- N/A
# Objective
The copy button on REPL output provides no visual confirmation after
copying. I noticed this when copying Python REPL output: it was unclear
whether the click had worked.
## Solution
Show a green checkmark and a “Copied!” popup below and to the right of
the copy button after copying. The feedback disappears after two
seconds, and clicking again restarts the timer.
Each output maintains its own feedback state. The change is limited to
REPL output controls; the shared CopyButton component is unchanged.
## Testing
The following checks passed on macOS:
- `cargo check -p repl --offline --locked`
- Rust formatting checks
- `git diff --check`
Manually tested on macOS:
- Copying REPL output puts the expected content on the clipboard.
- A green checkmark and a “Copied!” popup appear beside the copy button.
- The feedback disappears after two seconds.
- Clicking again restarts the timer.
- Copy feedback is independent for each output.
Manual verification steps:
1. Run `cargo run` and open a Python file with an available REPL kernel.
2. Execute `print("Copy feedback test")` and click the output's copy
button.
3. Confirm that a green checkmark and a “Copied!” popup appear
immediately, with the popup below and to the right of the button.
4. Paste the clipboard contents and confirm that they match the output.
5. Confirm that the feedback disappears after two seconds and repeated
clicks restart the timer.
6. Run multiple outputs and confirm that copying one does not change
another output's feedback.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
## Showcase
<img width="2530" height="598" alt="image"
src="https://github.com/user-attachments/assets/62be2f77-c186-4046-923b-22157210dc59"
/>
---
Release Notes:
- Fixed missing visual feedback when copying REPL output.
---------
Co-authored-by: dino <dinojoaocosta@gmail.com>
This PR shares grouping, sorting, duplicate handling, and list rendering
between which-key and the pending keystrokes indicator. Which-key keeps
its existing list behavior. The indicator adopts that behavior and
replaces its 10-entry limit with scrolling.
**What changes?**
| Area | Which-key popup | Indicator popover |
|---|---|---|
| Grouping | Unchanged | ***Groups bindings with the same next key under
`+N keybinds`, instead of listing each action*** |
| Sorting and duplicates | Unchanged | ***Uses which-key's existing
rules***, detailed below |
| Key display | ***Uses keybinding components instead of standalone text
labels***, preserving Vim-style notation | Keeps keybinding components |
| Header | ***Adds "is waiting for more keys…" beside the pending
keys***; keeps the divider | Keeps the waiting message; ***adds a
divider*** |
| Rows | Keeps aligned columns and truncated action labels; ***uses
smaller labels and fixed row heights*** | ***Adds aligned columns, fixed
row heights, truncated action labels, and highlighted group counts*** |
| Long lists | Remains scrollable | ***Shows all prepared rows in a
scrollable list, instead of the first 10*** |
| Scroll position | ***Resets when pending keys change or clear*** |
***Resets when pending keys change or clear*** |
Sorting puts individual bindings before groups, then sorts by remaining
key count, key-label length, and key text. Within each group, duplicate
handling removes adjacent identical key sequences even if their actions
differ. After sorting, it removes adjacent identical key/action rows.
**What is shared?**
- Grouping, sorting, duplicate handling, and the resulting rows.
- The pending-key header, divider, key formatting, columns, action
labels, and scrollable list.
- Tests for list preparation and key display.
**What remains separate?**
| Part | Which-key popup | Pending keystrokes indicator |
|---|---|---|
| Filtering | Excludes a hardcoded set of Vim-related sequences | Does
not apply those exclusions |
| Container | Bottom-right modal with its own size limits |
Tooltip-styled popover anchored to the status bar item |
| Interaction | Automatic opening, modal focus, and dismissal | Status
bar button, countdown, click action, hover handling, and timeout
pausing/resuming |
The pending keystrokes indicator is hidden in Vim/Helix mode, so it does
not need which-key's Vim-related filtering. This refactor preserves each
view's existing filtering and visibility behavior.
**Screenshots**
| | Before | After |
|---|---|---|
| Which-key | <img width="300"
src="https://github.com/user-attachments/assets/892313c8-ad07-4c8b-b2b2-8a14944e8a37"
/> | <img width="300"
src="https://github.com/user-attachments/assets/9475b17d-e254-497c-99e9-55f812ff8fad"
/> |
| Which-key (Vim mode) | <img width="300"
src="https://github.com/user-attachments/assets/8aae5c73-7d73-4f19-a4f0-1d82574b79db"
/> | <img width="300"
src="https://github.com/user-attachments/assets/98576381-e208-4658-95e0-40544026f2c2"
/> |
| Indicator popover | <img width="300"
src="https://github.com/user-attachments/assets/cbf9fa63-2766-4b85-bc0f-f5b3ae2e4c68"
/> | <img width="300"
src="https://github.com/user-attachments/assets/a94180e6-d910-474f-8d74-fc83cec83aec"
/> |
Release Notes:
- Improved the pending keystrokes indicator with grouped bindings, a
scrollable list, and a clearer layout.
I ran into this while working on keybindings for the pending-keystrokes
indicator. Keystroke interceptors never received standalone modifiers.
GPUI recognizes a standalone modifier on release through a
`ModifiersChangedEvent`. But interception only handled `KeyDownEvent`s,
so the stroke went straight to keymap dispatch. This change passes the
recognized keystroke to interceptors instead of checking the raw event
type.
1. Recording standalone modifiers
With this binding in `keymap.json`, start recording a binding, then
press and release Shift:
```json
[
{
"bindings": {
"shift": "command_palette::Toggle"
}
}
]
```
- Before, the command palette opens and Shift is not recorded.
- After, the recorder captures `shift` without opening the command
palette.
2. Searching for standalone modifiers
With these bindings, enable keystroke search, turn exact matching off,
then press and release Control:
```json
[
{
"context": "Editor",
"bindings": {
"ctrl": "command_palette::Toggle",
"ctrl-k": "command_palette::Toggle"
}
}
]
```
- Before, holding Control finds Ctrl-K but not Control alone. Releasing
Control clears the modifier query.
- After, releasing Control records it as a standalone key, and non-exact
search finds both Ctrl-K and Control alone.
Release Notes:
- Fixed recording and searching for standalone modifier-key bindings in
the keymap editor.
- [GPUI] Fixed keystroke interceptors to receive standalone modifier
keystrokes.
# Objective
Enable macOS three-finger Look Up / translation for rendered Markdown,
including Markdown Preview when it is the active focused item.
## Solution
- Register a read-only input handler for rendered Markdown when either
the Markdown view itself is focused or Markdown Preview provides the
active focus handle.
- Reuse the existing rendered Markdown text mapping for visible text
extraction, hit testing, and bounds calculation.
- Add UTF-16 range conversion so AppKit lookup requests map correctly
between macOS text ranges and Markdown source ranges, including CJK text
and emoji.
Release Notes:
- Improved Markdown Preview by supporting macOS Look Up / translation
gestures when focused.
---------
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
# Objective
- Make GPT-6 Sol and GPT-6 Luna available through OpenAI API keys.
## Solution
- Add both models with their documented limits and capabilities,
including effort-dependent sampling behavior.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Added GPT-6 Sol and GPT-6 Luna support to the OpenAI provider.
Co-authored-by: Anant Goel <anant@zed.dev>
# Objective
- Make Claude Opus 5.5 usable through Anthropic API keys.
## Solution
- Apply Opus 5.5's adaptive-thinking, sampling, tool-choice, Fast mode,
compaction, and prefix-binding requirements through the shared Anthropic
request path.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Added Claude Opus 5.5 support to the Anthropic provider.
Co-authored-by: Anant Goel <anant@zed.dev>
# Objective
- Show newly available account models in the ChatGPT subscription
picker.
## Solution
- Request the ChatGPT model catalog with client version `0.999.0` so
current model-version gates pass.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Fixed newly available ChatGPT subscription models not appearing in the
model picker.
Co-authored-by: Anant Goel <anant@zed.dev>
## Objective
Each rendering backend looked up the atlas texture for a sprite batch
with an `unwrap`, so a scene referencing a texture the atlas had already
released aborted the process (`metal_atlas.rs:196` in the Delta crash
reports). This happens when an image is dropped while a cached view
still replays a paint from before the drop — Delta hit it when
re-rasterizing a zoomed Mermaid diagram.
## Solution
Texture lookups now return `Option`, and the Metal, wgpu, and DirectX
sprite draws skip a batch whose texture is gone. The stale paint is
replaced as soon as its view re-renders, so nothing is lost beyond that
frame. wgpu also drops the cached bind group for a released texture and
no longer fails the whole frame on a missing one.
This is a renderer-level safety net and is complementary to #64619,
which fixes the lifetime rule in `Window` so that atlas entries are not
released while a retained frame still references them. Both can land
independently.
## Testing
- `corgi test -p gpui_apple metal_atlas` — 4 passed, including a new
regression that the lookup reports `None` after the last tile is
removed.
- `cargo test -p gpui_wgpu wgpu_atlas` — 5 passed (extended the
generation test to assert `None` after removal).
- `corgi check -p gpui_wgpu`.
- DirectX changes are the same shape but have **not been compiled**; no
Windows target available.
Release Notes:
- N/A
- [GPUI] Fixed a crash when an image was removed from the sprite atlas
while a cached view still referenced it.
Adds optional model selection to `spawn_agent`, allowing a newly spawned
subagent to use a specific configured model.
This is an additive change. Existing `spawn_agent` behavior remains
unchanged when `model` is omitted: Zed continues to use the configured
subagent model when one is set, otherwise the subagent inherits the
parent model.
The resulting selection order is:
`explicit model override` → `configured subagent model` → `parent model`
Explicit model IDs use the `provider/model-id` format returned by
`list_agents_and_models`. When an explicit model is supplied, it is
validated against the currently available models. If it is unavailable,
the spawn fails instead of silently substituting another model.
Resumed subagent sessions keep their original model, so `model` cannot
be supplied together with `session_id`.
This follows the model-selection use case discussed here:
https://github.com/zed-industries/zed/discussions/60993#discussioncomment-18450658
The change also makes the active model visible in native subagent cards,
including when the subagent happens to use the same model as its parent.
## Screenshot
<img width="820" height="959" alt="Screenshot From 2026-09-19 22-53-26"
src="https://github.com/user-attachments/assets/210db6e7-0068-45cc-aa96-f3a5aca3f90c"
/>
## Implementation
- Add an optional `model` field to `spawn_agent`.
- Preserve the existing configured-subagent-model and parent-model
fallback behavior when no explicit model is supplied.
- Validate explicit model selections against currently available models.
- Reject model overrides when resuming an existing subagent session.
- Keep `list_agents_and_models` available independently of the
create-thread feature flag so `spawn_agent` can use it for model
discovery.
- Allow native model discovery to work without the sibling-thread host,
while still including external agents when that host is available.
- Display the active model name in native subagent card headers.
## Testing
Manually tested explicit model selection by first calling
`list_agents_and_models`, then spawning five subagents concurrently with
exact discovered model IDs:
- `openai-subscribed/gpt-5.6-sol`
- `openai-subscribed/gpt-5.6-luna`
- `openrouter/inclusionai/ling-3.0-flash-vl:free`
- `openrouter/nex-agi/nex-n2.5-mini:free`
- `openrouter/nex-agi/nex-n2.5-pro:free`
All five subagents completed successfully, returned distinct session
IDs, and displayed their selected model names in the subagent cards.
Also added coverage for:
- forwarding an explicit model selection through `spawn_agent`
- rejecting a model override when resuming a session
- preserving the existing configured subagent model behavior when no
override is provided
- preserving parent-model fallback behavior
- exposing `list_agents_and_models` independently of sibling-thread
creation
## Self-Review Checklist
- [x] I have reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks: none added
- [x] The content adheres to Zed UI standards
- [x] Tests cover the new and changed behavior
- [x] Performance impact has been considered and is acceptable
---
Release Notes:
- Added model selection for spawned subagents.
---------
Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
# Objective
Fixes ZED-BJQ (`slice index starts at N but ends at N-1` in
`Editor::highlighted_display_rows_in_range`).
Since #63395, rendering only looks at the row highlights that intersect
the viewport, found with two binary searches over the stored ranges. If
a stored range has `start > end`, the two searches can cross and we
panic.
That happens with merge conflicts where one side is empty (one branch
deleted the block). The conflict parser built every side as
`anchor_after(start)..anchor_before(end)`, so an empty side became a
zero-width range whose start sorts after its end. When you type your
resolution at that spot, the start anchor moves past the new text while
the end stays put, and until the conflict set re-parses the highlight is
inside out. If the viewport lands inside the typed text on that frame,
Zed crashes.
## Solution
We now search for the start index only within the prefix that ends at
the end index, so an inverted range can never produce an inverted slice;
the existing per-highlight filter drops it. The parser also emits empty
sides as `anchor_before..anchor_after`, so they stay ordered and grow
around text typed into them, which also means the typed lines get the
"ours"/"theirs" color immediately instead of after the re-parse.
## Testing
- `test_row_highlights_for_empty_conflict_side_after_edit` parses an
empty-side conflict, stores its highlight plus a hand-built inside-out
range, types into the empty side, and renders every viewport. It panics
without the editor change.
- `test_parse_conflicts_with_empty_sides` checks the parser emits
ordered ranges for empty sides and that typed text lands inside them.
- To reproduce manually on `main`: open a file with a conflict whose
`ours` side is empty, put the cursor at the start of the `=======` line,
paste more lines than fit on screen, then scroll so only the pasted text
is visible before the conflict re-parses (easiest with a nonzero
`git.gutter_debounce`).
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- Fixed a crash when typing into an empty side of a merge conflict.
This is already handled a few lines below, and early returns on an empty
selection which breaks the `Ctrl + >` shortcut.
Release Notes:
- Allow `Ctrl + >` to be used with empty selections.
Fix a race where an external agent's process exit can be reported before
its final session updates have been applied. Builds on the now-merged
stdio extraction in #64598.
A scripted-agent regression reproduced this with a successful final
prompt response: at the `LoadError::Exited` event, the transcript
contained only the user prompt; after the foreground queue settled, the
final assistant answer appeared.
- Keep child-process status separate from exit-error construction.
- After exit, wait for clean SDK inbound closure and an acknowledgment
behind queued foreground updates, concurrently with stderr completion.
- Bound the drain to 250ms so inherited open pipes or transport errors
cannot indefinitely delay exit reporting.
- Preserve the separate initialization-error grace period and existing
explicit-drop cancellation behavior.
The source change is confined to `crates/agent_servers/src/acp.rs`. No
SDK changes, protocol negotiation, restart policy, or general session
coordinator are introduced.
### Behavior boundaries
- The deadline bounds exit reporting, not descendant lifetime while a
caller retains the connection. Timeout is best effort and cannot
guarantee complete final traffic.
- Existing trailing-stderr selection is unchanged, but the diagnostic is
sampled after draining. Independent pipe reads can place protocol
messages after stderr in the debug log, so captured stderr is not
necessarily included in `LoadError.stderr`.
- The mixed-stream regressions assert transcript contents, inbound-close
state, and diagnostic capture at exit-event delivery. The stderr-only
startup regression retains an exact error-text assertion.
Release Notes:
- acp: Fixed external-agent exit errors appearing before the agent's
final response updates were applied.
Extract ACP process/stdio construction so it can be reused independently
of protocol initialization, while keeping the existing v1 connection
behavior unchanged.
- Move command resolution, environment/CWD handling, pipe creation, line
framing, and debug taps into a private `spawn_stdio` factory.
- Keep task startup, child-process ownership, initialization,
authentication fallback, and shutdown in `AcpConnection`. The factory
returns an unpolled stderr future rather than starting another task.
- Move the existing debug log and its tests into a dedicated module,
preserving public message types, reexports, parsing, and subscription
behavior.
- Add a bounded real-process regression covering repeated fresh spawns,
environment/CWD, newline framing, incoming/outgoing debug capture, and
stderr trimming.
This does not add automatic restart, protocol negotiation, or new
shutdown/drain behavior. The larger diff is primarily relocation of
existing code and tests.
Release Notes:
- N/A
Closes#62923
# Objective
Deleted Git gutter markers collapse into a lens and disappear when the
configured gutter width is narrow relative to the buffer line height.
## Solution
- Clamp the deleted marker's corner radii to the marker quad.
- Keep the existing proportional width calculation for default and
custom gutter widths.
- Restore the width helper and its unit test to their behavior on
`main`.
## Testing
- `cargo build -p zed` passes on macOS with Apple's Metal Toolchain
installed.
- `git diff --check` passes.
- Checked before and after at default width, custom width 1, and custom
width 3 with 15 px and 19 px buffer fonts.
- The deleted marker remains full line height in all six patched cases.
The green added-line strip still follows the configured gutter width.
## Self-Review Checklist:
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks, if any, have justifying comments
- [x] The content adheres to Zed's UI standards
- [x] Tests cover the new behavior
- [x] Performance impact has been considered and is acceptable
## Showcase
Before/after comparison: see the latest visual verification in the PR
conversation.
## AI assistance
Codex helped trace the paint geometry, prepare the focused patch, and
assemble the visual comparison. I reviewed the diff and the rendered
results before submission.
---
Release Notes:
- Fixed deleted Git gutter markers disappearing at narrow custom widths.
---------
Co-authored-by: Kirill Bulatov <mail4score@gmail.com>