Repository navigation
Detect agents started through an npm bin link (Qwen Code, Gemini CLI) - #21
Merged
Merged
Conversation
A global npm install or npx runs an agent as `node /…/bin/qwen`. That path doesn't contain the package name, so the argument markers missed it and Qwen Code (and Gemini CLI, Amp) weren't recognised. For a Node, Bun, Deno or Python launcher, the script it runs now also matches the agent's names. Verified live: a Qwen Code 0.28.4 session started from its bin link was missed by 0.1.10 and is now detected with its project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Published today; cargo-deny now fails every PR. cookie comes in through Tauri. AGASTHY doesn't use private cookies or fork, but the patched version clears the advisory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Bug: a standard global npm install or
npxrun of Qwen Code starts it asnode /opt/homebrew/bin/qwen(or…/node_modules/.bin/qwen). That path doesn't contain@qwen-code/qwen-code, and the process name isnode, soidentify()matched nothing and the session never appeared. Gemini CLI and Amp installed the same way had the same problem.Fix (
crates/process-manager/src/agents.rs): when the process is a Node, Bun, Deno or Python launcher, the basename of the script it runs (the first non-flag argument) is also matched against the agent'snames. The existing argument markers still work.Verified live: with Qwen Code 0.28.4 running from its bin link, the released 0.1.10 CLI listed only the Claude Code sessions. A CLI built from this branch lists
qwen-codewith its project folder.Tests: a new test
identifies_agents_started_through_a_bin_linkcovers Qwen Code via a global install and npx, Gemini CLI behind a--no-warningsflag, OpenClaw and pip-installed Aider. It also checks thatnode server.js qwenandnode /srv/app/index.jsare not treated as agents. All 28 process-manager tests pass.🤖 Generated with Claude Code