agent-orchestrator/packages/plugins/agent-cursor
copilot-swe-agent[bot] eb47662cae
fix(cursor): silence stderr bleed-through in detect() on Windows
execFileSync("agent", ["--help"]) with encoding but no explicit stdio
inherits stderr from the parent process. On Windows with shell:true,
cmd.exe prints "'agent' is not recognized as an internal or external
command" to the terminal even though the exception is caught.

Fix: add stdio:["ignore","pipe","ignore"] to capture stdout (needed for
Cursor marker checks) and discard stderr. Mirrors the pattern used by
the kimicode plugin's detect(). Also adds a 5s timeout as a safety net.

Zero behavior change on macOS/Linux: shell:false means Node throws ENOENT
directly with no subprocess output, so the try/catch already handles it.

Fixes the spurious error printed during ao start first-run setup on Windows.

Co-authored-by: Priyanchew <57816400+Priyanchew@users.noreply.github.com>
2026-05-04 16:59:15 +00:00
..
src fix(cursor): silence stderr bleed-through in detect() on Windows 2026-05-04 16:59:15 +00:00
CHANGELOG.md chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
package.json chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
tsconfig.json fix: scope node types to node packages 2026-04-13 18:25:21 +05:30