fix(cursor): harden runtime follow-up regressions

This commit is contained in:
Tam Nhu Tran
2026-04-02 03:21:38 -04:00
parent 2d67f40175
commit f7ddad6c19
7 changed files with 126 additions and 32 deletions
@@ -396,6 +396,16 @@ function resolveBackend(
};
}
if (profileType === 'cursor' || profileName === 'cursor') {
return {
backendId: null,
backendDisplayName: null,
resolutionSource: 'unresolved',
reason:
'Cursor image analysis does not inherit the global fallback backend. Set image_analysis.profile_backends.cursor to an explicit provider to enable transformer-backed image analysis.',
};
}
if (profileType === 'copilot' || profileName === 'copilot') {
const backendId = normalizeImageAnalysisBackendId('ghcp', Object.keys(config.provider_models));
return {