mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-14 09:11:54 +00:00
fix(desktop): gate ALL-profiles grouping on multiProfile
If a user drops back to a single profile while scope is still ALL (persisted), the rail is hidden — they'd be stuck in the grouped view with no toggle out. Fall back to the scoped view when only one profile.
This commit is contained in:
parent
fb18bde897
commit
76b98f43ca
1 changed files with 4 additions and 1 deletions
|
|
@ -242,7 +242,10 @@ export function ChatSidebar({
|
|||
// Only surface the profile switcher when more than one profile exists, so
|
||||
// single-profile users see the unchanged sidebar.
|
||||
const multiProfile = profiles.length > 1
|
||||
const showAllProfiles = profileScope === ALL_PROFILES
|
||||
// Gate ALL-profiles grouping on multiProfile too: if a user drops back to one
|
||||
// profile while scope is still ALL (persisted), the rail is hidden and they'd
|
||||
// otherwise be stuck in the grouped view with no way out.
|
||||
const showAllProfiles = multiProfile && profileScope === ALL_PROFILES
|
||||
const [agentOrderIds, setAgentOrderIds] = useState<string[]>([])
|
||||
const [workspaceOrderIds, setWorkspaceOrderIds] = useState<string[]>([])
|
||||
const [searchQuery, setSearchQuery] = useState('')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue