Skip to content

Fix headless skill invocation + false-success detection - #2

Merged
joesaunderson merged 1 commit into
mainfrom
fix/headless-skill-invocation
Jul 10, 2026
Merged

Fix headless skill invocation + false-success detection#2
joesaunderson merged 1 commit into
mainfrom
fix/headless-skill-invocation

Conversation

@joesaunderson

Copy link
Copy Markdown
Owner

The launchd worker never actually ran a sweep. Two bugs:

  1. --setting-sources "" disabled skill discovery, so claude --print "/babysit-prs ..." returned Unknown command: /babysit-prs and did nothing. Dropped it; the --allowedTools allowlist still constrains tools, and settings.json rules still apply.
  2. Exit 0 was treated as success even though nothing ran. Switched to --output-format json and now gate success on is_error, subtype, and a non-empty result.

Verified

Headless dry-run now returns is_error: false, subtype: success, and a real sweep summary (correctly excluded a draft PR outside the 7-day window, classified the live one).

🤖 Generated with Claude Code

https://claude.ai/code/session_01HjC3rKLYTSqVqf6YG2taPc

Two bugs stopped the sweep actually running:
- `--setting-sources ""` disabled skill discovery, so `/babysit-prs`
  errored "Unknown command". Drop it; the tool allowlist still constrains,
  and the sweep is a skill so it must be discoverable.
- exit 0 was treated as success even when nothing ran. Switch to
  `--output-format json` and gate success on is_error/subtype/result.

Verified: headless dry-run now returns is_error=false, subtype=success,
and a real classified sweep summary.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HjC3rKLYTSqVqf6YG2taPc
@joesaunderson
joesaunderson merged commit a8905b5 into main Jul 10, 2026
2 checks passed
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.

1 participant