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: a restart clears max_context before the new engine process is visible, and close() does not join an output thread a restart never started
Niko1221ec7f6a02751a
diff --git a/serve/server.py b/serve/server.pyindex fd90e3cd4..741f561de 100644--- a/serve/server.py+++ b/serve/server.py@@ -607,10 +607,10 @@ class StrataEngine:self.log.flush()except OSError:pass+ self.max_context = 0 # before the new process is visible: never its predecessor'sself.proc = popen("the Strata engine", [exe, "--serve", *args], cwd=cwd, stdin=subprocess.PIPE,stdout=subprocess.PIPE, stderr=self.log, text=True, encoding="utf-8", bufsize=1, env=env)contain(self.proc) # ends with the server, however it ends (Windows)- self.max_context = 0for line in self.proc.stdout:if line.startswith("INFO "):for kv in line.split()[1:]:@@ -1611,7 +1611,7 @@ class StrataEngine:passfinally:if self.proc.poll() is not None:- if self.pump is not None:+ if self.pump is not None and self.pump.ident is not None: # a restart can stop before starting itself.pump.join(timeout=2)try:self.proc.stdin.close() # buffered data may flush again after the engine has exited