Added new models for Claude Opus 4.8 and GPT 5.4 Mini.

Disabled Cowork
This commit is contained in:
decolua
2026-05-29 15:41:50 +07:00
parent 88224b80ca
commit 468c61b2ac
9 changed files with 60 additions and 94 deletions

View File

@@ -185,6 +185,7 @@ async function _ensureCloudflared() {
let cloudflaredProcess = null;
let unexpectedExitHandler = null;
let intentionalKill = false; // suppress unexpected-exit callback during deliberate kill
/** Register a callback to be called when cloudflared exits unexpectedly after connecting */
export function setUnexpectedExitHandler(handler) {
@@ -261,6 +262,7 @@ export async function spawnCloudflared(tunnelToken) {
return;
}
// Watchdog (initializeApp) handles recovery — no auto-reconnect here
if (intentionalKill) { intentionalKill = false; return; }
if (wasConnected && unexpectedExitHandler) unexpectedExitHandler();
});
});
@@ -387,6 +389,7 @@ export async function spawnQuickTunnel(localPort, onUrlUpdate) {
}
return;
}
if (intentionalKill) { intentionalKill = false; cleanup(); return; }
if (unexpectedExitHandler) unexpectedExitHandler();
cleanup();
});
@@ -408,6 +411,7 @@ function killCloudflaredByPort(port) {
}
export function killCloudflared(localPort) {
intentionalKill = true;
if (cloudflaredProcess) {
try {
cloudflaredProcess.kill();