Skip to content

Commit abc8f83

Browse files
committed
test(claude): cover the workflow size override of launch arguments
A chosen size overrides a --settings value from Launch arguments and Use default keeps it. The test now checks both. Name that value in the user guide, and let settings search find the field by "ultracode" and "guideline" as well.
1 parent 578bd00 commit abc8f83

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,19 +379,20 @@ describe("ClaudeAdapterV2 runtime query policy", () => {
379379
);
380380
});
381381

382-
it("sends the workflow size guideline only when one is chosen", () => {
382+
it("a chosen workflow size overrides the one from launch arguments", () => {
383383
const sentSize = (workflowSizeGuideline: ClaudeSettings["workflowSizeGuideline"]) =>
384384
(
385385
ClaudeAdapterV2.makeClaudeQueryOptions({
386386
modelSelection: CLAUDE_TEST_MODEL_SELECTION,
387387
nativeThreadId: "native-workflow-size",
388388
resume: false,
389389
cwd: "/workspace",
390+
sdkSettings: { workflowSizeGuideline: "small" },
390391
settings: { ...DEFAULT_CLAUDE_SETTINGS, workflowSizeGuideline },
391392
}).settings as { workflowSizeGuideline?: string } | undefined
392393
)?.workflowSizeGuideline;
393394
assert.equal(sentSize("large"), "large");
394-
assert.isUndefined(sentSize("default"));
395+
assert.equal(sentSize("default"), "small");
395396
});
396397

397398
it("projects AskUserQuestion input with question text as the answer key", () => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ export const SETTINGS_SEARCH_ITEMS = [
922922
title: "Providers",
923923
to: "/settings/providers",
924924
searchTerms: [
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",
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 ultracode guideline",
926926
],
927927
},
928928
{

‎docs/user/providers-claude.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ 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-
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.
86+
leaves the size to Claude Code: a `--settings` value in **Launch arguments**, then its
87+
settings files, otherwise your `/config` choice, which starts at Medium, or Small on Pro
88+
plans. Any other choice overrides all of these for that Claude instance.
89+
Organization-managed Claude Code settings still win.
8990

9091
## Usage limits
9192

0 commit comments

Comments
 (0)