[BUG] Desktop app: clicking a notification focuses the main window instead of the window where the session is open

Status Open
Reported on v2.1.212
Maintainer reply None cached
Activity 0 comments · opened Aug 13, 2026

Environment

  • Claude Code: 2.1.212 (desktop app)
  • OS: macOS 26.5.2 (Build 25F84)

Description

When running sessions in multiple windows of the Claude Code desktop app, clicking a desktop notification (e.g. a task-complete notification) always brings the original/main window (the one with the menu) to the foreground — not the window that actually hosts the session the notification came from.

Steps to reproduce

  1. Open the Claude Code desktop app (main window).
  2. Open a session in a separate window. (The bug reproduces regardless of how the second window is opened.)
  3. Start a task in the session running in the separate window and switch to another app.
  4. When the notification for that session arrives, click it.

Expected behavior

Clicking the notification focuses the window that hosts the session the notification belongs to.

Actual behavior

The main/original window is brought to the foreground instead. The user then has to manually locate the window where the session is actually open.

Related issues

  • #62447 (notification focus stealing — related but different: this issue is about focus going to the wrong window on click, not about unsolicited focus stealing)
  • #62324 (dock icon focuses/spawns the wrong window on macOS)

View original on GitHub ↗