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++

serve (merge #333 + #344): the engine stays not-alive from the start of __init__ until READY - #333's lazy start set ended=False before READY, so a request could again plan with context 0 (RestartWindow test)

Niko122197712287fe9e
diff --git a/serve/server.py b/serve/server.py
index 39271b998..f13cf0399 100644
--- a/serve/server.py
+++ b/serve/server.py
@@ -231,7 +231,7 @@ class StrataEngine:
self.info["version"] = None
if lazy:
return
- self.ended, self.unloaded = False, False
+ self.unloaded = False # `ended` stays True until READY (below): not alive while starting (#344)
self.log = open(log, "a", encoding="utf-8") if log else subprocess.DEVNULL
loading = threading.Event() # set once READY: the narrator below stops
if log: