Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(provider): retry the Claude capability probe without --settings #10215

Closedgeirgp(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/10215/headopened View on GitHub

Showing 2 changed files with 134 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
134 additions and 0 deletionsapps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.tsModified
View file
@@ -52,6 +52,23 @@
assert.equal(options.env?.CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL, "1");
});
​
+it("omits probe settings entirely when hook suppression is disabled", () => {
+ const options = buildClaudeCapabilitiesProbeQueryOptions({
+ executablePath: "/usr/bin/claude",
+ abortController: new AbortController(),
+ environment: { HOME: "/home/user" },
+ cwd: undefined,
+ suppressHooks: false,
+ });
+​
+ // Not `{ disableAllHooks: false }`: the SDK serializes any settings object it
+ // is handed into a `--settings <json>` argument, so the key has to be absent
+ // for the argument to disappear.
+ assert.equal("settings" in options, false);
+ assert.deepEqual(options.settingSources, [...CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES]);
+ assert.deepEqual(options.mcpServers, {});
+});
+​
it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
it.effect("serializes strict no-MCP options and still resolves account capabilities", () =>
Effect.gen(function* () {
@@ -187,6 +204,98 @@
assert.equal(flagSettings.disableAllHooks, true);
}).pipe(Effect.scoped),
+​