mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fmt(js): npm run fix on merge (#74814)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
3eebb99ca8
commit
84d71fb88f
4 changed files with 24 additions and 14 deletions
|
|
@ -611,19 +611,18 @@ export function ChatSidebar({
|
|||
}
|
||||
|
||||
const sorted = sortProjectsForOverview(
|
||||
filterVisibleProjects(projectTree, dismissedAutoProjects)
|
||||
.map(project =>
|
||||
excludeProjectSessions(
|
||||
{
|
||||
...project,
|
||||
// Home is synthetic, so its name is ours to translate — every other
|
||||
// label is a repo basename or a name the user typed.
|
||||
label: project.isNoProject ? s.projects.home : project.label,
|
||||
repos: orderRepos(project.repos)
|
||||
},
|
||||
isPinnedSession
|
||||
)
|
||||
),
|
||||
filterVisibleProjects(projectTree, dismissedAutoProjects).map(project =>
|
||||
excludeProjectSessions(
|
||||
{
|
||||
...project,
|
||||
// Home is synthetic, so its name is ours to translate — every other
|
||||
// label is a repo basename or a name the user typed.
|
||||
label: project.isNoProject ? s.projects.home : project.label,
|
||||
repos: orderRepos(project.repos)
|
||||
},
|
||||
isPinnedSession
|
||||
)
|
||||
),
|
||||
activeProjectId
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -942,7 +942,16 @@ function CommandPaletteBody({ onExited }: { onExited: () => void }) {
|
|||
// live state through `detail()`, so the groups must rebuild after a select
|
||||
// that kept the palette open — eslint only sees an unused dep.
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [contributedItems, dismissedAutoProjects, go, projectTree, selectTick, settingsSectionLabel, t, updateVersionLabel])
|
||||
}, [
|
||||
contributedItems,
|
||||
dismissedAutoProjects,
|
||||
go,
|
||||
projectTree,
|
||||
selectTick,
|
||||
settingsSectionLabel,
|
||||
t,
|
||||
updateVersionLabel
|
||||
])
|
||||
|
||||
// The long, granular lists (settings fields, API keys, MCP servers, archived
|
||||
// chats) only surface once the user types — otherwise they'd bury the
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ describe('removePane close-neighbor selection', () => {
|
|||
group(['workspace'], { active: 'workspace', id: 'main' }),
|
||||
group(['tile:1', 'tile:2', 'tile:3'], { active: 'tile:2', id: 'stack' })
|
||||
])
|
||||
|
||||
const next = removePane(tree, 'tile:2')
|
||||
const stack = next ? findGroup(next, 'stack') : null
|
||||
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ export function filterVisibleProjects<T extends { id: string; isAuto?: boolean }
|
|||
}
|
||||
|
||||
const dismissed = new Set(dismissedIds)
|
||||
|
||||
return projects.filter(project => !(project.isAuto && dismissed.has(project.id)))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue