Fission-AI/OpenSpec · error · StoreError

workset_remove_confirmation_required

workset_remove_confirmation_required

Error message

Pass --yes to remove a workset non-interactively.

What it means

Error "Pass --yes to remove a workset non-interactively." thrown in Fission-AI/OpenSpec.

Source

Thrown at src/commands/workset.ts:520

        }
      }
    }
  }

  async remove(name: string, options: WorksetRemoveOptions = {}): Promise<void> {
    try {
      if (!options.yes) {
        // The pre-read serves the not-found priority and the confirm
        // display; the --yes path skips it (removeWorkset re-checks
        // under the lock anyway).
        const state = await readWorksetsState();
        const workset = getWorkset(state, name);
        if (workset === null) {
          throw worksetNotFoundError(name, state);
        }

        if (options.json || !isInteractive()) {
          throw new StoreError(
            'Pass --yes to remove a workset non-interactively.',
            'workset_remove_confirmation_required',
            {
              target: 'workset.name',
              fix: `openspec workset remove ${name} --yes`,
            }
          );
        }

        const confirmed = await confirmRemoveInteractively(workset);
        if (!confirmed) {
          throw new StoreError(
            'Workset remove cancelled.',
            'workset_remove_cancelled',
            {
              target: 'workset.name',
              fix: 'Rerun remove when you are ready.',
            }

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/commands/workset.ts:520 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/9573097f68dad812. Report an issue: GitHub.