Repository navigation
Conversation
Enterprise Claude Code wrappers enforce an argument allowlist and reject --settings, leaving the provider unverified and modelless on a working CLI.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused Claude capability-probe compatibility fix: normal behavior and isolation remain unchanged, while a single non-timeout failure can trigger a tested retry without You can add or adjust custom eligibility rules. Learn more. |
|
Note This comment is posted by Julius' dot The Tests section lists the new probe cases but gives no results from running them, and current-head CI is still waiting for approval. This leaves the retry behavior without the verification evidence required for triage. Please provide the focused probe test command and results, including the rejected-settings retry and timeout cases, then request reconsideration. |
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
settingsomitted — notdisableAllHooks: false, since theSDK 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-configand setting sourcessurvive the retry.
Tests
Suppression off omits settings; a CLI rejecting
--settingsretries once andkeeps isolation flags; timeouts don't retry.
Note
Retry Claude capability probe without
--settingson non-timeout failuresprobeClaudeCapabilitiesnow runs the probe once with hook suppression (--settings), and retries once without it if the first attempt fails for any reason other than timeoutrunClaudeCapabilitiesProbeAttemptso each attempt has its own abort controller and independentsuppressHooksflagbuildClaudeCapabilitiesProbeQueryOptionsgains an optionalsuppressHooksinput (defaulttrue); whenfalsethesettingsproperty is omitted entirely while other isolation options are preservedisRetryableProbeFailurewhich classifies every tagged probe failure exceptTimeoutErroras retryableundefinedafter a single attempt; non-timeout failures produce a warning log before retry and another warning if the final result still failsMacroscope summarized 1b4ce13.