fix(cli): revert tools:[] to empty config for provider compatibility

Revert tools:[] to empty config {} to avoid provider compatibility
issues. Empty tools array is truthy and gets passed through to API
requests, which can cause errors on some providers. Omitting the
tools field entirely achieves the same effect (no tool access).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shaojin Wen 2026-03-14 17:24:43 +08:00
parent a9c2866ca8
commit b1b5f72507
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ describe('btwCommand', () => {
],
},
],
{ tools: [] },
{},
expect.any(AbortSignal),
'test-model',
);

View file

@ -45,7 +45,7 @@ async function askBtw(
],
},
],
{ tools: [] },
{}, // No tools — btw questions are text-only
abortSignal,
model,
);