fix: add networkAccess to manifest (main-thread fetch was blocked → FETCH threw); stringify fetch errors; bump 0.1.9

This commit is contained in:
Hermes Agent committed 2026-09-19 17:47:02 +02:00
1 parent 540c97912b
commit 35c5633536
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -541,8 +541,8 @@ export default function () {
}
emit('MODELS_RESULT', { ok: true, models: models, status: res.status, raw: raw, requestEcho: echo })
} catch (e) {
const msg = e instanceof Error ? e.message : (e != null ? String(e) : 'Unknown error')
emit('MODELS_RESULT', { ok: false, error: msg, models: [], status: 0, requestEcho: echo })
const msg = e instanceof Error ? e.message : (e != null ? (typeof e === 'string' ? e : JSON.stringify(e)) : 'Unknown error')
emit('MODELS_RESULT', { ok: false, error: msg, models: [], status: 0, raw: (e != null ? JSON.stringify(e) : ''), requestEcho: echo })
}
})