fix(dockerfile): keep cursor-agent bundle, symlink to /usr/local/bin #1035
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!1035
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/cursor-agent-bundle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR #1032's cursor block copied only the
cursor-agentshell wrapper to/usr/local/binandrm'd/opt/cursor-agent. The wrapper is a bash script that resolvesSCRIPT_DIRviarealpathand execs the bundlednodeagainstindex.js+ chunk files shipped alongside it. With the bundle deleted, every container dispatch on aprovider: cursoragent failed with:Because
docker execreturned non-zero before any stream-json output, the cursor-cli-adapter saw stdout EOF immediately, no events, nocursor_cli_errorsystem event — runner marked task "done" with empty result.Fix
/opt/cursor-agent/usr/local/bin/cursor-agent→/opt/cursor-agent/cursor-agent(the wrapper'srealpath($0)resolves back to the bundle dir)chmod 0755the wrapper +nodeso the bundled interpreter is executableVerified
Follow-up (separate ticket)
Cursor adapter swallows the docker-exec exec-fail case silently — should emit a
cursor_cli_errorevent so the runner flags the dispatch instead of marking it "done" with empty output.