[PR #4207] [TUI] Add explicit host overrides to strata launch #4949

Open
opened 2026-11-07 16:31:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4207
Author: @yuantianxiayouqingrenzhongchengxiongmei
Created: 10/26/2026
Status: 🔄 Open

Base: main ← Head: feat/launch-host


📝 Commits (2)

  • 83ba3ec [TUI] Add explicit host overrides to strata launch
  • da18f5c Merge remote-tracking branch 'origin/main' into feat/launch-host

📊 Changes

10 files changed (+358 additions, -21 deletions)

View changed files

📝 docs/TERMINAL.md (+1 -1)
📝 docs/TERMINAL_LAUNCH.md (+8 -0)
📝 strata_cli/client.py (+28 -2)
📝 strata_cli/launch/access.py (+12 -0)
📝 strata_cli/launch/app.py (+2 -2)
📝 strata_cli/launch/cmd.py (+24 -5)
📝 strata_cli/launch/runner.py (+4 -4)
📝 strata_cli/launch/screens.py (+12 -6)
📝 strata_cli/launch/settings.py (+35 -1)
➕ tests/terminal/test_launch_host.py (+232 -0)

📄 Description

strata launch exposes access mode and port but cannot select a particular local interface. This adds --host ADDRESS so, for example, a server can bind to 192.168.1.20:8080 directly from the launch command.

The address follows the launch through presets, private run configuration, managed profiles, status, Connect and monitoring. It accepts IPv4 addresses and localhost; a non-loopback address keeps the existing shared-access API-key policy. Wildcard bindings are never advertised as client destinations. Tunnel-incompatible binds are rejected before start.

An omitted --host preserves the existing access-mode bind defaults and serialized launch settings. Choosing --access without --host clears a saved host override. Local HTTP monitoring accepts addresses belonging to this computer and bypasses system proxies; other network peers still require HTTPS.

Example:

strata launch --family qwen --model iq3_s --host 192.168.1.20 --port 8080 --context 128k --vision cpu --no-tui

Validation against upstream main 5e8a4cca (v0.2.7):

  • Windows / Python 3.13.1: launch, launch TUI, monitor, connections, terminal, loopback, second-launch and DeepSeek context suites: 311 passed, 1 skipped, 1 failed in 187.26 seconds. All 26 host tests passed, including a shared host with the upstream DeepSeek pack context limit.

  • The only failure was tests/terminal/test_launch_tui.py::FolderStep::test_default_folder_and_free_space_and_change (None instead of an explicit data directory). It also fails at the same assertion on unmodified upstream 5e8a4cca in the same environment. The full run reported three event-loop/thread warnings from SaveAndRun::test_save_and_stop_here.

  • Twenty synthetic cases without --host match upstream's serialized settings bytes, command flags, and derived configuration bytes.

  • git diff --check against upstream passed.

IPv6 and arbitrary DNS bind names are outside this PR. GPU inference, macOS/Linux integration, and live Cloudflare/Tailscale tunnels were not tested on this revision; no inference speed change is claimed. This remains a draft for review.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4207 **Author:** [@yuantianxiayouqingrenzhongchengxiongmei](https://github.com/yuantianxiayouqingrenzhongchengxiongmei) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/launch-host` --- ### 📝 Commits (2) - [`83ba3ec`](https://github.com/Niko1221/Strata/commit/83ba3ece98ed388514de3b29cba96bfc6e7211c9) [TUI] Add explicit host overrides to strata launch - [`da18f5c`](https://github.com/Niko1221/Strata/commit/da18f5c3699681ce56146d875c96d5198a6eecf2) Merge remote-tracking branch 'origin/main' into feat/launch-host ### 📊 Changes **10 files changed** (+358 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `docs/TERMINAL.md` (+1 -1) 📝 `docs/TERMINAL_LAUNCH.md` (+8 -0) 📝 `strata_cli/client.py` (+28 -2) 📝 `strata_cli/launch/access.py` (+12 -0) 📝 `strata_cli/launch/app.py` (+2 -2) 📝 `strata_cli/launch/cmd.py` (+24 -5) 📝 `strata_cli/launch/runner.py` (+4 -4) 📝 `strata_cli/launch/screens.py` (+12 -6) 📝 `strata_cli/launch/settings.py` (+35 -1) ➕ `tests/terminal/test_launch_host.py` (+232 -0) </details> ### 📄 Description `strata launch` exposes access mode and port but cannot select a particular local interface. This adds `--host ADDRESS` so, for example, a server can bind to `192.168.1.20:8080` directly from the launch command. The address follows the launch through presets, private run configuration, managed profiles, status, Connect and monitoring. It accepts IPv4 addresses and `localhost`; a non-loopback address keeps the existing shared-access API-key policy. Wildcard bindings are never advertised as client destinations. Tunnel-incompatible binds are rejected before start. An omitted `--host` preserves the existing access-mode bind defaults and serialized launch settings. Choosing `--access` without `--host` clears a saved host override. Local HTTP monitoring accepts addresses belonging to this computer and bypasses system proxies; other network peers still require HTTPS. Example: ```sh strata launch --family qwen --model iq3_s --host 192.168.1.20 --port 8080 --context 128k --vision cpu --no-tui ``` Validation against upstream main `5e8a4cca` (v0.2.7): - Windows / Python 3.13.1: launch, launch TUI, monitor, connections, terminal, loopback, second-launch and DeepSeek context suites: **311 passed, 1 skipped, 1 failed** in 187.26 seconds. All **26 host tests passed**, including a shared host with the upstream DeepSeek pack context limit. - The only failure was `tests/terminal/test_launch_tui.py::FolderStep::test_default_folder_and_free_space_and_change` (`None` instead of an explicit data directory). It also fails at the same assertion on unmodified upstream `5e8a4cca` in the same environment. The full run reported three event-loop/thread warnings from `SaveAndRun::test_save_and_stop_here`. - Twenty synthetic cases without `--host` match upstream's serialized settings bytes, command flags, and derived configuration bytes. - `git diff --check` against upstream passed. IPv6 and arbitrary DNS bind names are outside this PR. GPU inference, macOS/Linux integration, and live Cloudflare/Tailscale tunnels were not tested on this revision; no inference speed change is claimed. This remains a draft for review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4949
No description provided.