Skip to content

1.0.78

Choose a tag to compare

@morapelker morapelker released this 26 Mar 14:25
· 2398 commits to main since this release

What's Changed

Queue follow-up messages during active session (#192)

  • Persist follow-up messages to the store queue: When a user sends a message while the session is busy, it is now properly enqueued via enqueueFollowUpMessage() in the session store, rather than only being tracked visually. The input is cleared immediately and the message waits in the persistent queue for the idle handler to send it.
  • Add enqueueFollowUpMessage to session store: New method on useSessionStore that appends a message to the pendingFollowUpMessages map for a given session, complementing the existing dequeueFollowUpMessage / consumeFollowUpMessage methods.
  • Synchronize visual queue with persistent queue: When a follow-up is consumed and sent, the first visual queued bubble is removed (FIFO). When the session goes idle, the visual queue is only cleared if no follow-ups remain in the persistent queue, preventing premature removal of pending message bubbles.

docs: remove planned features from roadmap (#191)

This PR removes 4 features from the roadmap section that are no longer planned for development:

  • Custom AI models — Bring your own OpenAI/Anthropic API keys
  • Terminal tabs — Multiple terminal sessions per worktree
  • Connection Intelligence — AI-powered connection suggestions based on git history
  • Connection Marketplace — Share and discover connection templates

fix: resolve Cmd+V paste not working in Ghostty terminal on macOS (#190)

On macOS, the Electron menu accelerator for Cmd+V intercepts the keystroke at the system level before it can reach the native Ghostty NSView. This causes paste to silently fail when the Ghostty terminal backend is active.

This PR fixes the issue by replacing the default editMenu with a custom Edit menu that intelligently routes paste operations:

  • When a Ghostty surface has macOS first responder focus → reads the clipboard and pastes directly into the Ghostty surface via a new programmatic paste API
  • When web content (Chromium) has focus → falls through to the normal webContents.paste() path

Changes across the stack

Native layer (src/native/)

  • Added ghosttyPasteText(surfaceId, text) — writes text into a Ghostty surface programmatically using ghostty_surface_text()
  • Added ghosttyFocusedSurfaceId() — queries all registered surfaces to find which one's NSView is the current window first responder
  • Exposed both functions as Node.js native addon bindings

Main process (src/main/)

  • ghostty-service.ts — added pasteText(), focusedSurfaceId(), and pasteToFocusedSurface() methods
  • menu.ts — replaced { role: 'editMenu' } with a custom Edit submenu; the Paste item's click handler checks ghosttyService.focusedSurfaceId() and routes accordingly
  • terminal-handlers.ts — registered new terminal:ghostty:pasteText IPC handler

Preload (src/preload/)

  • Added ghosttyPasteText IPC bridge in terminalOps
  • Added onEditPaste event listener in systemOps for the edit:paste channel
  • Updated type declarations in index.d.ts

Renderer (src/renderer/)

  • TerminalView.tsx — added useEffect hook that subscribes to edit:paste events and forwards clipboard text to the Ghostty surface via IPC
  • XtermBackend.ts — improved Cmd+V and Cmd+Shift+V paste handlers with a fallback to readFromClipboard when navigator.clipboard.readText() fails (e.g. when the window doesn't have clipboard permission)