diff --git a/scripts/check/check-error-helper.mjs b/scripts/check/check-error-helper.mjs index c226426ab1..6495eb6812 100644 --- a/scripts/check/check-error-helper.mjs +++ b/scripts/check/check-error-helper.mjs @@ -42,7 +42,8 @@ const IS_API_ROUTE = /^src\/app\/api\/.+\/route\.tsx?$/; export const KNOWN_MISSING_ERROR_HELPER = new Set([ // --- original open-sse/executors + handlers scope (pre-6A.8) --- // --- 6A.8 expanded scope: src/app/api/**/route.ts pre-existing violations --- - // TODO(6A.8): pre-existing, triage — route through buildErrorBody()/sanitizeErrorMessage() + // (empty — #8233 made open-sse/executors/muse-spark-web.ts import sanitizeErrorMessage, + // resolving the last frozen violator; see docs/security/ERROR_SANITIZATION.md) ]); // Import specifiers that count as "uses the error helper" (path ends in utils/error). diff --git a/tests/unit/sidebar-visibility.test.ts b/tests/unit/sidebar-visibility.test.ts index 721e00e29b..a1771999ba 100644 --- a/tests/unit/sidebar-visibility.test.ts +++ b/tests/unit/sidebar-visibility.test.ts @@ -58,6 +58,7 @@ test("primary sidebar items place limits after cache", () => { "context-ultra", "context-omniglyph", "compression-studio", + "compression-exclusions", "cli-code", "cli-agents", "acp-agents", diff --git a/tests/unit/ui/sidebar-engine-items.test.ts b/tests/unit/ui/sidebar-engine-items.test.ts index 474e50d863..157ee4d059 100644 --- a/tests/unit/ui/sidebar-engine-items.test.ts +++ b/tests/unit/ui/sidebar-engine-items.test.ts @@ -78,11 +78,20 @@ describe("COMPRESSION_CONTEXT_GROUP contains all 4 engine items", () => { } }); - it("group order is Settings → Combos → engines → Studio", () => { + it("group order is Settings → Combos → engines → Studio → Exclusions", () => { const ids = itemIds as string[]; assert.equal(ids[0], "context-settings", "Settings must be first"); assert.equal(ids[1], "context-combos", "Combos must be second"); - assert.equal(ids[ids.length - 1], "compression-studio", "Studio must be last"); + assert.equal( + ids[ids.length - 1], + "compression-exclusions", + "Exclusions must be last" + ); + assert.equal( + ids[ids.length - 2], + "compression-studio", + "Studio must immediately precede Exclusions" + ); // Combos precedes every per-engine page. const combosIdx = ids.indexOf("context-combos"); for (const id of ["context-caveman", "context-rtk", ...ENGINE_IDS]) {