[BUG] [Claude Desktop / Linux] Left-click on the tray icon does nothing: main Tray has a context menu but no click handler (still present in 6.28899.2)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 40/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- electron, javascript, linux
- Domain
- desktop-dev
Research direction
Unpack resources/app.asar from the shipped 6.28899.2 build and find where the main tray is constructed (new u.Tray(...) followed by setToolTip and setContextMenu) versus the per-artifact tray that calls .on("click", ...). Read the "Show App" menu item handler the click should reuse, then confirm nothing else attaches a listener to the main tray. Note the fix belongs in the Electron app's own sources, not this TypeScript CLI repository, and that #98678 was closed by a bot without an answer — check with a maintainer before starting.
Written by the indexing model from the issue text.
Description
Summary
On Linux, left-clicking the Claude Desktop tray icon has no effect. The window can only be shown through the right-click context menu ("Show App"). The expected behaviour, as with most tray applications on Linux desktops, is that a left click shows/raises the main window (ideally toggling show/hide).
This was already reported in #98678 (Claude Desktop 2.9939.4, Linux Mint / Cinnamon / X11), which was closed automatically as "not about Claude Code" with no answer on the substance. It still reproduces in 6.28899.2, now on KDE Plasma / Wayland, and another user confirmed it there on Ubuntu and Debian. Opening a new issue as that bot message suggests.
Steps to reproduce
- Start Claude Desktop on KDE Plasma (Wayland) with the tray icon enabled.
- Close or minimise the main window so the app keeps running in the tray.
- Left-click the tray icon.
Expected
The main window is shown and focused (or hidden if it was already visible).
Actual
Nothing happens. Right-click opens the context menu (Show App / Open Quick Entry / Quit), and "Show App" works.
Cause
In resources/app.asar (6.28899.2) the main tray icon is created with a tooltip and a context menu only:
Z9 = new u.Tray(u.nativeImage.createFromPath(i)), Z9.setToolTip(u.app.getName()), /* ... */ Z9.setContextMenu($9)
No listener is ever attached to that object: there is no Z9.on(...) anywhere in the bundle. On KDE Plasma the StatusNotifierItem host sends Activate on left click and opens the context menu only on right click, so the left click is silently dropped.
Two things in the same bundle suggest this is an omission rather than a design choice:
- The per-artifact tray icons do register a handler:
let n = new c.Tray(t); return n.on("click", ...). - The app ships this (currently disabled) balloon text: "Click the Claude icon in the system tray to reopen the app, or right-click to quit."
Registering a click handler on the main Tray that runs the same action as the "Show App" menu item should be enough.
Environment
- Claude Desktop 6.28899.2 (Electron 45.3.3), launched with
--ozone-platform=wayland - Arch Linux (rolling), x86_64, kernel 7.3.5 (xanmod)
- KDE Plasma 6.8.3, KWin 6.8.3, Wayland session
- libayatana-appindicator 0.6.1
- Install method: AUR package
claude-desktop6.28899.2-1, unmodified PKGBUILD. The packaging differs from Debian's, but the contents are the same: the PKGBUILD downloads the officialclaude-desktop_6.28899.2_amd64.debfromdownloads.claude.aiand extracts itsdata.tar.xzas is. The only replaced file is the/usr/bin/claude-desktoplauncher script;app.asarand the Electron binary are byte-for-byte the ones shipped in the .deb, so the tray code path is the upstream one.
An official Arch package (requested in #96963) would remove this ambiguity for reports like this one.
Workaround
Right-click the tray icon → "Show App".
- Dominant language
- TypeScript
- Stars
- 156k
- Forks
- 25k
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing 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.
More from anthropics/claude-code
-
area:vscode bug has repro platform:vscode platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anthropics/claude-code#111416 ·
-
area:plugins area:tui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anthropics/claude-code#111195 ·
-
area:docs area:security documentation enhancement platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#111180 ·
-
area:ide enhancement platform:macos platform:vscode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#111172 ·
-
area:mcp bug has repro platform:linux platform:wsl
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anthropics/claude-code#111077 ·
All issues in anthropics/claude-code
Similar issues
-
The manager preset saves launch definitions without the required file and digest pairPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day