Fission-AI/OpenSpec · error

At least one tool must be selected

Error message

At least one tool must be selected

What it means

Interactive prompt guard: the searchable multi-select returned an empty selection, which the in-prompt validate should normally prevent. Indicates the prompt was submitted with no choices or bypassed validation.

Solutions

  1. Select at least one tool in the prompt before submitting
  2. Use --tools with an explicit list to avoid the interactive prompt
  3. Report a bug if the prompt allowed an empty submission
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/core/init.ts:694 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/948fb68216f17eb6. Report an issue: GitHub.

Appendix: source

Thrown at src/core/init.ts:694

      .filter((tool) => !configuredToolIds.has(tool.value))
      .map((tool) => tool.name);

    if (detectedOnlyNames.length > 0) {
      const detectionLabel = shouldPreselectDetected
        ? 'pre-selected for first-time setup'
        : 'not pre-selected';
      console.log(`Detected tool directories: ${detectedOnlyNames.join(', ')} (${detectionLabel})`);
    }

    const selectedTools = await searchableMultiSelect({
      message: `Select tools to set up (${validTools.length} available)`,
      pageSize: 15,
      choices: sortedChoices,
      validate: (selected: string[]) => selected.length > 0 || 'Select at least one tool',
    });

    if (selectedTools.length === 0) {
      throw new Error('At least one tool must be selected');
    }

    return selectedTools;
  }

  private resolveToolsArg(): string[] | null {
    if (typeof this.toolsArg === 'undefined') {
      return null;
    }

    const raw = this.toolsArg.trim();
    if (raw.length === 0) {
      throw new Error(
        'The --tools option requires a value. Use "all", "none", or a comma-separated list of tool IDs.'
      );
    }

    const availableTools = getToolsWithSkillsDir();

View on GitHub (pinned to 6926ccb18a)