mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4207] [TUI] Add explicit host overrides to strata launch #4949
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4949
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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 launchda18f5cMerge 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 launchexposes access mode and port but cannot select a particular local interface. This adds--host ADDRESSso, for example, a server can bind to192.168.1.20:8080directly 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
--hostpreserves the existing access-mode bind defaults and serialized launch settings. Choosing--accesswithout--hostclears a saved host override. Local HTTP monitoring accepts addresses belonging to this computer and bypasses system proxies; other network peers still require HTTPS.Example:
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(Noneinstead of an explicit data directory). It also fails at the same assertion on unmodified upstream5e8a4ccain the same environment. The full run reported three event-loop/thread warnings fromSaveAndRun::test_save_and_stop_here.Twenty synthetic cases without
--hostmatch upstream's serialized settings bytes, command flags, and derived configuration bytes.git diff --checkagainst 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.