Files
magpie/internal/gui
yetone 4999cef657 cli, gui tests: context-cap's usage line lines up, and ContextCapAll is kept (#6103, #6104)
f5e1b1091 gave `magpie model context-cap` a longer argument list with the
old padding, so its description started at column 57 against the others'
49 (TestModelUsageAlignsEveryDescription, TestModelUsageLinesUpItsDescriptions).
It also added Settings.ContextCapAll, which TestSettingsSaveKeepsWhatItDoesNotSend
saw unset; it is now set beside ContextCap, both kept by POST /api/settings
(the test passes, so the save already keeps it). #6102's parity entries came
in 150646bd0.

Run at 8fe720453 + this: internal/cli whole on Windows (ok, 364s) and on
WSL (ok, 105s, /mnt/c taken off PATH: #5234); internal/gui -run TestSettings
on WSL (ok); gofmt.
Not tried: the GUI browser suite (no GUI file changed), macOS (mote is down).
2026-11-11 16:31:22 +08:00
..
…
…
upstream: the vendors' own status pages say when their API is down (#971, emo172: an Anthropic or OpenAI outage looked like a sign-in or quota problem) — a provider that calls Anthropic's, OpenAI's or Moonshot's API (by its base URL's host: api.anthropic.com, which the Claude subscription calls too; api.openai.com and chatgpt.com, Codex's; api.moonshot.cn/.ai) carries "API outage" (red), "API degraded" or "API maintenance" beside its name on its Providers row and its Usage card while the vendor's page says so; its title names the parts and the open incidents, and a click opens the incident (or the page), not the row. internal/upstream reads each page's Statuspage-style summary.json (status.claude.com; status.openai.com, incident.io's; status.moonshot.cn), checked by hand on 2026-10-06, and only the API's own parts (Claude API and Claude Code, not claude.ai; Chat Completions, Responses, Codex, Codex CLI, not "Codex in ChatGPT Desktop", which was degraded that day); an incident naming no parts (OpenAI's) counts only while those parts are affected. Pages are read only when the Providers or Usage page asks (GET /api/upstream), at most once in five minutes, never on a request's way; a page that fails, isn't JSON or no longer lists the API's parts is unknown and marks nothing. A relay serving the same models is never marked. DeepSeek's page (Flashduty) has nothing readable and is only known for its link; OpenRouter, xAI, Mistral and z.ai have no page read. The gateway's failure messages, TUI, CLI and tray aren't changed. zh/ja/de added. upstream_test (fake pages from the real summaries: API down, claude.ai down isn't the API, Claude Code degraded, OpenAI's app isn't the API, 503/HTML/changed page unknown, read once in Fresh and Of never waits, hosts; -race -count=5) and gui's TestUpstreamRoute pass; upstream-status (Anthropic down: its provider and the Claude subscription marked, relay/OpenAI/unread Moonshot not, click opens the incident not the row, all well marks nothing; 900 and 440px, the badge whole, the name giving way) passes in Chromium and WebKit, en and zh, and fails 8/8 without the app.js change. i18n-keys, gui-ja, gui-de, click-scroll, account-return, account-models, usage-keys-fold, deprecated-subscriptions and add-sheet pass; go vet, go test ./internal/gui/, linux/windows/nogui builds pass.
2026-10-06 12:36:05 +08:00