diff --git a/apps/cli/tests/web-agent-presets.e2e.ts b/apps/cli/tests/web-agent-presets.e2e.ts index 03f538d20d..39e835fa62 100644 --- a/apps/cli/tests/web-agent-presets.e2e.ts +++ b/apps/cli/tests/web-agent-presets.e2e.ts @@ -860,8 +860,7 @@ describe('the default preset as a user setting', () => { setup: agentCtx => ctx.agentPresets.mount(agentCtx).then(() => undefined), }) try { - // `mount()` with no id resolves the effective default. One tool, not - // `standard`'s catalog: the setting decided the composition. + // An omitted preset id resolves the stored default instead of the composed default. expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'working_directory']) } finally { await handle.dispose() @@ -908,7 +907,7 @@ describe('a profile patch stored before Developer tools owned preset selection', setup: agentCtx => legacy.agentPresets.mount(agentCtx).then(() => undefined), }) try { - expect(toolNames(legacy, handle.agent)).toEqual(['bash']) + expect(toolNames(legacy, handle.agent)).toEqual(['bash', 'working_directory']) } finally { await handle.dispose() } @@ -925,7 +924,7 @@ describe('a session keeps the preset it was created with', () => { try { // The api-proxy guard reads exactly this: the header records what the // session runs, so naming anything else is a caller error rather than a - // switch. Its history was produced under `minimal`'s single tool. + // switch. expect(handle.agent.session.header.agentPreset).toBe('minimal') } finally { await handle.dispose() diff --git a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json index 50c145e724..7a8a75aa85 100644 --- a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json +++ b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json @@ -68,6 +68,7 @@ "web_fetch", "web_search", "workflow", + "working_directory", "write" ] }, @@ -125,6 +126,7 @@ "web_fetch", "web_search", "workflow", + "working_directory", "write" ] }, @@ -195,6 +197,7 @@ "web_fetch", "web_search", "workflow", + "working_directory", "write" ] },