fix(webui): support WSL browser launch and clearer startup output (#6150)
* feat(webui): add local first-run access setup * feat(webui): defer password setup until network access Keep generated local credentials and provide the full browser login link in every launch mode. Require a chosen password when enabling network access, preserve existing authentication, and show pending listener changes until restart. Remove mandatory first-run initialization gates and simplify startup output while retaining gateway warnings and errors. * fix(webui): align access settings with channel contracts * fix(webui): clarify startup guidance and spacing * fix(webui): keep setup guidance readable in narrow terminals * fix(webui): clarify startup and preserve remote password access * fix(webui): move access explanations into settings hints * fix(webui): require strong ASCII passwords and reject malformed auth * fix(webui): simplify access password character rules * test(webui): reflect pending restart after password save * fix(webui): open Windows browser from WSL * fix(webui): clarify public access copy * refactor(webui): focus on WSL launch and startup output * fix(webui): preserve platform browser fallback
This commit is contained in:
1 parent
a27f294f52
commit
41f2eeb7ba
12 files changed
+693
-374
No files matched your search
@@ -157,7 +157,7 @@ def start_webui_dev_server(
|
||||
subprocess_run=subprocess_run,
|
||||
output=output,
|
||||
)
|
||||
command = _vite_command(command_runner, vite_cli)
|
||||
command = [*_vite_command(command_runner, vite_cli), "--logLevel", "warn", "--clearScreen", "false"]
|
||||
child_env = dict(environ or os.environ)
|
||||
child_env["NANOBOT_API_URL"] = target_url
|
||||
|
||||
@@ -176,12 +176,6 @@ def start_webui_dev_server(
|
||||
f"WebUI development server exited before it was ready (code {process.returncode})"
|
||||
)
|
||||
if endpoint_reachable(WEBUI_DEV_HOST, WEBUI_DEV_PORT):
|
||||
if output is not None:
|
||||
parsed_url = urlsplit(browser_url)
|
||||
display_url = urlunsplit(
|
||||
(parsed_url.scheme, parsed_url.netloc, parsed_url.path, "", "")
|
||||
)
|
||||
output(f"WebUI dev server: {display_url}")
|
||||
return server
|
||||
sleep(0.1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user