From 54f909c80c11afc024278e5a058462f0a5400bb0 Mon Sep 17 00:00:00 2001 From: teernisse Date: Fri, 30 Jan 2026 10:42:21 -0500 Subject: [PATCH] Revise default hidden categories to reduce noise in session view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the default-hidden message categories from [thinking, hook_progress] to [tool_result, system_message, hook_progress, file_snapshot]. This hides the verbose machine-oriented categories by default while keeping thinking blocks visible — they contain useful reasoning context that users typically want to see. Also rename the "summary" category label from "Summaries" to "Compactions" to better reflect what Claude's summary messages actually represent (context-window compaction artifacts). Tests updated to match the new defaults: the filter test now asserts that tool_result, system_message, hook_progress, and file_snapshot are all excluded, producing 5 visible messages instead of the previous 7. Co-Authored-By: Claude Opus 4.5 --- src/shared/types.ts | 6 ++++-- tests/unit/filters.test.ts | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/shared/types.ts b/src/shared/types.ts index 0d2814d..b639890 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -69,10 +69,12 @@ export const CATEGORY_LABELS: Record = { system_message: "System Messages", hook_progress: "Hook/Progress", file_snapshot: "File Snapshots", - summary: "Summaries", + summary: "Compactions", }; export const DEFAULT_HIDDEN_CATEGORIES: MessageCategory[] = [ - "thinking", + "tool_result", + "system_message", "hook_progress", + "file_snapshot", ]; diff --git a/tests/unit/filters.test.ts b/tests/unit/filters.test.ts index 24c17ac..0b5ce97 100644 --- a/tests/unit/filters.test.ts +++ b/tests/unit/filters.test.ts @@ -48,15 +48,17 @@ describe("filters", () => { expect(filtered.find((m) => m.category === "thinking")).toBeUndefined(); }); - it("default filter state has thinking and hooks disabled", () => { + it("default filter state hides tool_result, system, hooks, and snapshots", () => { const defaultEnabled = new Set(ALL_CATEGORIES); for (const cat of DEFAULT_HIDDEN_CATEGORIES) { defaultEnabled.delete(cat); } const filtered = filterMessages(messages, defaultEnabled); - expect(filtered.find((m) => m.category === "thinking")).toBeUndefined(); + expect(filtered.find((m) => m.category === "tool_result")).toBeUndefined(); + expect(filtered.find((m) => m.category === "system_message")).toBeUndefined(); expect(filtered.find((m) => m.category === "hook_progress")).toBeUndefined(); - expect(filtered).toHaveLength(7); + expect(filtered.find((m) => m.category === "file_snapshot")).toBeUndefined(); + expect(filtered).toHaveLength(5); }); it("all-off filter returns empty array", () => {