[PR #3550] [CLOSED] [GUI] add Load and Unload to the chat header #4683

Closed
opened 2026-11-07 15:38:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3550
Author: @sakuumomo
Created: 10/21/2026
Status: ❌ Closed

Base: main ← Head: pr/gui-header-load-unload


📝 Commits (1)

  • 621789d Add Load and Unload to the web page header

📊 Changes

5 files changed (+312 additions, -11 deletions)

View changed files

📝 docs/DETAILS.md (+3 -1)
➕ serve/test_web_load_unload.py (+55 -0)
📝 serve/web/app.css (+19 -3)
📝 serve/web/app.js (+233 -7)
📝 serve/web/index.html (+2 -0)

📄 Description

Problem and result: The monitor page posts /load and /unload. The chat page had no way to do that. The chat header now posts the same two routes. Metrics stay unloaded until the engine is ready, so the button follows a load, a reply, or an image job started on this page until a sample agrees. A chat reply stays ahead of an image request on this page. A confirmed unload stays an unload if a poll arrives during the dialog.

A narrow window scrolls the tab strip and keeps Unload and the theme button in view. The pill text hides only when the header row overflows.

Related discussion: none. This uses the load and unload routes the monitor page already has.

Approach: One header button calls those routes. The label comes from the latest metrics sample. Until that sample arrives, the job started on this page sets the label. The header itself does not scroll. The tab strip does. From 458px down, Unload and the tab strip use a smaller minimum width. From 383px down, the brand is hidden. fitHeader() drops the pill text only when the row's scrollWidth is greater than its clientWidth.

Validation:
Passed: node --check serve/web/app.js on 7c7fe569. Firefox 158, headless, --window-size, on Linux: at 320, 361, 373, 374, 383, 401, 456, 458, and 720, Unload and the theme button were inside the header, and the header's clientWidth equalled its scrollWidth. At 720 with the Images tab and the long pill, About scrolls inside the tab strip and the long pill stays.
The author then used the running chat page on two Linux machines and reports that it functions as intended. The desktop serves with the HIP build on an RX 6800 and an RX 6900 XT. The laptop serves with the CUDA and HIP hybrid build on an RTX 4060 and a Radeon 890M. No command log was attached to that report.
Failed: none observed.
Not run: a written click-through of the image-queue toast and the button title when a chat and an image are both waiting.

Limits: An image that is only queued can still raise the "stop the reply" toast when no image job is marked busy. When a local chat and a local image are both waiting in the unloaded window, the button title uses the image sentence.

Changes since the last update (2026-10-27)

  • Rebased onto upstream main (0.2.6, 4b9e05a2); content unchanged. New tip 621789da (single commit). The 7c7fe569 hash in the Validation section is the pre-rebase lineage.
  • Equivalent content (the same rebased delta on the owner's deploy branch nixos, pin 3032afd8) serves daily on both machines.
  • Related follow-up PRs in the same stack: #4306 (session ladder) and #4307 (unload that works). #4307 changes the two routes this button posts: a busy unload now answers 409 with a readable error.message, engine death answers 503 instead of a dropped connection, and a background pre-stage means a click after quiet costs teardown only. This PR's header button code is unchanged — it keeps posting the plain /load / /unload forms and benefits from the pre-stage.

Branch commits were re-signed (GPG ed25519) on 2026-10-27; trees are unchanged from the validated work.

Dependencies: none.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3550 **Author:** [@sakuumomo](https://github.com/sakuumomo) **Created:** 10/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/gui-header-load-unload` --- ### 📝 Commits (1) - [`621789d`](https://github.com/Niko1221/Strata/commit/621789da79bfe6f1a78ebfef880b4c48711183a1) Add Load and Unload to the web page header ### 📊 Changes **5 files changed** (+312 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+3 -1) ➕ `serve/test_web_load_unload.py` (+55 -0) 📝 `serve/web/app.css` (+19 -3) 📝 `serve/web/app.js` (+233 -7) 📝 `serve/web/index.html` (+2 -0) </details> ### 📄 Description Problem and result: The monitor page posts `/load` and `/unload`. The chat page had no way to do that. The chat header now posts the same two routes. Metrics stay unloaded until the engine is ready, so the button follows a load, a reply, or an image job started on this page until a sample agrees. A chat reply stays ahead of an image request on this page. A confirmed unload stays an unload if a poll arrives during the dialog. A narrow window scrolls the tab strip and keeps Unload and the theme button in view. The pill text hides only when the header row overflows. Related discussion: none. This uses the load and unload routes the monitor page already has. Approach: One header button calls those routes. The label comes from the latest metrics sample. Until that sample arrives, the job started on this page sets the label. The header itself does not scroll. The tab strip does. From 458px down, Unload and the tab strip use a smaller minimum width. From 383px down, the brand is hidden. `fitHeader()` drops the pill text only when the row's `scrollWidth` is greater than its `clientWidth`. Validation: Passed: `node --check serve/web/app.js` on `7c7fe569`. Firefox 158, headless, `--window-size`, on Linux: at 320, 361, 373, 374, 383, 401, 456, 458, and 720, Unload and the theme button were inside the header, and the header's `clientWidth` equalled its `scrollWidth`. At 720 with the Images tab and the long pill, About scrolls inside the tab strip and the long pill stays. The author then used the running chat page on two Linux machines and reports that it functions as intended. The desktop serves with the HIP build on an RX 6800 and an RX 6900 XT. The laptop serves with the CUDA and HIP hybrid build on an RTX 4060 and a Radeon 890M. No command log was attached to that report. Failed: none observed. Not run: a written click-through of the image-queue toast and the button title when a chat and an image are both waiting. Limits: An image that is only queued can still raise the "stop the reply" toast when no image job is marked busy. When a local chat and a local image are both waiting in the unloaded window, the button title uses the image sentence. ## Changes since the last update (2026-10-27) - Rebased onto upstream `main` (0.2.6, `4b9e05a2`); content unchanged. New tip `621789da` (single commit). The `7c7fe569` hash in the Validation section is the pre-rebase lineage. - Equivalent content (the same rebased delta on the owner's deploy branch `nixos`, pin `3032afd8`) serves daily on both machines. - Related follow-up PRs in the same stack: #4306 (session ladder) and #4307 (unload that works). #4307 changes the two routes this button posts: a busy unload now answers 409 with a readable `error.message`, engine death answers 503 instead of a dropped connection, and a background pre-stage means a click after quiet costs teardown only. This PR's header button code is unchanged — it keeps posting the plain `/load` / `/unload` forms and benefits from the pre-stage. Branch commits were re-signed (GPG ed25519) on 2026-10-27; trees are unchanged from the validated work. Dependencies: none. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:18 +07:00
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#4683
No description provided.