Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

refactor(computer): drop the impossible rejection-count clamp

jeffrey34a5e8fb2d56
diff --git a/apps/computer/local-daemon/internal/uiruntime/runtime.mjs b/apps/computer/local-daemon/internal/uiruntime/runtime.mjs
index 502d9ef9..b8c056bf 100644
--- a/apps/computer/local-daemon/internal/uiruntime/runtime.mjs
+++ b/apps/computer/local-daemon/internal/uiruntime/runtime.mjs
@@ -33,7 +33,7 @@ const guest = await QuickJS.create({
...options,
intrinsics: Intrinsics.ALL & ~Intrinsics.EVAL,
onUnhandledRejection(_promise, _reason, handled) {
- unhandled = handled ? Math.max(0, unhandled - 1) : unhandled + 1;
+ unhandled += handled ? -1 : 1;
},
});
const drain = compiler.compile("__uiBridge.drain()");