Skip to content

Commit 578bd00

Browse files
committed
fix(claude): find workflow size through the Providers search result
A separate search result for Dynamic workflow size opened Providers without selecting Claude or the row, because per-instance fields have no search targets. List it in the Providers result like the other instance fields. Describe which value wins under Use default and against managed Claude Code settings, and cover the setting next to the tool search override.
1 parent d8b882d commit 578bd00

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,17 @@ describe("ClaudeAdapterV2 runtime query policy", () => {
366366
resume: false,
367367
cwd: "/workspace",
368368
sdkSettings: { env: { OTHER: "kept" } },
369+
settings: { ...DEFAULT_CLAUDE_SETTINGS, workflowSizeGuideline: "large" },
369370
toolSearchOverride: "true",
370371
});
371372
assert.deepEqual((options.settings as { env?: Record<string, string> }).env, {
372373
OTHER: "kept",
373374
ENABLE_TOOL_SEARCH: "true",
374375
});
376+
assert.equal(
377+
(options.settings as { workflowSizeGuideline?: string }).workflowSizeGuideline,
378+
"large",
379+
);
375380
});
376381

377382
it("sends the workflow size guideline only when one is chosen", () => {
@@ -386,7 +391,6 @@ describe("ClaudeAdapterV2 runtime query policy", () => {
386391
}).settings as { workflowSizeGuideline?: string } | undefined
387392
)?.workflowSizeGuideline;
388393
assert.equal(sentSize("large"), "large");
389-
assert.equal(sentSize("unrestricted"), "unrestricted");
390394
assert.isUndefined(sentSize("default"));
391395
});
392396

‎apps/web/src/components/settings/settingsSearch.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ describe("searchSettings", () => {
196196
["Native sessions", "providers"],
197197
["CODEX_HOME path", "providers"],
198198
["Shadow home path", "providers"],
199+
["Dynamic workflow size", "providers"],
199200
] as const) {
200201
expect(searchSettings(title)[0]?.id, title).toBe(id);
201202
}

‎apps/web/src/components/settings/settingsSearch.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -608,12 +608,6 @@ export const SETTINGS_SEARCH_ITEMS = [
608608
scope: "environment-defaults",
609609
searchTerms: ["claude context compaction idle cache tokens usage summary resume"],
610610
},
611-
{
612-
id: "dynamic-workflow-size",
613-
title: "Dynamic workflow size",
614-
to: "/settings/providers",
615-
searchTerms: ["claude ultracode agents subagents limit guideline small medium large"],
616-
},
617611
{
618612
id: "auto-settle-merged-threads",
619613
title: "Auto-settle merged threads",
@@ -928,7 +922,7 @@ export const SETTINGS_SEARCH_ITEMS = [
928922
title: "Providers",
929923
to: "/settings/providers",
930924
searchTerms: [
931-
"agents cli codex claude cursor grok fx kiro opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory codex_home shadow home endpoint arguments environment variables display name accent color custom favorite hidden auto compact native sessions import resume",
925+
"agents cli codex claude cursor grok fx kiro opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory codex_home shadow home endpoint arguments environment variables display name accent color custom favorite hidden auto compact native sessions import resume dynamic workflow size",
932926
],
933927
},
934928
{

‎docs/user/providers-claude.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ over 200,000 tokens. Each Claude provider's settings can override it:
8383
**Dynamic workflow size** in the Claude provider settings sets how many agents Claude
8484
aims for when it writes a workflow: Small (under 5), Medium (under 10), Large
8585
(under 50), or Unrestricted. It is a guideline, not a hard limit. **Use default**
86-
keeps Claude Code's own `/config` choice, which is Medium, or Small on Pro plans,
87-
until you change it. Any other choice overrides `/config` for that Claude instance.
86+
leaves the size to Claude Code: a value in its settings files, otherwise your `/config`
87+
choice, which starts at Medium, or Small on Pro plans. Any other choice overrides both
88+
for that Claude instance. Organization-managed Claude Code settings still win.
8889

8990
## Usage limits
9091

‎packages/contracts/src/settings.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ export const ClaudeSettings = makeProviderSettingsSchema(
840840
Schema.annotateKey({
841841
title: "Dynamic workflow size",
842842
description:
843-
"How many agents Claude aims for in a workflow. A guideline, not a hard limit. Use default keeps Claude's /config choice.",
843+
"How many agents Claude aims for in a workflow. A guideline, not a hard limit. Use default keeps Claude Code's own setting.",
844844
providerSettingsForm: {
845845
control: "select",
846846
options: CLAUDE_WORKFLOW_SIZE_GUIDELINES,

0 commit comments

Comments
 (0)