Fission-AI/OpenSpec · error · StoreError
workset_tool_required
workset_tool_required
Error message
Workset '${name}' has no saved tool. What it means
Thrown by workset open when no tool can be determined: no --tool option was given, the workset has no saved tool, and the session is non-interactive so the picker cannot run. Sentinel StoreError naming the workset that lacks a configured tool.
Solutions
- Pass --tool <id> to select an opener
- Run interactively to choose a tool, or save a default tool on the workset
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/commands/workset.ts:422 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/a8386df81b51392d.
Report an issue: GitHub.
Appendix: source
Thrown at src/commands/workset.ts:422
const table = readOpenerTable();
const toolId = options.tool ?? prepared.workset.tool;
let opener: OpenerDefinition;
if (toolId !== undefined) {
const found = findOpener(table, toolId);
if (found === null) {
throw toolUnknownError(toolId, table);
}
if (!isOpenerEnabled(found)) {
throw worksetCliOpenerDisabledError(found, name);
}
if (!isOpenerCommandAvailable(found.command)) {
throw toolUnavailableError(found, table, name);
}
opener = found;
} else {
if (!isInteractive()) {
throw new StoreError(
`Workset '${name}' has no saved tool.`,
'workset_tool_required',
{
target: 'workset.tool',
fix: `openspec workset open ${name} --tool <id>`,
}
);
}
// The prompt offers only available openers, so the selection
// needs no second scan.
const available = listOpenerChoices(table).filter(
(choice) => choice.available
);
if (available.length === 0) {
throw noToolInstalledError(table, name);
}
const selectedId = await promptToolFromChoices(available);View on GitHub (pinned to 6926ccb18a)