Fission-AI/OpenSpec · error
Cannot combine reserved values "all" or "none" with specific
Error message
Cannot combine reserved values "all" or "none" with specific tool IDs.
What it means
Error "Cannot combine reserved values "all" or "none" with specific tool IDs." thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/init.ts:741
}
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(
`Invalid tool(s): ${invalidTokens.join(', ')}. Available values: ${availableList}`
);
}
// Deduplicate while preserving order
const deduped: string[] = [];
for (const token of normalizedTokens) {
if (!deduped.includes(token)) {
deduped.push(token);
}View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/init.ts:741 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/bd9725ff70207724.
Report an issue: GitHub.