settings: trayNoNumber is a key magpie settings sets, and GET /api/quit is the window's own (#4793, #4794)

da275848b saved trayNoNumber without naming it in settingsapi.Keys, and
8826a15ea added GET /api/quit without naming it in the CLI parity table,
so TestKeysAreWhatTheSaveWrites, TestSettingsCLISetsWhatTheWindowSaves
and TestEveryRouteHasACommandOrIsNamed have been red on main since.
/api/quit only reads which agents the window's Quit question names, so
it is the window's own (W), with nothing to do in a terminal.

Run at a8e98e1ab plus this, on mote: go test -tags nogui -count=1
./internal/settingsapi ./internal/cli ./internal/settings: ok. The same
three tests were red at 6b3a6d42c without it.
This commit is contained in:
yetone
2026-11-02 04:51:42 +08:00
parent 3f393a4fae
commit d89f03aa92
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -172,6 +172,7 @@ var notYet = map[string]string{
"GET /api/drift": A, // api.go
"GET /api/notices": W, // api.go
"GET /api/omarchy": W, // api.go
"GET /api/quit": W, // api.go: the window's Quit question
"GET /api/state": W, // api.go
"POST /api/agents/{action}/{id}": A, // api.go
"POST /api/agents/arrange": W, // api.go
+1 -1
View File
@@ -33,7 +33,7 @@ var Keys = []string{
"tray", "dock", "dockWindow", "dockNever", "lightweight", "keepAwake", "keepAwakeDisplay",
"noWSLAgents", "sessionTerminal", "signInLinkOnly",
// the menu bar's allowance cards
"trayUsages", "trayUsage", "trayUsageEvery", "trayNoLogos", "trayNoBird", "trayPace", "trayNoCost", "trayWindows",
"trayUsages", "trayUsage", "trayUsageEvery", "trayNoLogos", "trayNoBird", "trayNoNumber", "trayPace", "trayNoCost", "trayWindows",
// usage and alerts
"currency", "chineseUnits", "usageAlert", "balanceAlert", "resetReminder", "turnDoneAlert", "maskAlert",
// network