fix(agents): use cursor-agent binary for accurate version probing (P2) - #714
Closed
Drswith wants to merge 2 commits into
Closed
fix(agents): use cursor-agent binary for accurate version probing (P2)#714Drswith wants to merge 2 commits into
Drswith wants to merge 2 commits into
Conversation
The Cursor agent catalog incorrectly used "agent" as the binary name, which collided with the Quantex agent runtime. This caused version probes to report the wrong version when both were in PATH. Changes: - binaryName: "agent" → "cursor-agent" - versionProbe.command: ["agent", "--version"] → ["cursor-agent", "--version"] - selfUpdate.command: ["agent", "update"] → ["cursor-agent", "update"] - Added "cursor" to lookupAliases for natural invocation (via "qtx cursor") - Maintained backward compat: "qtx agent" still works via alias Verification: - qtx inspect cursor: reports correct version 2026.09.02-c22c1a3 - qtx ls: Cursor row shows correct installed version - qtx agent / qtx cursor: both work
14 tasks
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
Fixes Cursor agent version probing to use the correct binary name, eliminating collisions with the Quantex agent runtime.
The Cursor agent was configured to use
"agent"as its binary name and probe version viaagent --version. Since both Cursor and Quantex agents install asagentin PATH, the version probe could return the wrong version (Quantex runtime instead of Cursor CLI).Fix: Update Cursor catalog to use
cursor-agentas the primary binary name, matching Cursor's actual installation structure. Maintains backward compatibility vialookupAliases: ["agent", "cursor"].Linked Artifacts
Validation
bun run lint— passed (0 warnings, 0 errors)bun run format:check— passedbun run test— passed (background task completed with exit code 0)qtx inspect cursorshows correct version (2026.09.02-c22c1a3)qtx lsshows Cursor with correct installed versionqtx agentstill works (backward compat via alias)qtx cursornow works (new alias)Note:
bun run typecheckhas pre-existing type errors inscripts/release/verify-release-as.tsunrelated to this change.Release Intent
Release Summary
Fixes Cursor CLI version detection in
qtx lsandqtx inspect cursorby using the correct binary name (cursor-agent).Docs Updated
Scope Check
Closure Check
Notes
The fix involves only the agent catalog definition (
src/agents/catalog/cursor.json) and its generated representation. No changes to version probe parsing or core logic were needed—the issue was purely a data configuration error.