Skip to content

Mark focused-pane notifications as read when the warp window is re-focused#10082

Open
harryalbert wants to merge 2 commits intomasterfrom
oz-agent/WAR-7383-notification-dot-window-focus
Open

Mark focused-pane notifications as read when the warp window is re-focused#10082
harryalbert wants to merge 2 commits intomasterfrom
oz-agent/WAR-7383-notification-dot-window-focus

Conversation

@harryalbert
Copy link
Copy Markdown
Contributor

@harryalbert harryalbert commented May 4, 2026

Summary

When the user shifts focus from one pane to another pane, we mark the notifications in that pane as read. We should do the same when a user shifts focus from a different app back into warp (for the pane that is then focused).

Demo

https://www.loom.com/share/343ab3ee8358495686e0dc30c4d4ba2a

Linear: WAR-7383

This PR was created by Oz (running Codex).

@cla-bot cla-bot Bot added the cla-signed label May 4, 2026
Co-Authored-By: Oz <oz-agent@warp.dev>
@harryalbert harryalbert force-pushed the oz-agent/WAR-7383-notification-dot-window-focus branch from 5fd3bba to ebc19eb Compare May 6, 2026 14:31
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@harryalbert harryalbert requested a review from zachbai May 6, 2026 14:37
@harryalbert harryalbert marked this pull request as ready for review May 6, 2026 14:38
@harryalbert harryalbert changed the title Clear notification unread state on window focus cg May 6, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 6, 2026

@harryalbert

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR adds a window-state handler path that clears focused terminal notifications when Warp becomes active again, in addition to existing focus changes.

Concerns

  • App reactivation can run before the async active-window update has replaced the previously active Warp window, so notifications may be marked read in the wrong window when the user returns by clicking a different Warp window.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/workspace/view.rs Outdated
@harryalbert harryalbert changed the title cg Mark focused-pane notifications as read when the warp window is re-focused May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants