Repository navigation
Conversation
Closes #11696 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review status
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Requires changes.
Engine claude-code (glm-5.3) · Reviewed commit 5bffdce · Trigger: open+push
Prompt arm: fable-1
Anchored outside the PR's changes — usually pre-existing; blocking severities here still gate, and defect provenance is the reviewer's judgment, not a verified claim.
packages/cli/src/session-cli.ts:32— P2 — Pre-existing CLI lacks sender support the allow-rule assumes
| : reject('not_delivered', 'Cursor CLI did not confirm the session.', true); | ||
| } | ||
|
|
||
| export function createCursorStart( |
There was a problem hiding this comment.
P1 · Cursor start/send never wired into production (confidence 0.95)
The PR body states drivers.ts "builds the Cursor adapter with the owned-folder reader and registers its close", but the diff (2 files, +661) contains no drivers.ts change, and a repo-wide search finds createCursorStart imported only by the new test — no production consumer. At head, family-operations/drivers.ts:726 still builds cursor-cli from createCursorDiscovery with capabilities ['find'], and no cursor counterpart of antigravity-adapter.ts composes a WorkAdapter. work.start/send/status/stop stay unavailable, so #11696 would close unfixed; the real-machine evidence came from a local merge with feat/hyperneo-send-reply-line. Add the drivers.ts registration and adapter composition to this PR. By inspection, unexecuted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Closes #11696
What
Build rung: the driver and its tests, exported but not yet called. A follow-up Wire PR registers it on the
cursor-cliadapter incursor-discovery.tsanddrivers.ts(about 20 lines) after this merges.createCursorStartprovidesstart,send,statusandstopforcursor-cliovercursor-agent acp(ACP v1). Before, Cursor CLI and Cursor Desktop only hadfind, so HyperNeo could not start a Cursor worker or message it.packages/daemon/src/lib/drivers/cursor-start.ts, modeled onantigravity-start.ts:session/new→session/prompt;sendresumes owned sessions withsession/load(reply collection starts after load, so replayed history is ignored);stopsendssession/cancel.sendonly accepts sessions HyperNeo started (work_started_sessionsviastartedFolders), same as Antigravity.replyCommandPermissionfrom fix: let Antigravity workers run the hyperneo send reply command #11698: only ahyperneo send …command is allowed once. Cursor's permission request carries no command, so the driver recordsrawInput.commandfrom the precedingtool_callupdate bytoolCallId. Everything else is cancelled.cursor-agent login.Size
cursor-start.tsis about 440 production lines, over the ~300 guide. It is one ACP session lifecycle: start, send (load), status and stop share the same transport, turn map and finish path, so a smaller slice would ship a session that cannot be resumed or stopped. The siblingantigravity-start.tsis 563 lines.Verified facts (cursor-agent 2026.11.22)
session/newsession persists only after its first prompt.session/loadreplays history assession/updatebefore its response.CURSOR_CONVERSATION_ID= the ACP session id; feat: give every external driver the hyperneo send reply line with --from #11695 reads it as thehyperneo sendsender.session/request_permissionhas norawInput; the command is only on thetool_callupdate.Real-machine evidence
Run with the wiring from the follow-up PR applied:
Isolated daemon (own DB and
HYPERNEO_DATA_DIR,HYPERNEO_SESSION_DOORpointing at it, real HOME), this branch merged locally withfeat/hyperneo-send-reply-line@ cfeab11:work.adapters→cursor-cli: ['find', 'start', 'status', 'send', 'stop']work.startcursor-cli → ok, refcursor-cli:88ec9b47-…, runningwork.sendasked the worker to run three commands:hyperneo send <caller> --from cursor-cli:88ec9b47-… --kind done FROM-PONG-…,hyperneo send <caller> --kind done ENV-PONG-…(sender fromCURSOR_CONVERSATION_ID), andtouch denied.txt.cursor-cli:88ec9b47-…within ~40 s;denied.txtwas not created.Tests
packages/daemon/tests/unit/1-core/drivers/cursor-start.test.ts(start + reply, load ignores replay, refuses unowned, sign-in detail, stop cancels; permission: reads the Cursor request shape — allowshyperneo send, cancels other commands, non-shell tool calls, unannounced tool calls and requests without allow-once. Injection cases live inreply-command-permission.test.ts).bun run checkpasses.🤖 Generated with Claude Code