Fission-AI/OpenSpec · error
Invalid 'githubCopilot' field in config (must be object)
Error message
Invalid 'githubCopilot' field in config (must be object)
What it means
Error "Invalid 'githubCopilot' field in config (must be object)" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/project-config.ts:393
);
}
}
// Parse githubCopilot preferences (only cloudAgent is recognized today).
if (raw.githubCopilot !== undefined) {
if (
typeof raw.githubCopilot === 'object' &&
raw.githubCopilot !== null &&
!Array.isArray(raw.githubCopilot)
) {
const cloudAgent = (raw.githubCopilot as Record<string, unknown>).cloudAgent;
if (typeof cloudAgent === 'boolean') {
config.githubCopilot = { cloudAgent };
} else if (cloudAgent !== undefined) {
console.warn(`Invalid 'githubCopilot.cloudAgent' field in config (must be a boolean)`);
}
} else {
console.warn(`Invalid 'githubCopilot' field in config (must be an object)`);
}
}
// Return partial config even if some fields failed
return Object.keys(config).length > 0 ? (config as ProjectConfig) : null;
} catch (error) {
console.warn(
`Warning: could not parse ${configPathForWarnings(projectRoot)} (${error instanceof Error ? error.message.split('\n')[0] : String(error)}); ignoring it.`
);
return null;
}
}
function configPathForWarnings(projectRoot: string): string {
return resolveConfigFilePath(projectRoot) ?? path.join(projectRoot, 'openspec', 'config.yaml');
}
/**View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/project-config.ts:393 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/f46f8f90e2e28c65.
Report an issue: GitHub.