mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #632] [CLOSED] Web UI: the phone's chats push the page, Delete on the Models page, a thinking bar, peak decode #640
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#640
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/mw00/project-maya/pull/632
Author: @needmorevram
Created: 10/28/2026
Status: ❌ Closed
Base:
main← Head:ui-redesign📝 Commits (8)
ff46eaeSaved on a phone: a bottom sheetf5553b7The phone's chats push the page aside7a165adModels: delete a model, and its downloaded files if asked2c28cb6Thinking on a phone: a bar hovering above the message box5d2aebcThinking on a phone: a thick bar, a segment a leveld57df3eThinking: the thick bar on wider screens too2b0c3efMonitor: the peak decode speedfd01ba3Models: the running model deleted after a switch, the files no model uses, more DeepSeek and MiniMax engine settings📊 Changes
16 files changed (+1328 additions, -154 deletions)
View changed files
📝
docs/SETTINGS.md(+5 -5)📝
serve/models.py(+353 -5)📝
serve/server.py(+117 -10)📝
serve/test_dashboard.py(+24 -0)📝
serve/test_models.py(+293 -3)📝
serve/web/app.css(+79 -43)📝
serve/web/app.js(+43 -7)📝
serve/web/chat-view.js(+26 -27)📝
serve/web/components.css(+1 -0)📝
serve/web/models.css(+36 -0)📝
serve/web/models.js(+214 -9)📝
serve/web/monitor.css(+1 -0)📝
serve/web/monitor.js(+9 -0)📝
serve/web/sidebar.js(+124 -45)📝
serve/web/state.js(+1 -0)📝
serve/web/tokens.css(+2 -0)📄 Description
What
Follow-ups to the web UI redesign (#538), on top of v1.1.35. There are eight commits in six parts.
The phone's chats
inertwhile the chats are open, and the keyboard goes back to the Chats button when they close.Deleting a model
The dialog always takes the model off the list: its config, its
run-*.sh/.bat, its.prevand its shared settings. Chats stay.A box, unticked by default, deletes its downloaded files too. It shows their size and folder first:
What it never deletes:
sources.jsonlists go.installer.models_dir. For a GGUF of your own, only the pack Maya built from it goes.models_dir, Maya doesn't know which files are its own, so only the config is removed.Another model drafting with the same DFlash2 file has its
--dflashtaken out and drafts with MTP from then on. Its.previs written, and its modification time is kept so the next start still picks the same model.POST /api/models/delete {file, files, dry_run}:dry_runreturns the plan the dialog shows, and whether the model is the one running.Deleting the running model (part 6)
maya.shorSTART-MAYA.bat) and another model can start. Otherwise the running model has no Delete button, as before.POST /api/models/delete {file, files, then}checks everything first, writes a note (.maya-delete.json), and switches tothenthe usual way. The next server reads the note once at its start and deletes the old config, and its files if asked, now that the engine that ran from them is gone. The page then says what was deleted.Files no model uses (part 6)
A section at the bottom of the Models page, shown only when there is something to list:
GLM-5.3-Flash/.dspark/andvision/beside its GGUF folder), a hidden entry, the project folder or the home folder.installer.models_dirand the setup's ownMaya-data/models.POST /api/models/leftovers {path}: the app's own page only, with the list checked again first.More engine settings (part 6)
Empty is the engine's own value.
docs/SETTINGS.mdnames the fields.--suffix-draft; off writes--suffix-draft 0, on keeps a config's own match length) and Draft confidence (--dspark-conf, engine default 0.5, shown while DSpark drafts).--reserve-gb), Expert cache (--cache-gb, shown with tensor parallel), Prompt chunk (--chunk) and Draft confidence (--dspark-conf, engine default 0.7).The thinking bar
role="slider", so the arrow keys, Home and End work too.Peak decode
/metricscarries it intotals.peak_decode(tok_s,tokens,time), and Prometheus getsmaya:decode_peak_tokens_seconds.MAYA_MOCK_TOK_S), so the Monitor's speeds show against it. Off by default, so the tests are unchanged.Tests
serve.test_modelsgainsDeleteandDeletePage:test_dashboardgainstest_peak_decode_speed: the fastest of three answers, its Prometheus gauge, and a short answer that doesn't count.Part 6 adds:
Settings: DeepSeek's prompt lookup and draft confidence; MiniMax's memory, prompt chunk and draft confidence;Leftovers: what no model uses (a whole folder, and one quant beside another), never a folder a model reads through its pack, only what is listed is deleted;DeletePage: the running one after a switch, refused where Maya cannot start again by itself, a switch that didn't happen and a stale note, and the leftovers endpoint's checks.test_models,test_savings,test_dashboardandtest_serverpass (193 tests before part 6). After part 6:test_modelspasses (40 tests), andtest_dashboardwithtest_serverpass (151 tests). The wholeservesuite: 480 tests, 13 failures, all inserve/test_responses_schema.py. They fail the same way on this branch without part 6 (2b0c3ef). Checked in a browser against the mock engine, at phone and desktop sizes, in dark and light, with GLM and MiniMax configs. Part 6 was checked in a headless browser against the mock engine, with DeepSeek, GLM and MiniMax configs and fixture model folders, at 1280 and 390 px wide. That covered the new settings and the commands they make, deleting a leftover, and deleting the running model end to end: the server switched and exited, a second server started on the other config (standing in formaya.py) and deleted the old config and its folder. Not run: a real engine, and the restart throughmaya.pyitself.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.