Skip to content

Tab Switcher – Weird state after closing item #44005

@dinocosta

Description

@dinocosta

Reproduction steps

  1. Start Zed on Zed's codebase – https://github.com/zed-industries/zed
  2. Open these files, in the following order:
  • crates/vim/src/normal.rs
  • crates/vim/src/state.rs
  • crates/vim/src/command.rs
  • crates/vim/src/visual.rs
  • crates/vim/src/yank.rs
  1. Run tab switcher: toggle all
  2. Use ctrl-n 2 times to go to state.rs
  3. Use ctrl-backspace to delete state.rs
  4. Observe pane activates command.rs but Tab Switcher highlight normal.rs

Current vs. Expected behavior

Current Behavior – The selected entry after closing the item does not match what the editor is showing ▼

CleanShot.2025-12-02.at.16.17.25.mp4

Expected Behavior – The selected entry should match the pane's active item.

Zed version and system specs

Zed: v0.214.7 (Zed)
OS: macOS 26.1
Memory: 36 GiB
Architecture: aarch64

Attach Zed log file

No response

Relevant Zed settings

No response

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

Labels

area:ui/tabsFeedback for tabs behavior, navigation, style, etcfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions