mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3365] [GUI] Add Optional Windows Tray For Local Model Control #4592
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#4592
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/3365
Author: @medking82
Created: 10/20/2026
Status: 🔄 Open
Base:
main← Head:codex/windows-tray-20261012📝 Commits (6)
d2303a5[GUI] Add Opt-In Windows Tray For Model Control On 0.2.0ff69390Add sanitized native menu examples and opt-in App extension IPC02bdf9adocs: record portable Tray App 0.2.2 acceptanceb08ab08docs: record native Tray launch and agent budget follow-up42a1fe9docs: complete native Tray lifecycle acceptance5580133docs(tray): reconcile final staged agent acceptance📊 Changes
36 files changed (+4314 additions, -0 deletions)
View changed files
➕
tools/windows-tray/.gitignore(+3 -0)➕
tools/windows-tray/App.config(+7 -0)➕
tools/windows-tray/AppUpdatePolicy.cs(+118 -0)➕
tools/windows-tray/AssemblyInfo.cs(+2 -0)➕
tools/windows-tray/Build.ps1(+23 -0)➕
tools/windows-tray/ManagedMenu.cs(+110 -0)➕
tools/windows-tray/ManagedTray.cs(+262 -0)➕
tools/windows-tray/MenuExamples.cs(+88 -0)➕
tools/windows-tray/ProcessJob.cs(+72 -0)➕
tools/windows-tray/Program.cs(+266 -0)➕
tools/windows-tray/README.md(+251 -0)➕
tools/windows-tray/Strata.ico(+0 -0)➕
tools/windows-tray/TrayTests.cs(+151 -0)➕
tools/windows-tray/app.manifest(+12 -0)➕
tools/windows-tray/managed/config.py(+166 -0)➕
tools/windows-tray/managed/controller.py(+395 -0)➕
tools/windows-tray/managed/extension.py(+153 -0)➕
tools/windows-tray/managed/requirements.txt(+1 -0)➕
tools/windows-tray/managed/test_extension.py(+284 -0)➕
tools/windows-tray/managed/test_managed.py(+405 -0)...and 16 more files
📄 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. Continuation of #2035 after the tracker reset: GitHub refused to reopen the closed PR even after restoring its previous head, and the reset bot suggested a replacement. This candidate is rebased onto 0.2.0-beta
main(e88ee39d). Ready for review. Scope agreement for the managed feature is still requested. The earlier issue proposed a narrower read-only client. No maintainer agreement on the expanded scope is assumed.The separate Local Model Extension scope is #3369. This Tray provides its optional single-owner protocol; the Extension UI stays in #3373.
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 (git diff e88ee39d -- . ':!tools/windows-tray'is empty). 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 original profiles and saved settings. Selected/effective settings remain distinct. 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 defer to the official component updater.The current official desktop icon is embedded. Production menu construction is shared with a native fixture renderer so the examples below come from real WinForms controls, not a recreated mockup. No personal configuration, model ID, private path or original user screenshot is included. This generic candidate has no Codex dependency or client-capacity synchronization.
app_extensiondefaults to false and publishes no companion IPC files unless opted in. When enabled, it publishes fresh allowlisted owner metadata and claims one UUID/physical-model-bound context, idle, load or unload command into the existing serial worker. Identity is checked at execution. Durable terminal acknowledgments precede claim removal; interrupted claims are never replayed. The companion has no independent inference process or HTTP lifecycle bypass.Examples
These are anonymous simulated menu states, rendered offscreen by the production
ManagedMenuthrough WinFormsDrawToBitmap. The fixture starts no Tray controller, server, App, updater or inference. Submenus are placed beside the main menu for readability. Captions and the official icon sit outside the controls. These images do not establish server health, installed updates or GPU behavior.Managed Menu
Official Context Choices
Idle Unload
Engine Updates — signed component installation belongs to the official updater.
App Updates — checks App metadata and opens the App to install.
The added
screenshots/README.mdandMenuExamples.csdocument reproducible generation. All five PNGs were visually inspected and have no text/EXIF metadata.Validation
Windows 11 x64, installed App/Host 0.2.2, Control/engine 0.1.47, RTX 5080, Python 3.12.10 and Node 24.12.0. Acceptance report and sanitized receipt bind the tested inputs and distinguish the initial and follow-up runs. Current head
558013342d27bdde5e55ff05437369221d1e61b9adds documentation only; tested Tray runtime remainsff69390e.Passed:
1d226b998942de822c5752caf74205266d0166da86a3b6dd40004f8fcb276e72.OKwith child-onlySTRATA_AGENT=off; actual 300-second automatic unload and lazy restart.127.0.0.1:18148/v1URL and 8K Context despite a deliberately unused inherited port19999. Native automation observed the rendered App; isolated WebView2 storage was confirmed. This run used no Extension launcher/preload.e88ee39d; diff checks passed.Failed or limited:
f273ef65: the final v2 patch passed full Harness build/deploy/staging (9 build gates), authenticated boot, 10 focused and 12 staged tests. Native App 0.2.2 completed a realreadand displayed READY-3684 with wire caps 298 / 242; four additional real-model turns (two reads) all answered withstop, final context 7106 tokens. Its source-bound report separates native acceptance from scripted 16K compaction. Installed Harness and this Tray runtime remain unchanged; combined patched-Harness/portable-companion acceptance was not run.Not run:
Limits
Managed scope still needs agreement in #2034; the updated issue comment requests that decision. The bounded App 0.2.2 run does not certify all Windows workflows or future releases. Signed component installation remains with the official updater. This is not a general plugin API or native prepared-model registration. Read-only mode accepts no API key. Optional companion IPC state must stay private; interrupted claims are not replayed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.