From 150646bd0df2305bdbeda0fb673a766a0960c4e9 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 11 Nov 2026 15:43:38 +0800 Subject: [PATCH] cli tests: context-cap-mode and the memory review routes are named TestEveryRouteHasACommandOrIsNamed was red on main again: f5e1b1091 added POST /api/settings/context-cap-mode, which `magpie model context-cap all|own` does, and POST /api/memory/promote, skill and decline came with no command or notYet line (stage 3, the library). Run on mote at a3900e46f plus this: go test -run TestEveryRouteHasACommandOrIsNamed ./internal/cli/ ok; without it the test names the four routes. The rest of internal/cli is red on main for TestModelUsageAlignsEveryDescription and its sibling (#6104), not this. --- internal/cli/settings_parity_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/cli/settings_parity_test.go b/internal/cli/settings_parity_test.go index 5a675f822..4e1231b61 100644 --- a/internal/cli/settings_parity_test.go +++ b/internal/cli/settings_parity_test.go @@ -231,6 +231,7 @@ var cliForRoute = map[string]string{ "POST /api/settings/agent-compact": "magpie model compact", "POST /api/settings/agent-suffix": "magpie model suffix", "POST /api/settings/context-cap": "magpie model context-cap", + "POST /api/settings/context-cap-mode": "magpie model context-cap", "POST /api/update/install": "magpie update", "GET /api/model-price": "magpie model price", "POST /api/model-price": "magpie model price", @@ -410,6 +411,9 @@ var notYet = map[string]string{ "POST /api/memory/distill": L, // memory_distill.go "POST /api/memory/distill/run": L, // memory_distill.go "POST /api/memory/distill/stop": L, // memory_distill.go + "POST /api/memory/promote": L, // memory.go + "POST /api/memory/skill": L, // memory.go + "POST /api/memory/decline": L, // memory.go "POST /api/memory/dream": L, // memory_distill.go "POST /api/memory/dream/run": L, // memory_distill.go "POST /api/memory/dream/undo": L, // memory_distill.go