-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
agent_ui: Show notifications also when the panel is hidden #40942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent_ui: Show notifications also when the panel is hidden #40942
Conversation
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.
|
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. |
danilo-leal
left a comment
There was a problem hiding this 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.
Now the feature will work with the existing notify_when_agent_waiting setting
|
@danilo-leal thank you for the feedback. Would you please take another look? |
There was a problem hiding this 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!
This comment was marked as resolved.
This comment was marked as resolved.
…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>
…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>
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: