Commit Graph
3 Commits
Author SHA1 Message Date
yetone 47ccb7165b gui: Usage's Output speed card keeps its number inside it, and a page's bar across its foot is as thin as at its side on mac (#1623, fanbuz)
At ~983px on Usage › Requests the Output speed figure with its reply
count ("48 token/秒(781 次)", since 3964ea65) ran past its card, as
.led-strip .v is nowrap, in zh, zh-TW and ja. The page then scrolled
sideways, and the mac page scrollbar rule set only width: 8px, so that
bar across the foot was drawn at the engine's default thickness.

- ledGroupSpeed also gives the figure in parts (the speed, then the
  count), and renderLedgerDash draws an array value as parts: each kept
  whole (ellipsised only if one alone is wider than the card), the count
  going under the speed in a card too narrow for both.
- body.mac's page/dialog scrollbar gets height: 8px beside width: 8px.
- usage-speed-count.test.cjs: widths 1400, 983, 789 (guzi171's window,
  #1634, the same overflow), 700, 560; the "read whole"
  check measured an element box that never overflows, now it measures
  every visible .led-strip .v's text (Range rects) against its card,
  which also covers the sibling cards and #ledVia's .led-strip; the
  sideways check reads #view-usage, the real scroller, not
  documentElement.
- view-scrollbar.test.cjs: a 3000px-wide page's bar across its foot is
  8px, as at its side.

Run: on the old code usage-speed-count fails in WebKit (zh, zh-TW, ja:
'75 token/秒(3 次)' outside its card) and view-scrollbar fails (foot
17px WebKit, 16px Chromium); with the change both pass in Chromium and
WebKit, en/zh/zh-TW/ja/de. Whole GUI suite (concurrency 4, load average
70-180): Chromium 3138 pass / 8 fail, WebKit 3135 / 9. None in Usage
but usage-stale-answer, red on main alone (#1632). The others pass alone
or fail the same alone on origin/main 756fef492: market-have (#1631),
routing-side-calls (#1640), redact-rule-row (#1653), privacy-hides-
accounts WebKit (#1632), segs-press-redraw (b0e25696e on main since),
routing-save/routing-flood (pass alone); library-instr-busy is #1624's
test, run here before its change.
2026-10-12 00:10:59 +08:00
yetone 76dc5aed48 gui: Routing flies a request still under way when the page's first frame came before the trace, and the Requests table's sideways scrollbar goes once the table fits; GUI tests brought up to date with the app
Two app bugs, found where GUI tests failed on main in Chromium:
- Routing: the page's first frame looked for requests to fly before the first trace had come in, found none, and nothing flew them after it came, so a request still under way when Routing opened never reached its member's row (routing-try-fixed failed every run). The first trace now flies those under way when a frame has already been drawn, as coming back into sight does (underWay, shared with resume).
- Usage › Requests: a table that had come to fit its window (led tight) kept #ledHScroll's bar under it with nothing to scroll; ledGrow now redraws the bar on every resize, not only when it leaves columns out (usage-speed "no sideways scrollbar").

Stale or racy tests, the app right:
- library-own-folder, list-sort, shared-skills and nine other Library tests counted the loading skeleton's rows (the "5 vs 4 rows" and the empty lists were the skeleton, not the repo group headers); they wait for .lib-body:not(.lib-skel). library-own-folder's 61px scroll was Playwright's own retry on a button still sliding in, not the app (no scroll setter ran): it waits for the entrance to finish.
- sessions-overview measured the picked bar while the folder's overview redrew the bars; it measures once the overview is in.
- menu-scroll: its agent needs wired and a ref to show a model picker, and the page now asks plugins/updates, usage/quotas, agents/install and whatsnew.
- routing-sessions' large-history tests failed from local midnight until the UTC offset passed: the fixture's times were UTC while the gateway writes local times with their offset, which openRoute takes the day from.
- ledger-hscroll and view-scrollbar measured scrollbars in Chromium launched with --hide-scrollbars; they launch without it, as menu-scroll does.

routing-try-fixed and usage-speed fail without the app changes and pass with them (checked by putting origin/main's routing.js and app.js back). go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestHostJSCancellation timed out once under the full run's load and passes on its own, 3 runs).
2026-10-06 03:20:34 +08:00
yetone 4dab45e3ff gui, provider, gateway: a group's models are dragged into order, a group can be switched off, several models are added at once, and a page shows a scrollbar on the Mac (PAMI on Discord) — in a group's editor a model went up one step a click and only up; its number is now a handle (grip on hover) that drags it, Alt+↑/↓ moves it from the keyboard, and Up and Down stay beside it; a pattern's members follow the named ones. A group of the user's has a switch on its card: off, agents aren't offered it, a request to it is turned away with 404 "the routing group … is switched off", a group that has it in it goes on to its next member, a save from the editor leaves it off, and one that classifies for another can't be switched off (a found group is removed instead, as before). Each member already had its own switch. The editor's Add a model picker stays open: each model clicked is added and ticked, clicked again taken out, and each says the other groups it is in. Pages, dialogs and framed editors had their scrollbar hidden everywhere (width 0); on the Mac they now have a thin 8px thumb, elsewhere the 10px one other lists have. TestSwitchGroup, TestSwitchedOffGroup, group-member-drag, group-switch-add-many and view-scrollbar (WebKit, en and zh) fail without the change. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn is flaky on origin/main as well). 2026-10-05 16:46:59 +08:00