Skip to content

Add Claude integration, git panel, command palette, and markdown preview#2

Open
ParkerM2 wants to merge 3 commits intomasterfrom
feature/audit-cleanup
Open

Add Claude integration, git panel, command palette, and markdown preview#2
ParkerM2 wants to merge 3 commits intomasterfrom
feature/audit-cleanup

Conversation

@ParkerM2
Copy link
Owner

Summary

  • Claude CLI detection: Side-channel PTY scanner (claudeScanner.js) detects Claude startup/exit, model name, and cost — displays green indicator, model badge, and cost in terminal pane headers
  • Git IPC handlers: New gitHandlers.js with allowlisted subcommands (status, diff, show, add, restore, rev-parse) using execFile with path validation and 10s timeout
  • Git status sidebar: New panel showing staged/unstaged files with status indicators (M/A/D/?), stage/unstage buttons, click-to-open diff view, debounced auto-refresh
  • Diff view: @codemirror/merge MergeView showing side-by-side original (HEAD) vs current file content, read-only with Tokyo Night Storm theme
  • Command palette: Searchable overlay (Ctrl+Shift+P) with fuzzy filtering, Claude slash commands, model switching shortcuts, and app actions with keyboard navigation
  • Markdown preview: Zero-dependency regex renderer with split-pane preview toggle for .md files
  • Auto-start Claude: New setting to automatically run claude in new terminal panes
  • Shared language utils: Extracted getLanguageExtension() into reusable utils/languages.js

Test plan

  • npm run build passes with no errors
  • App launches normally with npm run dev, no console errors
  • Terminal panes start shell normally; enabling "Auto-start Claude" in settings auto-runs claude in new panes
  • Claude running shows green indicator, model badge, and cost in pane header
  • Ctrl+Shift+P opens command palette; search, arrow keys, and Enter work correctly
  • Git sidebar section shows modified/staged/untracked files with correct status indicators
  • Clicking a modified file opens side-by-side diff view in editor panel
  • Stage/unstage buttons work and status refreshes
  • Opening a .md file shows Preview toggle; clicking it renders markdown alongside source
  • "Open CLAUDE.md" command palette entry opens the file in editor with preview available
  • Settings (including autoStartClaude) persist across app restart

🤖 Generated with Claude Code

ParkerES and others added 3 commits February 21, 2026 13:23
…wn preview

Phase 2 implementation transforming the terminal wrapper into a Claude Code
cockpit: Claude CLI detection via PTY side-channel scanner, git IPC handlers
with allowlisted subcommands, searchable command palette (Ctrl+Shift+P),
git status sidebar with stage/unstage, @codemirror/merge diff view,
markdown preview for .md files, and auto-start Claude setting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…e sessions

- Replace emoji file icons with atom-file-icons for extension-specific colored icons
- Add right-click context menu to terminal (copy, paste, select all, clear)
- Add Ctrl+C/Ctrl+V clipboard integration in terminal via custom key handler
- Strip CLAUDE_CODE_ENTRYPOINT and related env vars from PTY to prevent
  nested session detection when running claude inside the terminal
- Inline git handlers and Claude scanner into main process bundle
- Add clipboard read/write IPC handlers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants