[GH-ISSUE #4356] [Engine] opt-in: let the share listener also offer engine stats, so external monitors can watch a native instance #1926

Closed
opened 2026-11-04 01:55:21 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @msalsas on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4356

What do you want to do?

Watch a native instance served from the desktop app from another machine, without hacks.

The shared port today shows answers only. A third-party diagnostic tool can send prompts and time them end to end, but it cannot see the prefill/decode split, the queue or VRAM — the things the app's own Monitor paints. That data already lives in the host (apps/host/server/monitor.mjs, the snapshot the Monitor renders); it just has no door on the share listener.

Proposal: an opt-in setting that adds a read-only stats endpoint (e.g. GET /metrics on the share listener, shaped like the serve/ server's metrics or a JSON snapshot) fed from that same monitor snapshot, gated by the same API key as /v1/*, off by default.

I've read the "sharing is inference only" stance in SECURITY.md and the reasoning in #3208, so the ask is deliberately an explicit opt-in, not a wider silent allow-list. #3931 hits the same listener from the models side; this is its stats side.

Environment where I want it: Windows app 0.2.6, engine 0.1.50, native shared instance (Qwen3.8-Flash-Next IQ3_S, 16 GB card), the watcher on a different box over Tailscale.

What do you do today instead?

On the Terminal path, strata launch runs the serve/ server, which already carries /props and /metrics, and watching from another machine works. On the desktop app's native path there is no such door, so the workaround is timing /v1 calls and guessing where the seconds go — which is exactly what a diagnostic tool is supposed to avoid. On Windows the desktop app is how most people serve, so for them the workaround loses the monitor entirely.

Originally created by @msalsas on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4356 **What do you want to do?** Watch a native instance served from the desktop app from another machine, without hacks. The shared port today shows answers only. A third-party diagnostic tool can send prompts and time them end to end, but it cannot see the prefill/decode split, the queue or VRAM — the things the app's own Monitor paints. That data already lives in the host (`apps/host/server/monitor.mjs`, the snapshot the Monitor renders); it just has no door on the share listener. Proposal: an opt-in setting that adds a read-only stats endpoint (e.g. `GET /metrics` on the share listener, shaped like the serve/ server's metrics or a JSON snapshot) fed from that same monitor snapshot, gated by the same API key as `/v1/*`, off by default. I've read the "sharing is inference only" stance in SECURITY.md and the reasoning in #3208, so the ask is deliberately an explicit opt-in, not a wider silent allow-list. #3931 hits the same listener from the models side; this is its stats side. Environment where I want it: Windows app 0.2.6, engine 0.1.50, native shared instance (Qwen3.8-Flash-Next IQ3_S, 16 GB card), the watcher on a different box over Tailscale. **What do you do today instead?** On the Terminal path, `strata launch` runs the serve/ server, which already carries `/props` and `/metrics`, and watching from another machine works. On the desktop app's native path there is no such door, so the workaround is timing `/v1` calls and guessing where the seconds go — which is exactly what a diagnostic tool is supposed to avoid. On Windows the desktop app is how most people serve, so for them the workaround loses the monitor entirely.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660309255 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1926
No description provided.