Skip to content

fix(jobs): clearer "job not found" hint for Claude Code background ids (#7)#13

Merged
freema merged 1 commit into
mainfrom
release/0.3.2
Jun 11, 2026
Merged

fix(jobs): clearer "job not found" hint for Claude Code background ids (#7)#13
freema merged 1 commit into
mainfrom
release/0.3.2

Conversation

@freema

@freema freema commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #7.

When /cursor:delegate runs as a Claude Code background command, Claude Code surfaces its own wrapper id (Command running in background with ID: …), not the Cursor job id. /cursor:status <that-id> then missed with a bare No job … found for this repository. and the user had no obvious way to recover the real id.

/cursor:status, /cursor:result, and /cursor:cancel now append a shared hint explaining the id mismatch and pointing at the no-arg listing (/cursor:status with no arguments lists tracked jobs) to recover the real id.

Approach

Test plan

  • npm test — 87/87 passing (3 new in tests/hints.test.mjs)
  • npm run lint — Prettier clean
  • Manually reproduced: status / result / cancel with a fake CC-style id now print the hint and exit 1

🤖 Generated with Claude Code

…b id (#7)

When /cursor:delegate runs as a Claude Code background command, Claude
Code surfaces its own wrapper id ("Command running in background with
ID: …"), not the Cursor job id. /cursor:status <that-id> then missed
with a bare "No job … found" and the user had no obvious recovery path.

status / result / cancel now append a shared hint (lib/hints.mjs#
jobNotFoundMessage) explaining the id mismatch and pointing at the
no-arg listing to recover the real id. Unit tests cover the message.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@freema freema merged commit 38eb080 into main Jun 11, 2026
6 checks passed
@freema freema deleted the release/0.3.2 branch June 11, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/cursor:status fails when delegate is started via Claude Code background command — wrong job ID surfaced to user

1 participant