mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-12-03 15:42:16 +00:00
feat(desktop): wire New Window to ⌘⇧N + command palette
Repoint session.newWindow (⌘⇧N) from the compact new-session pop-out to openNewWindow(), which opens a full peer instance via the new openWindow bridge, and add a "New Window" entry to the ⌘K palette (shown with its hotkey hint, gated on canOpenNewWindow()). Relabel the action "New window". Drops the retired openNewSessionWindow bridge and the vestigial isNewSessionWindow()/new=1 flag; renames the shared opener helper.
This commit is contained in:
parent
b586e4eff2
commit
a90ca7fe34
9 changed files with 71 additions and 48 deletions
|
|
@ -13,6 +13,7 @@ import { useI18n } from '@/i18n'
|
|||
import { sessionTitle } from '@/lib/chat-runtime'
|
||||
import {
|
||||
Activity,
|
||||
AppWindow,
|
||||
Archive,
|
||||
BarChart3,
|
||||
ChevronLeft,
|
||||
|
|
@ -59,6 +60,7 @@ import { openPetGenerate } from '@/store/pet-generate'
|
|||
import { requestStartWorkSession } from '@/store/projects'
|
||||
import { runGatewayRestart } from '@/store/system-actions'
|
||||
import { applyBackendUpdate } from '@/store/updates'
|
||||
import { canOpenNewWindow, openNewWindow } from '@/store/windows'
|
||||
import { luminance } from '@/themes/color'
|
||||
import { type ThemeMode, useTheme } from '@/themes/context'
|
||||
import { isUserTheme, resolveTheme } from '@/themes/user-themes'
|
||||
|
|
@ -413,6 +415,18 @@ export function CommandPalette() {
|
|||
label: cc.nav.newChat.title,
|
||||
run: go(NEW_CHAT_ROUTE)
|
||||
},
|
||||
...(canOpenNewWindow()
|
||||
? [
|
||||
{
|
||||
action: 'session.newWindow',
|
||||
icon: AppWindow,
|
||||
id: 'nav-new-window',
|
||||
keywords: ['window', 'instance', 'open', 'new'],
|
||||
label: t.keybinds.actions['session.newWindow'],
|
||||
run: () => void openNewWindow()
|
||||
}
|
||||
]
|
||||
: []),
|
||||
{
|
||||
action: 'view.showTerminal',
|
||||
icon: Terminal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue