Repository navigation
1.0.78
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
enqueueFollowUpMessageto session store: New method onuseSessionStorethat appends a message to thependingFollowUpMessagesmap for a given session, complementing the existingdequeueFollowUpMessage/consumeFollowUpMessagemethods. - 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 usingghostty_surface_text() - Added
ghosttyFocusedSurfaceId()— queries all registered surfaces to find which one'sNSViewis the current window first responder - Exposed both functions as Node.js native addon bindings
Main process (src/main/)
ghostty-service.ts— addedpasteText(),focusedSurfaceId(), andpasteToFocusedSurface()methodsmenu.ts— replaced{ role: 'editMenu' }with a custom Edit submenu; the Paste item's click handler checksghosttyService.focusedSurfaceId()and routes accordinglyterminal-handlers.ts— registered newterminal:ghostty:pasteTextIPC handler
Preload (src/preload/)
- Added
ghosttyPasteTextIPC bridge interminalOps - Added
onEditPasteevent listener insystemOpsfor theedit:pastechannel - Updated type declarations in
index.d.ts
Renderer (src/renderer/)
TerminalView.tsx— addeduseEffecthook that subscribes toedit:pasteevents and forwards clipboard text to the Ghostty surface via IPCXtermBackend.ts— improved Cmd+V and Cmd+Shift+V paste handlers with a fallback toreadFromClipboardwhennavigator.clipboard.readText()fails (e.g. when the window doesn't have clipboard permission)