mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2154] [Engine] answer GET /models/sse (llama.cpp's model status feed) #860
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#860
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?
Originally created by @Daniel-Aaron-Bloom on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2154
Strata already mimics llama-server's router on
/models: the listing reports the model's status (loaded/unloaded), so the model loads on use and can unload between requests. A front-end that watches that status (llama.cpp's own web UI, and any client that follows llama-server's model management API) also subscribes toGET /models/sseto learn about load and unload events as they happen, instead of polling. Strata answers that with a 404 today, so those clients log a warning and reconnect forever - Zed's llama.cpp provider retries every 5 s - and their model list never refreshes on its own.The ask: answer
GET /models/ssewith 200 andtext/event-stream, keep the connection open, and emit llama.cpp'sstatus_changeevents (loading,loaded,unloaded) when the model loads, unloads or restarts - all transitions the server already knows about. A quiet feed sends the usual SSE-comment keep-alive.I have a change ready that does this (the route, a broadcast on the existing load/unload transitions, tests in
serve/test_lifecycle.py, docs inDETAILS.md); the PR follows. It is purely additive: every existing endpoint answers exactly as before.Re-checked on 0.2.2 (main
011c9e60):serve/server.pystill has no/models/sseroute, so the 404 and the endless reconnects still stand. Checked by reading the code on that revision, not by a live server run.Environment: Apple M4 Max (64 GB unified memory, no discrete GPU), macOS 26.6.2.
The change is in #2155, reopened and merged with main; its
serve/test_lifecycle.pytests (13) pass on that revision.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@Daniel-Aaron-Bloom commented on GitHub (Oct 23, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 23, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.