zed-industries / zed-industries/zed
agent::Toggle does not toggle Agent panel visibility on first invocation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 90.6k
- Forks
- 10.7k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 417
Description
Reproduction steps
- Open Zed with the Agent panel available.
- Ensure the Agent panel is visible but not focused.
- Invoke agent::Toggle.
- Observe that the Agent panel is focused, but remains visible.
- Invoke agent::Toggle again.
- Observe that the Agent panel is now hidden.
- For comparison, invoke outline_panel::Toggle when the Outline panel is visible but not focused. It immediately hides the panel on the first invocation.
Current vs. Expected behavior
Current behavior
agent::Toggle behaves like a combination of agent::ToggleFocus and a toggle:
• The first invocation focuses the Agent panel without hiding it.
• The second invocation hides the Agent panel.
This differs from other panel toggle actions such as outline_panel::Toggle, which immediately hide/show their respective panel on a single invocation.
Expected behavior
agent::Toggle should consistently toggle the visibility of the Agent panel:
• If the Agent panel is visible, the first invocation should hide it.
• If the Agent panel is hidden, the first invocation should show it.
• It should not focus the panel as an intermediate step.
Since agent::ToggleFocus already exists specifically for focusing the Agent panel, agent::Toggle should behave like the other Toggle actions and only control panel visibility.
Zed version and system specs
Zed: v1.16.3+stable.347.03e2e21e3094909e6f9cad7d92e6580b13d6f05f (Zed)
OS: macOS 15.7.7
Memory: 16 GiB
Architecture: aarch64
Attach Zed log file
Zed.log
Relevant Zed settings
settings.json
Relevant Keymap
keymap.json
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the agent::Toggle action and compare its behavior with outline_panel::Toggle and the existing agent::ToggleFocus action. Reproduce the visible-but-unfocused Agent panel case, then verify that one invocation hides it, one invocation shows it again, and focusing remains the responsibility of agent::ToggleFocus.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100