feat(terminal): add integrated terminal panel with ⌘+J toggle

- PTY backend: portable-pty session registry scoped per channel (max 20)
- Frontend: xterm.js terminal with FitAddon, WebLinksAddon, resize observer
- Panel: draggable resize (150-600px), high-contrast Tokyo Night theme
- Shortcut: ⌘+J / Ctrl+J toggle via TerminalContext + custom DOM event
- Integration: TerminalPanel renders below composer in ChannelPane
- Tauri commands: terminal_open_session, terminal_write, terminal_resize,
  terminal_close_session registered in invoke_handler
- Shell: resolves user's $SHELL, scrubs Hermit env, sets TERM=xterm-256color
- Deps: @xterm/xterm, @xterm/addon-fit, @xterm/addon-web-links
This commit is contained in:
Taylor Ho
2026-05-21 20:08:56 -07:00
parent 441b6c4b1a
commit 40ebf3598c
17 changed files with 1327 additions and 243 deletions

View File

@@ -33,10 +33,10 @@ const overrides = new Map([
["src-tauri/src/managed_agents/personas.rs", 900], // built-in persona system prompts (Solo + Kit + Scout) + persona pack import/uninstall/list + uninstall safety check
["src-tauri/src/managed_agents/teams.rs", 580], // built-in team registry (Kit & Scout) + merge_teams + validate_team_deletion + JSON export/import + tests
["src-tauri/src/managed_agents/persona_card.rs", 970], // PNG/ZIP/MD persona card codec + pack-zip detection + nested root finder + provider/model/namePool fields + 27 unit tests
["src/app/AppShell.tsx", 815], // message edit state + handlers + ChannelPane edit prop threading + scrollback pagination + workflows view + projects view + memory-leak safeguards + home-badge state lifted here so it consumes the same NIP-RS read-state as the sidebar (single ReadStateManager)
["src/app/AppShell.tsx", 825], // message edit state + handlers + ChannelPane edit prop threading + scrollback pagination + workflows view + projects view + memory-leak safeguards + home-badge state lifted here so it consumes the same NIP-RS read-state as the sidebar (single ReadStateManager) + terminal toggle shortcut
["src/features/channels/hooks.ts", 550], // canvas query + mutation hooks + DM hide mutation
["src/features/channels/ui/ChannelManagementSheet.tsx", 800],
["src/features/channels/ui/ChannelPane.tsx", 520], // composer/timeline/sidebar orchestration + anchored agent activity footers
["src/features/channels/ui/ChannelPane.tsx", 530], // composer/timeline/sidebar orchestration + anchored agent activity footers + terminal panel integration
["src/features/channels/ui/ChannelScreen.tsx", 550], // profile panel state + mutual exclusion wiring + ProfilePanelProvider context + agent typing classification
["src/features/notifications/hooks.ts", 535], // notification settings + feed notification lifecycle + profile batch resolution + truncated-pubkey guard + badge state
["src/features/home/ui/HomeView.tsx", 505], // inbox/feed orchestration + thread context + reply/delete flow + NIP-RS read-state projection wiring (useHomeInboxReadState)