Fission-AI/OpenSpec · error
The --tools option requires at least one tool ID when not us
Error message
The --tools option requires at least one tool ID when not using "all" or "none".
What it means
Error "The --tools option requires at least one tool ID when not using "all" or "none"." thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/init.ts:731
const availableSet = new Set(availableTools);
const availableList = ['all', 'none', ...availableTools].join(', ');
const lowerRaw = raw.toLowerCase();
if (lowerRaw === 'all') {
return availableTools;
}
if (lowerRaw === 'none') {
return [];
}
const tokens = raw
.split(',')
.map((token) => token.trim())
.filter((token) => token.length > 0);
if (tokens.length === 0) {
throw new Error(
'The --tools option requires at least one tool ID when not using "all" or "none".'
);
}
// Retired ids resolve to their current tool, so a rebrand does not break
// an existing `--tools windsurf` in someone's setup script.
const normalizedTokens = tokens.map((token) => resolveToolIdAlias(token.toLowerCase()));
if (normalizedTokens.some((token) => token === 'all' || token === 'none')) {
throw new Error('Cannot combine reserved values "all" or "none" with specific tool IDs.');
}
const invalidTokens = tokens.filter(
(_token, index) => !availableSet.has(normalizedTokens[index])
);
if (invalidTokens.length > 0) {
throw new Error(View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/init.ts:731 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/f4168af3a49ce2e4.
Report an issue: GitHub.