Revise default hidden categories to reduce noise in session view
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user