What#
Hook suppression is only expressible as a --settings <json> argument.
Enterprise Claude Code wrappers — managed settings, argument allowlist,
Vertex/Bedrock backend — reject it, so the probe dies before returning init
data. The card reads "Could not verify Claude authentication status" and the
picker empties, on a CLI that runs sessions fine.
Retry once with settings omitted — not disableAllHooks: false, since the
SDK serializes any object into the argument. Timeouts aren't retried. Failures
were swallowed; now logged with cause.
Why#
Suppression only stops a health check firing SessionStart hooks — cheap to
lose, unlike capability discovery. --strict-mcp-config and setting sources
survive the retry.
Tests#
Suppression off omits settings; a CLI rejecting --settings retries once and
keeps isolation flags; timeouts don't retry.
Note
Retry Claude capability probe without --settings on non-timeout failures#
probeClaudeCapabilities now runs the probe once with hook suppression (--settings), and retries once without it if the first attempt fails for any reason other than timeout
- Extracts
runClaudeCapabilitiesProbeAttempt so each attempt has its own abort controller and independent suppressHooks flag
buildClaudeCapabilitiesProbeQueryOptions gains an optional suppressHooks input (default true); when false the settings property is omitted entirely while other isolation options are preserved
- Adds
isRetryableProbeFailure which classifies every tagged probe failure except TimeoutError as retryable
- Behavioral Change: timeout failures no longer retry and return
undefined after a single attempt; non-timeout failures produce a warning log before retry and another warning if the final result still fails
Macroscope summarized 1b4ce13.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes