mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2035] [CLOSED] [GUI] Add Optional Windows Tray For Local Model Control #3822
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#3822
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/2035
Author: @medking82
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:codex/windows-tray-20261012📝 Commits (7)
b82f4c9Add opt-in read-only Windows Tray status client041b20cUse official favicon and document Tray operation with actual menu capture00d35c1Replace blurry menu capture with clearly labeled original PNG reference5726a62Add generic managed Windows Tray with safe lifecycle and updates4e2c03dAddress managed Tray startup and error-display review findingsd86e5deKeep managed Tray startup and upgrades unloaded until requested7ca4ab6docs(tray): clarify external clients are not required📊 Changes
20 files changed (+2270 additions, -0 deletions)
View changed files
➕
tools/windows-tray/.gitignore(+3 -0)➕
tools/windows-tray/App.config(+7 -0)➕
tools/windows-tray/AssemblyInfo.cs(+2 -0)➕
tools/windows-tray/Build.ps1(+21 -0)➕
tools/windows-tray/ManagedTray.cs(+231 -0)➕
tools/windows-tray/ProcessJob.cs(+72 -0)➕
tools/windows-tray/Program.cs(+266 -0)➕
tools/windows-tray/README.md(+170 -0)➕
tools/windows-tray/Strata.ico(+0 -0)➕
tools/windows-tray/TrayTests.cs(+110 -0)➕
tools/windows-tray/app.manifest(+12 -0)➕
tools/windows-tray/managed/config.py(+161 -0)➕
tools/windows-tray/managed/controller.py(+379 -0)➕
tools/windows-tray/managed/requirements.txt(+1 -0)➕
tools/windows-tray/managed/test_managed.py(+382 -0)➕
tools/windows-tray/managed/updates.py(+151 -0)➕
tools/windows-tray/managed/windows_job.py(+292 -0)➕
tools/windows-tray/screenshots/favicon.png(+0 -0)➕
tools/windows-tray/screenshots/local-tray-reference.png(+0 -0)➕
tools/windows-tray/tray.example.json(+10 -0)📄 Description
Problem and result
Windows users need quick access to their local Strata server without keeping a console or browser open. This opt-in Tray adds a read-only client and a separately configured managed mode for model profiles, context, idle unload and explicit Preload/Unload. It is not installed or started by the default installer.
Related discussion
#2034. Rebased onto 0.2.0-beta
main(e88ee39d) for the tracker reset. Scope agreement for the managed feature is still requested; this remains a draft proposal. The earlier issue proposed a narrower read-only client. No maintainer agreement on the expanded scope is assumed.Approach
All files are isolated under
tools/windows-tray/. Existing engine, server, frontend, setup and default installation files are byte-identical to the base revision. The Tray forwards client authentication unchanged and owns only the processes in its private Windows Job. Lifecycle changes close admission and drain admitted requests before acting; occupied ports are refused. Startup and restart stay lazy.Managed mode uses the official context choices (8K, 32K, 64K, 128K, 200K, 256K, 384K, 512K), and Never/5/10/30 minute idle unload, preserving the original profiles and saved settings. An optional
desktop_apppath adds Open Strata App and a separate App update metadata check using the official feed. App installation and signature verification stay in the App. Legacy engine staging is retained only for legacy assets; signed 0.2 component releases explicitly defer to the official component updater.The current official desktop icon replaces the earlier favicon. The old personal Tray screenshot was removed; no personal configuration or screenshot is included. This generic proposal has no Codex dependency or client-capacity synchronization.
Validation
Commands below omit the local windowless-runner wrapper and use a disposable output/dependency directory.
Passed:
d2303a53on basee88ee39d(0.2.0-beta).tools/windows-tray/Build.ps1 -Test -OutputDirectory <temporary directory>andTrayTests.exe: 54 checks passed, including actual PerMonitorV2, loopback API parsing, auth/redirect boundaries, embedded icon, diagnostic privacy, argument quoting, App version/metadata validation and malformed-feed handling.tools/windows-tray/Build.ps1 -OutputDirectory <temporary directory>: production WinForms executable built.python -B tools/windows-tray/managed/test_managed.py: 16 tests passed against this base's unmodified official MockEngine and disposable streaming fixtures. Covers lazy lifecycle, profile/settings preservation, 30-minute persistence, authentication forwarding, foreign-port refusal, streaming drain, archive/digest/staging checks and deferral of signed component releases.git diff --check; all changed paths are belowtools/windows-tray/.Failed:
jinja2andregexdependencies. The final run passed with those pinned official dependencies installed in an isolated test directory; the production Python environment was not changed.Not run:
Limits
Draft pending scope agreement and targeted Windows hardware acceptance. Signed component installation belongs to the official updater. This Tray does not provide an upstream plugin API or manage App-owned prepared-model registration. Read-only mode does not accept API keys; protected servers report authentication required.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.