Fission-AI/OpenSpec · error · Error

Change "${changeName}" not found at ${changeDir}

Error message

Change "${changeName}" not found at ${changeDir}

What it means

Error "Change "${changeName}" not found at ${changeDir}" thrown in Fission-AI/OpenSpec.

Source

Thrown at src/commands/change.ts:259

          message: 'Select a change to validate',
          choices: changes.map(id => ({ name: id, value: id })),
        });
        changeName = selected;
      } else {
        if (changes.length === 0) {
          console.error('No change specified. No active changes found.');
        } else {
          console.error(`No change specified. Available IDs: ${changes.join(', ')}`);
        }
        console.error('Hint: use "openspec change list" to view available changes.');
        process.exitCode = 1;
        return;
      }
    }
    
    const changeDir = path.join(changesPath, changeName);
    if (!isChangeDirectoryName(changesPath, changeDir)) {
      throw new Error(`Change "${changeName}" not found at ${changeDir}`);
    }
    try {
      await fs.access(changeDir);
    } catch {
      throw new Error(`Change "${changeName}" not found at ${changeDir}`);
    }
    
    const validator = new Validator(options?.strict || false);
    const report = await validator.validateChangeDeltaSpecs(changeDir, {
      // Derived from changesPath so the main specs come from the same root the
      // change itself was resolved against.
      mainSpecsDir: path.join(path.dirname(changesPath), 'specs'),
      projectRoot: path.dirname(path.dirname(changesPath)),
    });
    
    if (options?.json) {
      console.log(JSON.stringify(report, null, 2));
    } else {

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/commands/change.ts:259 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/87639286f2ceb474. Report an issue: GitHub.