fix(tui): avoid blocking local gateway startup
This commit is contained in:
1 parent
dc13dff3ff
commit
c5ae958bc3
2 files changed
+5
-6
No files matched your search
@@ -192,10 +192,9 @@ def _prepare_webui_bundle_for_gateway(
|
||||
return typer.confirm(message, default=True)
|
||||
|
||||
try:
|
||||
# A source checkout is the development product. Every gateway entrypoint
|
||||
# keeps its browser client in lockstep with Python; only Vite mode skips
|
||||
# the production bundle intentionally.
|
||||
if mode != "skip" and inspect_webui_bundle().source_available:
|
||||
# Interactive WebUI commands keep source and bundle in lockstep.
|
||||
# Warn-only gateway startup must not block on a frontend build.
|
||||
if mode not in {"skip", "warn"} and inspect_webui_bundle().source_available:
|
||||
mode = "auto"
|
||||
ensure_webui_bundle(
|
||||
mode=mode,
|
||||
|
||||
Reference in new issue
Block a user