Skip to content

Conversation

@cmclaughlin
Copy link
Contributor

@cmclaughlin cmclaughlin commented Oct 22, 2025

Currently Zed only displays agent notifications (e.g. when the agent completes a task) if the user has switched apps and Zed is not in the foreground. This adds PR supports the scenario where the agent finishes a long-running task and the user is busy coding within Zed on something else.

Releases Note:

  • If agent notifications are turned on, they will now also be displayed when the agent panel is hidden, in complement to them showing when the Zed window is in the background.
Added a new setting, called notify_when_agent_is_hidden, that's
disabled by default. It adds support for sending UI notifications
when the agent panel is hidden.

Currently Zed only displays agent notifications (e.g. when the
agent completes a task) when the user switches apps. This adds
additional messaging in the scenario that the agent finishes
a long-running task and the user is busy coding within Zed
on something else.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 22, 2025
@maxdeviant maxdeviant changed the title Added support for notifications when the agent the agent panel is hidden Oct 22, 2025
@cmclaughlin
Copy link
Contributor Author

Hello team,

This is my first time authoring Rust and my first PR for Zed, so please let me know if there's any room for improvement here. It was composed by Claude (in Zed), so hopefully it looks good to you.

Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cmclaughlin, thanks and congrats for the first PR; this is a super cool addition!

I actually think we can start out without having the setting and just follow the existing notify_when_agent_waiting one. Feels like it's a reasonable default; i.e., if the user has a non-null value for that setting, Zed would be notifying them if the app is either in the background or if the panel is hidden. IMO, we can test out simpler like this and re-evaluate the need for a setting later down the road.

@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Oct 27, 2025
Now the feature will work with the existing notify_when_agent_waiting
setting
@cmclaughlin
Copy link
Contributor Author

@danilo-leal thank you for the feedback. Would you please take another look?

Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for following it up & appreciate writing the tests!

@zed-industries-bot

This comment was marked as resolved.

@danilo-leal danilo-leal changed the title Add support for notifications when the agent panel is hidden Nov 1, 2025
@danilo-leal danilo-leal merged commit 03e0581 into zed-industries:main Nov 1, 2025
24 checks passed
scorphus pushed a commit to scorphus/zed that referenced this pull request Nov 1, 2025
…tries#40942)

Currently Zed only displays agent notifications (e.g. when the agent
completes a task) if the user has switched apps and Zed is not in the
foreground. This adds PR supports the scenario where the agent finishes
a long-running task and the user is busy coding within Zed on something
else.

Releases Note:

- If agent notifications are turned on, they will now also be displayed
when the agent panel is hidden, in complement to them showing when the
Zed window is in the background.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
tomatitito pushed a commit to tomatitito/zed that referenced this pull request Nov 7, 2025
…tries#40942)

Currently Zed only displays agent notifications (e.g. when the agent
completes a task) if the user has switched apps and Zed is not in the
foreground. This adds PR supports the scenario where the agent finishes
a long-running task and the user is busy coding within Zed on something
else.

Releases Note:

- If agent notifications are turned on, they will now also be displayed
when the agent panel is hidden, in complement to them showing when the
Zed window is in the background.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

4 participants