Tab icon not detected for Claude Code (shows generic shell icon)
Description
Warp does not display the Claude Code brand icon on tabs where Claude Code is running. The tab shows the generic >_ shell icon instead. Other CLI agents (Codex) are detected correctly in the same Warp window.
Environment
- Warp version: 0.2026.05.20.09.21.03 (auto-updated, latest as of report)
- OS: macOS Darwin 25.5.0
- Shell: zsh
- Node: v22.22.2 (via nvm)
- Claude Code: @anthropic-ai/claude-code v2.1.149
Reproduction
- Open new Warp tab
- Run
claude(launches Claude Code TUI) - Tab icon remains generic
>_instead of Claude branding
Expected
Tab shows Claude Code brand icon + status badge, as documented in https://docs.warp.dev/terminal/windows/vertical-tabs/
Actual
Tab shows generic shell icon. Codex tabs in the same window do show OpenAI icon correctly.
Process tree (current Claude Code tab)
Warp -> -zsh (login) -> npm exec @anthropic-ai/claude-code@latest -> claude -> /bin/zsh (subshell)
claude is invoked via an alias that wraps OTEL env vars + the binary call:
alias claude='CLAUDE_CODE_ENABLE_TELEMETRY=1 ... NODE_OPTIONS="--require .../intercept.js" npx -y @anthropic-ai/claude-code@latest'
Already tried
- Replaced
npx -y @anthropic-ai/claude-code@latestwith direct binary path/Users/hao/.nvm/versions/node/v22.22.2/bin/claudein the alias -> still not detected - This rules out npx wrapper as the cause
claude-code-warpplugin is installed and notifications work fine
Hypothesis
Detection may break when claude is launched through an alias with leading env-var assignments and NODE_OPTIONS=..., possibly because Warp inspects the literal command string rather than the resolved process. Codex works because it's invoked plainly (codex).
@H-lzu
Here's what I found while triaging this issue:
Thanks for the detailed process tree. This looks like Warp is missing Claude Code when it is launched through an alias that resolves to npx/npm exec or an absolute binary path instead of a plain claude command; it overlaps with the custom-wrapper detection gap in #8579.
I have a few follow-up questions before I can narrow this down:
- Could you attach a screenshot or short recording showing the affected tab while Claude Code is running?
- In a fresh tab on the same Warp build, if you bypass the alias and run bare
claudewith no leading env vars orNODE_OPTIONS, does the Claude icon appear?
Reply in-thread with those details and the triage workflow will automatically re-evaluate the issue and update the diagnosis, labels, and next steps.
Maintainer details
I concluded that claude Code tabs can stay on the generic shell icon when Claude is launched through an alias/npx-style wrapper instead of a plain claude command..
Triage summary
This looks like a real third-party CLI agent detection gap for Claude Code when it is launched through an alias/wrapper rather than as a plain claude command. The tab icon is driven by CLIAgentSessionsModel; if command detection does not create a Claude session, the vertical tab falls back to the generic terminal icon.
The current detection path resolves aliases and can skip leading environment assignments, but then compares the first meaningful command token to known agent prefixes. In the reported launch path, that token is likely npx/npm (or an absolute /.../bin/claude path in the alternate test), not exactly claude, so CLIAgent::Claude is not selected. Claude Code plugin notifications are a related but separate path; they can still work even if the initial tab/session classification misses.
Related issues found during duplicate search:
- #8579 covers broader support for custom commands/wrappers that invoke third-party CLI agents.
- #11296 recently reported Claude Code integration UI not activating when launched through tab config commands.
I am not marking this as a duplicate because I found fewer than two high-confidence existing reports with the same alias/npx Claude tab-icon symptom, and this issue adds useful Claude-specific process-tree evidence.
Suggested next checks
- Confirm whether a fresh tab running bare
claudewith no alias/env wrapper gets the Claude icon on the same Warp build. - Add regression coverage for alias values that expand to
npx -y @anthropic-ai/claude-code@latestand/or absolute.../bin/claudepaths if those launch forms should be treated as Claude Code. - Check whether the Claude Code plugin emits a
session_startevent early enough to seedCLIAgentSessionsModelbefore the first prompt/status notification.
Question reasoning
- Could you attach a screenshot or short recording showing the affected tab while Claude Code is running? — The symptom is visual, and media would confirm whether only the vertical-tab icon is generic or whether the broader Claude Code toolbar/status UI is also missing.
- In a fresh tab on the same Warp build, if you bypass the alias and run bare
claudewith no leading env vars orNODE_OPTIONS, does the Claude icon appear? — This distinguishes a wrapper/alias detection gap from a broader Claude Code plugin or tab icon regression.
This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz