From 9d5c4e971ad7fe7f51bb78b6c2af3ad4155684b0 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 8 Jul 2026 17:25:34 -0700 Subject: [PATCH] Show empty sessions by default in AI Vault Panel Change the default state of `hideEmptySessions` from true to false, and update the active filter count calculation to treat false as the new default. --- src/renderer/src/components/right-sidebar/AiVaultPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/AiVaultPanel.tsx b/src/renderer/src/components/right-sidebar/AiVaultPanel.tsx index 4a6bccec9db..ce09c2e241b 100644 --- a/src/renderer/src/components/right-sidebar/AiVaultPanel.tsx +++ b/src/renderer/src/components/right-sidebar/AiVaultPanel.tsx @@ -70,7 +70,7 @@ export default function AiVaultPanel(): React.JSX.Element { const [scope, setScope] = useState(DEFAULT_AI_VAULT_SCOPE) const [sort, setSort] = useState('updated') const [group, setGroup] = useState('project') - const [hideEmptySessions, setHideEmptySessions] = useState(true) + const [hideEmptySessions, setHideEmptySessions] = useState(false) const [agents, setAgents] = useState([...AI_VAULT_AGENTS]) const [collapsedGroups, setCollapsedGroups] = useState>(() => new Set()) const userChangedScopeRef = useRef(false) @@ -160,7 +160,7 @@ export default function AiVaultPanel(): React.JSX.Element { (hasAllAgentsSelected ? 0 : 1) + (sort === 'updated' ? 0 : 1) + (group === 'project' ? 0 : 1) + - (hideEmptySessions ? 0 : 1) + (hideEmptySessions ? 1 : 0) // Workspace is the preferred default, but unavailable context still falls back to All. useEffect(() => {