fix(agents): probe Cursor version via resolved cursor-agent - #718
Merged
Conversation
Record the PATH `agent` collision fix as probe targeting, without renaming Cursor catalog identity.
Prefer `cursor-agent` when locating the Cursor CLI executable so list/inspect versions match that binary instead of a colliding `agent` on PATH. Keep binaryName and aliases unchanged.
The fallback fixture omitted /usr/bin, so which could not spawn and Cursor looked absent.
Keep preferredBinaries documented with line comments so tsdown does not emit JSDoc into the pinned dist/index.d.mts, then update the maintained v1 signature fixture to the new bytes/sha256.
cursor
Bot
force-pushed
the
cursor/fix-cursor-version-probe-f66c
branch
from
September 6, 2026 14:39
6a278fb to
fe820ac
Compare
Prefer cursor-agent via an internal lookup table keyed by canonical name. Restore AgentVersionProbe, catalog JSON/schema, and the v1 root-declaration pin so the exported type and symbol sets stay unchanged.
Drswith
marked this pull request as ready for review
September 6, 2026 14:57
Drswith
enabled auto-merge (squash)
September 6, 2026 15:00
This was referenced Sep 6, 2026
Drswith
added a commit
that referenced
this pull request
Sep 6, 2026
Sync accepted Cursor probe-targeting deltas into living specs after #718, and drop the completed change from the working tree without committing the generated archive directory. Co-authored-by: Cursor Agent <cursoragent@cursor.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.
Summary
qtx lsandqtx inspect cursorcould report a version from an unrelatedagentbinary onPATH. Cursor CLI stays catalogued asname=cursor,binaryName=agent, aliases["agent"]. Observation now locatescursor-agentfirst via an internal targeting table keyed by canonical name, then probes that resolved absolute path.Closed #714 failed CI by renaming
binaryNametocursor-agentand adding lookup aliascursor. This change does not touch catalog identity or list/inspect JSON fields.Product gate: the v1 root declaration type set and exported symbol set stay unchanged.
preferredBinariesis not a catalog field, not anAgentVersionProbemember, and not a root export.test/fixtures/compatibility/v1/root-declaration.jsonremains the existing pin (49262/8a2190…) because the builtdist/index.d.mtsmatches main with no type/export expansion.Rebased onto
mainafter #717. No P9, no config fold, no YAML /release-core.yml/ protect-main.Linked Artifacts
Validation
bun run lintbun run format:checkbun run typecheckbun run test(if behavior changed)bun run memory:checkbun run openspec:validateLocal results on
36ca3cc: lint 0 warnings / 0 errors; format and typecheck passed; OpenSpec 26/26; memory check passed; Vitest 176 files, 2138 passed, 5 skipped;bun run package:checkpassed. Builtdist/index.d.mtsmatches the maintained v1 pin: 49262 bytes /8a219038d08076caf26848dade2872ede86c823b3bccf55d421fed0c9d411d9f.AgentVersionProbestill has onlycommandandparser. NopreferredBinariesin the declaration. Probe helpers are not root exports.Release Intent
Release Summary
BEGIN_COMMIT_OVERRIDE
fix(agents): report Cursor CLI version from the resolved cursor-agent binary
qtx lsandqtx inspect cursornow probe the Cursor executable Quantex resolved (cursor-agentwhen present) instead of the firstagenton PATH.END_COMMIT_OVERRIDE
Docs Updated
openspec/...Scope Check
Closure Check
Notes
CI on
36ca3ccis green: lint, governance, test (ubuntu-latest), test (macos-latest). Windows is advisory and also passed. Canonical agent id remainscursor;binaryNameremainsagent; aliases must not includecursor.