fix(cursor): use stdio ignore, sequential polling, move CursorConfig to types

- Change spawn stdio from piped to 'ignore' preventing buffer deadlock
- Replace setInterval with sequential setTimeout polling
- Fix TOCTOU in SIGKILL escalation (send directly without probing)
- Move CursorConfig interface to types.ts
- Change detectProvider default from 'openai' to 'unknown'
- Remove redundant removePidFile() when PID is null
This commit is contained in:
Tam Nhu Tran committed 2026-02-12 07:51:22 +07:00
1 parent 94789676b9
commit ce1915366d
4 files changed
+22 -19

No files matched your search

+2 -2
View File
@@ -72,8 +72,8 @@ describe('detectProvider', () => {
expect(detectProvider('cursor-small')).toBe('cursor');
});
it('defaults to openai for unknown models', () => {
expect(detectProvider('unknown-model')).toBe('openai');
it('defaults to unknown for unrecognized models', () => {
expect(detectProvider('unknown-model')).toBe('unknown');
});
});