From 99c85710e95e4fb40ac7aadda59cdc37c41ed37e Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Wed, 24 Dec 2025 21:44:51 -0800 Subject: [PATCH] fix: make Workspace and Favorites history filters independent (#8292) * fix: make Workspace and Favorites history filters independent Move Workspace and Favorites filters out of the VSCodeRadioGroup into their own container. This fixes the regression where selecting one filter would prevent selecting the other, since VSCodeRadioGroup enforces mutual exclusivity. The filters now work as independent toggles while maintaining visual continuity with the sort options above. Fixes #8289 * add changeset --- .changeset/fix-history-filters.md | 5 +++++ CLAUDE.md | 3 +++ webview-ui/src/components/history/HistoryView.tsx | 8 ++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changeset/fix-history-filters.md diff --git a/.changeset/fix-history-filters.md b/.changeset/fix-history-filters.md new file mode 100644 index 00000000..6cb2d32e --- /dev/null +++ b/.changeset/fix-history-filters.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Fix Workspace and Favorites history filters to work independently instead of being mutually exclusive diff --git a/CLAUDE.md b/CLAUDE.md index 4e941e07..c898cbf1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -14,6 +14,9 @@ This file is the secret sauce for working effectively in this codebase. It captu **What NOT to add:** Stuff you can figure out from reading a few files, obvious patterns, or standard practices. This file should be high-signal, not comprehensive. +## Miscellaneous +- This is a VS Code extension—check `package.json` for available scripts before trying to verify builds (e.g., `npm run compile`, not `npm run build`). + ## gRPC/Protobuf Communication The extension and webview communicate via gRPC-like protocol over VS Code message passing. diff --git a/webview-ui/src/components/history/HistoryView.tsx b/webview-ui/src/components/history/HistoryView.tsx index 97d57186..b41ef613 100644 --- a/webview-ui/src/components/history/HistoryView.tsx +++ b/webview-ui/src/components/history/HistoryView.tsx @@ -334,6 +334,8 @@ const HistoryView = ({ onDone }: HistoryViewProps) => { Most Relevant + +
setShowCurrentWorkspaceOnly(!showCurrentWorkspaceOnly)}> @@ -342,13 +344,15 @@ const HistoryView = ({ onDone }: HistoryViewProps) => { Workspace - setShowFavoritesOnly(!showFavoritesOnly)}> + setShowFavoritesOnly(!showFavoritesOnly)}> Favorites - +