feat: distinguish Claude Desktop App / IDE / CLI sessions - #175
Merged
Merged
Conversation
Claude Code can be launched from three different surfaces that all show
up as plain `claude` processes today: a terminal CLI install, the Claude
desktop app's bundled Claude Code binary, and an editor extension (VS
Code, Cursor, Windsurf, ...). abtop previously labeled all of them
identically as "claude" with no way to tell which is which.
Add a `LaunchSurface` (Cli/App/Ide) classified from each session's
resolved process command path:
- `.../Claude/claude-code/...` (Electron userData layout) -> App
- `.../extensions/anthropic.claude-code-.../...` -> Ide
- everything else (homebrew/npm/native installs, the auto-updater's
`claude/versions/<ver>` layout) -> Cli (default, unchanged behavior)
The sessions table's existing 3-char agent label ("*CC") now gets a
trailing suffix letter for the less common surfaces: "*CCa" for the
desktop app, "*CCi" for an IDE extension. Plain CLI sessions are
unaffected. Also threaded through to the JSON snapshot (`SessionView`)
for headless consumers.
Codex and OpenCode sessions always report `Cli` — no desktop-app or
editor-extension equivalent is known for those tools.
Add a "Legend" entry to the in-app keybinding help (`?`) explaining the
a/i suffix, in English and Chinese, since the suffix alone isn't
self-explanatory.
Contributor
Author
|
@graykode not sure my updates for the PR description doesn't retain. |
Contributor
Author
There has been a bug preventing me from updating the PR description. It works now. |
graykode
approved these changes
Sep 14, 2026
graykode
left a comment
Owner
There was a problem hiding this comment.
Reviewed the changes for release security. No blocking security issues found. Tests and Clippy passed locally. The command-line launch-surface classification can produce incorrect labels, but does not affect permissions or process termination checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Claude Code can be launched from three different surfaces that all show up as plain
claudeprocesses today: a terminal CLI install, the Claude desktop app's bundled Claude Code binary, and an editor extension (VS Code, Cursor, Windsurf, ...). abtop previously labeled all of them identically as"claude"with no way to tell which is which.LaunchSurface(Cli/App/Ide) classified from each session's resolved process command path:.../Claude/claude-code/...(Electron userData layout) → App.../extensions/anthropic.claude-code-.../...→ IDEclaude/versions/<ver>layout) → CLI (default, unchanged behavior)*CC) gets a trailing suffix letter for the less common surfaces:*CCafor the desktop app,*CCifor an IDE extension. Plain CLI sessions are unaffected.SessionView) for headless consumers.Cli— no desktop-app or editor-extension equivalent is known for those tools.?) explaining the a/i suffix, in English and Chinese.Test plan
cargo test— 207 passedcargo clippy --all-targets— cleanrustfmt --checkon all touched files — cleanps:draw_sessions_panelviaTestBackendto confirm*CC/*CCa/*CCirender correctly.