Fission-AI/OpenSpec · error · StoreError
context_file_exists
context_file_exists
Error message
Refusing to overwrite ${resolved}. What it means
Error "Refusing to overwrite ${resolved}." thrown in Fission-AI/OpenSpec.
Source
Thrown at src/commands/context.ts:127
}
}
for (const diagnostic of workingSet.status) {
console.log(` Note: ${diagnostic.message}`);
if (diagnostic.fix) {
console.log(` Fix: ${diagnostic.fix}`);
}
}
}
}
function writeCodeWorkspace(
workingSet: WorkingSet,
outputPath: string,
force: boolean
): void {
const resolved = path.resolve(outputPath);
if (fs.existsSync(resolved) && !force) {
throw new StoreError(
`Refusing to overwrite ${resolved}.`,
'context_file_exists',
{
target: 'context.output',
fix: `Pass --force to overwrite, or choose a different path.`,
}
);
}
const parent = path.dirname(resolved);
if (!fs.existsSync(parent)) {
throw new StoreError(
`Output directory does not exist: ${parent}.`,
'context_output_dir_missing',
{ target: 'context.output', fix: 'Create the directory first, or choose another path.' }
);
}
const rootName = workingSet.root.store_id ?? path.basename(workingSet.root.path);View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/commands/context.ts:127 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/776b66d412537e07.
Report an issue: GitHub.