wraith/src-tauri
Vantz Stockwell 512347af5f
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 3m6s
feat: Local PTY Copilot Panel — replace Gemini stub with real terminal
Ripped out the Gemini API stub (ai/mod.rs, ai_commands.rs, GeminiPanel.vue)
and replaced it with a local PTY terminal in the sidebar panel. Users select
a shell (bash/zsh/sh on Unix, PowerShell/CMD/Git Bash on Windows), launch it,
and run claude/gemini/codex or any CLI tool directly.

Backend:
- New PtyService module using portable-pty (cross-platform PTY)
- DashMap session registry (same pattern as SshService)
- spawn_blocking output loop (portable-pty reader is synchronous)
- 5 Tauri commands: list_available_shells, spawn_local_shell, pty_write,
  pty_resize, disconnect_pty

Frontend:
- Parameterized useTerminal composable: backend='ssh'|'pty'
- convertEol=false for PTY (PTY driver handles LF→CRLF)
- CopilotPanel.vue with shell selector, launch/kill, session ended prompt
- Ctrl+Shift+G toggle preserved

Tests: 87 total (5 new PTY tests), zero warnings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 20:43:18 -04:00
..
capabilities fix: add Tauri v2 capabilities — unblock event:listen for SSH terminal 2026-03-24 17:00:54 -04:00
gen/schemas feat: Local PTY Copilot Panel — replace Gemini stub with real terminal 2026-03-24 20:43:18 -04:00
icons feat: Phase 1 complete — Tauri v2 foundation 2026-03-17 15:09:41 -04:00
src feat: Local PTY Copilot Panel — replace Gemini stub with real terminal 2026-03-24 20:43:18 -04:00
windows fix: remove desktop shortcut from NSIS installer by default 2026-03-24 20:04:06 -04:00
build.rs feat: Phase 1 complete — Tauri v2 foundation 2026-03-17 15:09:41 -04:00
Cargo.lock feat: Local PTY Copilot Panel — replace Gemini stub with real terminal 2026-03-24 20:43:18 -04:00
Cargo.toml feat: Local PTY Copilot Panel — replace Gemini stub with real terminal 2026-03-24 20:43:18 -04:00
installer.nsi.template feat: Local PTY Copilot Panel — replace Gemini stub with real terminal 2026-03-24 20:43:18 -04:00
tauri.conf.json fix: remove desktop shortcut from NSIS installer by default 2026-03-24 20:04:06 -04:00