fix(codex-link): isolate model transfers and widen local connection capacity
This commit is contained in:
1 parent
2718b460ed
commit
369f6c2ca8
16 files changed
+790
-40
No files matched your search
@@ -139,6 +139,13 @@ describe('Codex Link settings', () => {
|
||||
expect(screen.getByRole('switch', { name: 'Codex Bağlama' }).getAttribute('aria-checked')).toBe('false')
|
||||
})
|
||||
|
||||
it('does not claim original settings were restored when disconnect failed', async () => {
|
||||
get.mockResolvedValue({ ...RUNNING, enabled: false, lastError: 'config-write-failed' })
|
||||
renderPage()
|
||||
expect(await screen.findByText('Codex ayar dosyası yazılamadı.')).toBeTruthy()
|
||||
expect(screen.queryByText('Codex Bağlama kapalı. Codex kendi ayarlarıyla çalışıyor.')).toBeNull()
|
||||
})
|
||||
|
||||
it('rolls the switch back and reports when the change fails', async () => {
|
||||
get.mockResolvedValue(RUNNING)
|
||||
set.mockRejectedValue(new Error('codex-link:unavailable'))
|
||||
|
||||
Reference in new issue
Block a user