From d04a2c53b926ccde0d582dbf4a7360dc0f072205 Mon Sep 17 00:00:00 2001 From: historia Date: Wed, 2 Sep 2026 22:53:07 -0400 Subject: fix: warn before using a likely too-big chunk size for sglang-omni models --- app/ui/runview.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/ui/runview.py') diff --git a/app/ui/runview.py b/app/ui/runview.py index 4fcaeb1..73ad315 100644 --- a/app/ui/runview.py +++ b/app/ui/runview.py @@ -193,6 +193,19 @@ class RunView(ScreenView): self.boot_hint = event.get("hint") or "" self._record_boot_failure() self._finish("error") + elif kind == "port_taken": + # The launcher moved the server to a random port (the + # configured one was taken) and the boot was killed as + # unreachable: same terminal treatment as a crash, with the + # port specifics as the message. + self.server = "error" + self.server_message = str(event.get("message") + or "the server moved itself to " + "another port") + self.log_tail = list(event.get("log_tail") or []) + self.boot_hint = event.get("hint") or "" + self._record_boot_failure() + self._finish("error") elif kind == "cancelled": self.cancelled = True if self.server in ("starting", "ready", "processing"): -- cgit v1.2.3