From d89f03aa9216f0ecbb0f75f68f86dafd5d6316a4 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 2 Nov 2026 04:51:42 +0800 Subject: [PATCH] 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. --- internal/cli/settings_parity_test.go | 1 + internal/settingsapi/settingsapi.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cli/settings_parity_test.go b/internal/cli/settings_parity_test.go index 7f357d584..ed868d051 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -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 diff --git a/internal/settingsapi/settingsapi.go b/internal/settingsapi/settingsapi.go index ae3dc1f2d..0e5351baa 100644 --- a/internal/settingsapi/settingsapi.go +++ b/internal/settingsapi/settingsapi.go @@ -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