When macOS re-activates the app after all windows are closed, `createWindow()` is called
again but IPC handlers from the previous window were still registered, causing duplicate
handler errors and crashes. This fix removes stale handlers before re-registering them
in pty, repos, and worktrees modules, and ensures repo/worktree handlers + auto-updater
are also set up on activate. Includes minor lint/style cleanups across the codebase.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Show CI check status icons (success/failure/pending) next to the branch
name on worktree cards. Return 'neutral' instead of 'pending' when no
CI checks exist to avoid showing a misleading spinner. Fix lint errors
in client.ts (curly braces, array-type).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
- Add terminal link detection that recognizes file paths with optional
line:column suffixes and opens them in the editor or externally
- Split shell IPC into separate openUrl, openFilePath, openFileUri, and
pathExists handlers with proper URL/path validation
- Register xterm link providers per pane with path existence caching
- Support OSC 8 hyperlinks for http(s) and file: protocols
- Add editor-reveal-location custom event for jumping to line/column
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Merge the separate "Link Issue" and "Edit Comment" modals into a single
"Edit Worktree Details" dialog. Add double-click on worktree cards to
open the unified editor. Context menu items now focus the relevant field.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
The did-finish-load handler was killing all PTY processes, including ones
spawned during the current page load. This caused blank terminals when a
race between renderer reload and PTY creation occurred. Now each PTY is
tagged with a load generation counter, and only PTYs from previous
generations are killed on reload.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
When all PTYs are dead after shutdown, bump a generation counter on
terminal tabs so React remounts TerminalPane components with fresh
PTY connections instead of showing stale terminals.
Also converts interfaces to type aliases in types.ts to satisfy linter.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
- Return empty fragment instead of null to satisfy JSX.Element return type
- Remove unused paneTransportsRef parameter and PtyTransport import
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Remove unused `paneTransportsRef` from context menu hook and fix
`EditorPanel` return type to allow `null`.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Use Vite worker imports to bundle Monaco web workers instead of relying on CDN,
and correct language IDs for .tsx/.jsx files to typescriptreact/javascriptreact.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
The previous approach used app.relaunch() + app.quit() to avoid a crash
dialog, but this created a race condition where the app relaunches the
old version before electron-updater's installer replaces the .app bundle.
Instead, use autoUpdater.quitAndInstall() on all platforms with proper
cleanup beforehand (kill PTY processes, flush store, destroy windows) to
ensure a clean exit without crash dialogs.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add break-all to worktree name and use proper flex layout for error
messages to prevent long text from overflowing the dialog.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Split the monolithic TerminalPane component into focused custom hooks
(lifecycle, context menu, global effects, dark mode detection) and break
the large terminal-themes-data file into organized modules.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Previously, creating a worktree would auto-filter the sidebar to the
current repo, which could be confusing. Now clears the filter so all
worktrees remain visible, relying on revealWorktreeInSidebar to scroll
to the newly created worktree.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* feat: use Enter to submit and Shift+Enter for line break in comment editor
Closes#48
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: add CLAUDE.md and gitignore package-lock.json
Enforce pnpm usage for AI agents and prevent stray npm lock files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add auto-pr-merge skill (from noqa) with CI wait times reduced for orca's
fast CI: 1-min initial wait + 1-min poll intervals (~6 min max) instead of
8-min + 3-min (~23 min max). Add auto-submit skill to orchestrate the full
review-fix-pr-merge pipeline.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
With allowPrerelease enabled, electron-updater may consider the current
version as an "available" update, causing the update banner to reappear
in a loop after restarting. Guard both update-available and
update-downloaded handlers to skip when the reported version matches the
running app version. Also preserve the userInitiated flag through the
same-version guard so user-initiated checks still show the "latest
version" toast.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Automated iterative code review and fix loop with parallel review agents.
Runs up to 4 iterations of review-validate-fix cycle with specialized
review commands per file category.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Move activeWorktreeId/activeTabId clearing out of shutdownWorktreeTerminals
(a terminal-focused store action) and into the UI component that triggers
shutdown. The delete flow already handles this independently in worktrees.ts.
Also fix pre-existing lint issues and extract terminal helpers to separate file.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
The preload implementation and IPC handler for getVersion existed but
the type declaration was missing, causing TS2339 on Windows CI.
Also converts interfaces to type aliases in the preload type
declarations to satisfy the consistent-type-definitions lint rule.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>