Commit Graph
133 Commits
Author SHA1 Message Date
Jinwoo HongandClaude Opus 4.6 f6ec69c969 feat: add WSL support for repos on WSL filesystems (#375)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 21:02:36 -04:00
Jinwoo Hong beb62ff580 feat: add PR comments to checks panel (#376) 2026-04-07 17:58:40 -07:00
Jinwoo HongandClaude Opus 4.6 dd4e7b8497 feat: enhance Add Repo with modal flow and clone from URL (#372)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 13:31:18 -07:00
Jinjing c652990bb5 refactor: replace allowPrerelease workaround with generic feed URL (#365)
* fix(renderer): fix unescaped quote lint error in GeneralPane

* refactor: replace allowPrerelease workaround with generic feed URL

Use electron-updater's generic provider pointed at GitHub's
/releases/latest/download/ so the manifest always comes from the latest
stable release. This eliminates the client-side RC filtering, the GitHub
releases API fallback, and the manual-download path entirely.
2026-04-07 00:16:19 -07:00
Neil 4de80194c7 fix: resolve posix_spawnp failure on macOS Intel (#364) 2026-04-07 00:13:51 -07:00
NeilandClaude Opus 4.6 c0b6687e13 feat: add native desktop notifications (#180)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 23:24:02 -07:00
Jinwoo HongandClaude Opus 4.6 9b2b85c59d feat: add non-git folder support (#356)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 22:54:02 -07:00
NeilandClaude Opus 4.6 37ae8ce525 feat: add Star on GitHub button to landing page (#360)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 22:45:00 -07:00
Jinjing 499bde7b2e fix: correctly capture data-file path in dev environment (#357) 2026-04-06 21:49:15 -07:00
Jinjing e5f10f8092 feat: preserve opened editor files across app restarts (#355)
Persist edit-mode files in the workspace session so they are restored
on restart. Diffs and conflict views are intentionally excluded as they
depend on transient git state.
2026-04-06 20:48:52 -07:00
Jinwoo HongandClaude Opus 4.6 2939caf476 fix: make persistence data file path lazy so dev mode uses orca-dev (#354)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 19:12:22 -07:00
Jinjing 36085a0b89 fix: exclude RC/prerelease versions from auto-updater (#350)
* fix: fall back to stable release when electron-updater picks an RC

When the latest GitHub release is an RC, electron-updater (with
allowPrerelease enabled) reports it as available and never considers
older stable releases. Previously the code simply rejected the RC and
sent not-available, silently hiding real stable updates.

Now the update-available handler calls findFallbackReleaseVersion()
when it detects a prerelease, which queries the GitHub releases API
(filtering out prereleases/drafts) to find the newest stable version
newer than what's running and offers it as a manual download.

* fix: persist check timestamp when RC fallback fetch fails

The .catch path in the update-available RC handler was missing
recordCompletedUpdateCheck(), which meant a failed GitHub API call
during fallback would not persist the check timestamp. On next app
launch the interval check could fire immediately instead of waiting
the full 36 hours.
2026-04-06 18:02:41 -07:00
Matheus Nogueira e42ae3f0f0 Fix terminal zoom shortcuts on Linux layouts (#347) 2026-04-06 20:42:55 -03:00
Jinjing 85dd635598 fix: address review findings (#345) 2026-04-06 15:33:59 -07:00
Jinjing 6c423f15f0 feat: improve terminal font compatibility across platforms (#342)
* feat: improve terminal compatibility with default fonts across platforms

Add cross-platform monospace font fallback chain (SF Mono, Menlo, Monaco,
Cascadia Mono, Consolas, DejaVu Sans Mono, Liberation Mono) so the terminal
renders correctly on macOS, Windows, and Linux out of the box.

- Platform-aware default font in settings (SF Mono / Cascadia Mono / DejaVu)
- buildFontFamily deduplicates user font against full fallback chain
- Error handling for pty spawn failures with user-facing error banner
- Zero-dimension diagnostic when terminal container has no layout
- WebGL context loss / unavailability logging for debugging

* feat: improve terminal font fallback and pty error handling

- Add cross-platform terminal font fallbacks
- Surface pty spawn errors to terminal UI
- Fix max-lines eslint error in TerminalPane
- Fix curly braces eslint error in constants.ts
2026-04-06 14:33:33 -07:00
NeilandClaude Opus 4.6 d50807f7c3 fix: cmd+w closes active terminal pane, not entire tab (#335)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 13:33:48 -07:00
Jinjing 8c130591c3 fix: address review findings (#329) 2026-04-06 11:56:12 -07:00
Jinwoo HongandClaude Opus 4.6 1e95418122 Fix Orca CLI runtime bootstrap recovery (#324)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 11:32:16 -07:00
Jingyue Wu 77f6021aff fix: titlebar alignment in fullscreen and on windows (#277) 2026-04-05 23:34:12 -07:00
NeilandClaude Opus 4.6 7c7ec172e0 feat: check git and gh availability on landing page (#322)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-05 23:34:00 -07:00
Jinjing 6b18a1ce28 fix: centralize updater restart deferral in main process (#313)
* fix: defer updater quitAndInstall to allow React/UI state to settle

PR #299 introduced a regression where the one-click auto-update flow
would synchronously invoke `quitAndInstall` immediately upon receiving
the `downloaded` state transition. This triggered a synthetic `beforeunload`
event (to capture terminal buffers) and an IPC call to quit in the exact
same event loop tick that React and the Toast library were processing
state updates. This disrupted the renderer's synchronous shutdown and flush
logic, causing the app to fail to quit and install properly.

This adds a `setTimeout` to defer `quitAndInstall`, pushing it to the
bottom of the event queue. This allows the UI state to settle and ensures
the `beforeunload` flush sequence executes cleanly.
Test cases have also been updated to use fake timers.

* fix: centralize updater restart deferral in main process
2026-04-05 13:34:25 -07:00
Jinjing 8e77aca170 fix: fetch PR checks by head sha (#312) 2026-04-05 11:54:53 -07:00
Jinjing 3e51000bc5 fix: bypass gh CLI HTTP cache on manual PR checks refresh (#308)
The `gh api --cache 60s` flag caused stale check-run data even when
the user explicitly clicked refresh. Thread a `noCache` flag through
IPC so manual refreshes skip the gh CLI cache while polling still
benefits from it.
2026-04-05 11:26:32 -07:00
Jinjing 8a8826b2d6 Cache worktree roots for filesystem auth and UI improvements (#306)
* clean-up-repo-local-setup-script

- Add authorization cache for worktree roots to improve filesystem read performance
- Use ensureAuthorizedRootsCache instead of rebuilding on every list operation
- Fix useMemo side effect in WorktreeList by returning sorted IDs directly
- Add error display in QuickOpen and FileExplorer for unauthorized paths
- Improve section order in SourceControl (unstaged, staged, untracked)
- Add keyboard shortcut guard in WorktreeList for arrow keys
- Address review findings from code quality checks

* fix: update test mocks for filesystem-auth cache integration

- filesystem.test.ts: invalidate auth roots cache in beforeEach to
  prevent stale cache state from leaking between tests
- worktrees.test.ts / worktrees-windows.test.ts: add store.getRepos
  mock return value so rebuildAuthorizedRootsCache can iterate repos
- worktrees-windows.test.ts: add third listWorktrees mock for the
  cache rebuild call consumed during worktrees:create

* fix: resolve oxlint errors for max-lines and missing useEffect dependency

- Extract repeated worktree mock data into shared variable to reduce
  worktrees.test.ts below the 300-line limit
- Add missing 'toggleSidebar' to useEffect dependency array in App.tsx
2026-04-05 11:19:15 -07:00
Yax Patel 0cf0bbaab4 feat: add autosaving (#300) 2026-04-05 10:29:29 -07:00
Jinwoo Hong abe54ea84d Add current worktree shortcuts to Orca CLI (#301) 2026-04-04 18:33:58 -07:00
Jinjing db1bab5a05 fix: delete local branch when removing worktree (#296) 2026-04-04 13:35:36 -07:00
Jinjing e053b4f606 feat: add local image insertion with file picker, toolbar button, and hardened safety checks (#291)
- Add local image insertion support with file picker and toolbar button
- Harden image copy with COPYFILE_EXCL flag to prevent overwrites
- Add deconfliction loop limit (1000 iterations) to prevent hangs
- Force image re-render on filePath change for correct URL resolution
- Extract toolbar button into reusable RichMarkdownToolbarButton component
- Use setHeading (not toggleHeading) for idempotent slash commands
- Add path utilities (dirname, joinPath) with comprehensive tests
- Add image utility functions for safe copy destination handling
2026-04-04 00:31:03 -07:00
Jinjing 386fd0395e route native file drops to editor vs terminal based on drop surface (#289)
* fix: address review findings

- Default to 'editor' target when drop lands outside tagged zones,
  preserving the prior open-in-editor behavior for sidebar/editor body drops
- Add trailing space after each terminal-dropped path so multi-file drops
  are properly separated in terminal input

* feat: route native file drops to editor vs terminal by drop surface

Add data-native-file-drop-target markers and IPC target field so the
preload can classify OS drops before forwarding to the renderer.
2026-04-04 00:08:33 -07:00
Jinwoo Hong 2f6d96b346 Keep Orca runtime metadata owned by the active process (#288) 2026-04-04 00:01:19 -07:00
Jinjing 90d0fae8f5 feat: add explicit worktree setup flow (#286)
* feat: add explicit worktree setup flow

- Centralize worktree activation setup flow

- fix: render orca.yaml file contents in settings repo pane instead of tags when using config file

- fix: command preview title for yaml configs

- fix: update UI copy and styling to better reflect yaml setup hooks

- fix: run setup hook in background if CLI worktree is created while GUI is closed

- fix: prevent duplicate terminal tab creation when creating worktrees from the UI

- fix: ensure CLI worktree create returns correct payload type and hooks up UI setup flow

- Squashed commits

- fix minor regression

- fix: close worktree context menu when deleting

- fix: keep delete dialog open while archive hook runs and support inline yaml scripts

- chore: fix lint, typecheck and react state mutations during render for setup script feature

* fix(lint): split worktrees.test.ts to stay under max-lines limit

Extract Windows path-handling tests into worktrees-windows.test.ts
to bring the original file under the 300-line oxlint max-lines rule.

* fix(test): set up path mocks for setup launch payload test

The computeWorktreePathMock and ensurePathWithinWorkspaceMock were
cleared by afterEach but not re-established in the test, causing
areWorktreePathsEqual to receive undefined and crash.
2026-04-03 23:44:23 -07:00
Jinjing bbc85505c5 fix: improve error messages and focus handling for new file/folder creation (#285) 2026-04-03 23:13:28 -07:00
Jinwoo Hong 46070d8f27 Fix Windows packaged Orca CLI launcher path resolution (#282) 2026-04-03 22:20:09 -07:00
Jinwoo Hong 1c6d5a1fa0 Fix Windows worktree create path matching (#280) 2026-04-03 22:09:07 -07:00
Jinwoo Hong b3494b63b4 Normalize Orca worktree branch selectors (#281) 2026-04-03 22:08:59 -07:00
Jinjing 653575e506 fix: open external files in Orca editor (#276)
* feat: allow opening files outside the worktree in the editor

Fixes an issue where prompting Claude Code to open a file outside the worktree
would fall back to opening the default system viewer, and dragging external files
into Orca wouldn't work.

- Replaced `shell.openFilePath` fallback with internal `store.openFile` for
  external files clicked in the terminal.
- Added a global drag-and-drop handler (`useGlobalFileDrop`) that resolves
  external file paths and opens them natively in Orca.
- Used `window.api.fs.stat` to prevent opening directories directly in the editor,
  falling back to the OS system viewer.

Closes stablyai/orca#271

* fix: authorize external editor file opens
2026-04-03 18:56:37 -07:00
Jinwoo Hong 182ba156dd Add Orca runtime CLI and bundled install support (#273) 2026-04-03 16:50:28 -07:00
Jinjing 2d6fbec929 feat: auto updater background polling and persistent reminder UI (#266)
* feat: add update reminder component and background polling

* refactor: replace update reminder banner with subtle bottom-right toast

Swap the full-width top banner for a compact fixed-position toast in the
bottom-right corner, matching the existing Sonner toast styling. Also
extract pure functions (statusesEqual, isBenignCheckFailure) from
updater.ts into updater-fallback.ts to fix max-lines lint error.

* fix: mock checkForUpdates to return a promise so .catch() works in tests
2026-04-03 10:02:44 -07:00
Jinjing 1b91904af4 fix: defer mac auto-update install until ShipIt is ready (#265)
* fix: defer mac auto-update install until ShipIt is ready

* fix: import missing deferMacQuitUntilInstallerReady
2026-04-03 00:42:44 -07:00
Jinjing 126ec8ba0e fix: accurate rebase status detection and continuous status polling (#262) 2026-04-02 20:50:22 -07:00
Matheus NogueiraandClaude Opus 4.6 3c36da80a8 fix: add git-based fallback for file search on Linux (#257)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 21:05:18 -07:00
Matheus Nogueira 2ec433f6df feat: add copy remote URL to line number context menu (#253)
* feat: add copy remote URL to line number context menu

Add 'Copy Remote URL' option to the line number gutter right-click menu,
allowing users to quickly copy a shareable link to a file and line on
GitHub, GitLab, Bitbucket, or other hosted git providers.

- Install hosted-git-info to parse remote URLs and generate browse URLs
- Add getRemoteFileUrl() to resolve file URLs using default branch
- Wire up IPC handler, preload bridge, and renderer UI
- Use ExternalLink icon to distinguish from path copy options

* refactor: use @types/hosted-git-info instead of custom type declarations

Replace the custom hosted-git-info.d.ts with the @types package from
DefinitelyTyped. Use a targeted cast for browseFile() which the @types
package doesn't include yet (stuck on v3 API).

* refactor: revert to local type declarations for hosted-git-info

The @types/hosted-git-info package is stuck on the v3 API and lacks
browseFile(). A local .d.ts is cleaner than casting around stale types.
2026-04-01 20:02:05 -03:00
Jinjing e8e7d2ea8f feat: add PDF file preview support in diff viewer (#252)
* fix: address review findings

- Add sandbox="allow-same-origin" to PDF iframes to prevent script execution
- Wrap atob() in try/catch to gracefully handle corrupt base64 data
- Reset imageError state on content change to allow re-rendering
- Add click overlay on PDF iframe so popup open works correctly
- Compact test mock resets to stay within max-lines lint rule

* fix: consolidate binary preview tests to stay within max-lines limit
2026-04-01 15:12:50 -07:00
Jinjing 528e03e8a5 fix: add null-byte validation to resolveRegisteredWorktreePath (#251) 2026-04-01 14:04:33 -07:00
Jinjing 5b3f132519 feat: prevent branch name reuse across PR history (#250)
- Reject worktree creation if the computed branch name already exists locally, on a remote, or in PR history. This prevents a fresh worktree from inheriting a stale/merged PR immediately after creation.
- Wrap getPRForBranch in try/catch so GitHub API failures don't block worktree creation
- Fix remote branch matching to compare full branch name after refs/remotes/<remote>/ prefix, preventing false positives
- Wrap updateWorktreeMeta in try/catch so meta-update failures don't leave the dialog in an error state for an already-created worktree
2026-04-01 13:24:07 -07:00
Colin ChambachanandClaude Opus 4.6 86799b4793 feat: add file actions to file explorer (#235)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 09:36:52 -07:00
Jinjing 894f1bb6aa feat: show ShieldAlert icon for conflict-review tabs (#249)
* feat: show ShieldAlert icon for conflict-review tabs

Display a distinct orange ShieldAlert icon for tabs opened in
conflict-review mode, differentiating them from regular diff tabs.

* fix: clear stale Rebasing/Merging badge on non-active worktrees

The git status polling only runs for the active worktree. When a
non-active worktree finishes rebasing, its conflict operation was
never updated to 'unknown', leaving the badge stuck.

Add a lightweight git:conflictOperation IPC (fs-only, no git subprocess)
and poll it for non-active worktrees that have a non-unknown operation.
Once the operation clears, the worktree drops out of the poll list.
2026-03-31 21:47:59 -07:00
Jinjing 8d44edcda9 fix: harden updater version comparisons (#245) 2026-03-31 16:31:04 -07:00
Jinjing 12dc676209 feat: allow search for hidden files in quick-open (#239)
Enable --hidden flag for ripgrep so dotfiles users commonly edit
(.env, .github/*, .eslintrc, etc.) appear in quick-open results.
Use a blocklist of tool-generated hidden dirs instead of blocking
all dot-prefixed paths.

Key changes:
- Add --hidden to rg and filter via HIDDEN_DIR_BLOCKLIST
- Add second rg call with --no-ignore-vcs to surface .env* files
- Use fast string-slice prefix stripping with path.relative() fallback
- Guard against path traversal in the fallback path
- Handle Windows path separators via --path-separator and normalization
- Collect into shared Set to avoid duplicate array spread
2026-03-31 13:09:56 -07:00
Jinjing 4497d3adf5 feat: add isMainWorktree field to GitWorktreeInfo (#237)
Expose whether a worktree is the repo's main working tree (the first
entry from `git worktree list`). This lets consumers distinguish the
main worktree from linked worktrees created via `git worktree add`.
2026-03-31 09:24:13 -07:00