fix: route Cursor auth through browser polling

Closes #1194
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-07 11:25:17 -04:00
1 parent a95266e4cc
commit 8b681df455
12 files changed
+152 -25

No files matched your search

+7
View File
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'bun:test';
import {
getDeviceCodeProviderInstruction,
getProviderDisplayName,
isDeviceCodeProvider,
} from '../../../ui/src/lib/provider-config';
describe('provider-config fallbacks', () => {
@@ -15,4 +16,10 @@ describe('provider-config fallbacks', () => {
'Complete the authorization in your browser.'
);
});
it('does not classify Cursor browser URL auth as a verification-code device flow', () => {
expect(isDeviceCodeProvider('cursor')).toBe(false);
expect(isDeviceCodeProvider('ghcp')).toBe(true);
expect(isDeviceCodeProvider('qwen')).toBe(true);
});
});