mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-12-01 09:15:33 +08:00
feat: add model connectivity tests and harden cursor heartbeats
This commit is contained in:
1 parent
6170778de9
commit
81a1afdae9
24 files changed
+790
-111
No files matched your search
@@ -198,12 +198,12 @@ export const appStore = {
|
||||
async updateCursorModel(hash: string, model: ModelInput) {
|
||||
update({ cursorBusy: true, error: null });
|
||||
try {
|
||||
await api.updateModel(hash, model);
|
||||
const updated = await api.updateModel(hash, model);
|
||||
await appStore.refresh();
|
||||
return true;
|
||||
return updated;
|
||||
} catch (cause) {
|
||||
update({ error: cause instanceof Error ? cause.message : String(cause) });
|
||||
return false;
|
||||
return null;
|
||||
} finally { update({ cursorBusy: false }); }
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user