Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

native poll: a read that never answers is dropped after 60 s

Niko122143ea31544be8
diff --git a/apps/host/src/lib/native.ts b/apps/host/src/lib/native.ts
index 6053f2112..49a1d1c10 100644
--- a/apps/host/src/lib/native.ts
+++ b/apps/host/src/lib/native.ts
@@ -16,7 +16,7 @@ const listeners=new Set<()=>void>();
function put(value:NativeState){if(state&&JSON.stringify(state)===JSON.stringify(value))return;state=value;listeners.forEach(fn=>fn());}
/** The host pushes its whole native state (jobs included) at every progress step: the page shows it at once, without waiting for the next poll. */
export function applyNativeEvent(value:unknown){if(value&&typeof value==='object'&&'available' in value&&'jobs' in value)put(value as NativeState);}
-const READ_LIMIT_MS=20000;
+const READ_LIMIT_MS=60000;
function read(force:boolean):Promise<void>{
const request=api.get<NativeState>(`/api/native${force?'?refresh=1':''}`);
// A read that never answers must not freeze the page: after the limit the next poll starts a fresh one.