Commit Graph
268 Commits
Author SHA1 Message Date
Jinwoo Hong 717f319a89 feat(ssh): detect remote-host CLI agents in quick-launch menu (#1027) 2026-04-24 13:21:34 -07:00
Jinwoo Hong a73b4a6c1f Fix daemon shell-ready wrapper persistence (#1025) 2026-04-24 13:01:27 -07:00
Jingyue Wuandgithub-actions[bot] 9ca6314692 fix(terminal): terminal mic access (#1018)
* release: 1.3.8-rc.3 [rc-slot:2026-04-21-15]

* release: 1.3.8-rc.4 [rc-slot:2026-04-22-15]

* release: 1.3.8-rc.5 [rc-slot:2026-04-23-15]

* fix(mac): enable microphone permission popup for embedded terminal [Fixes 1009]

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-24 12:36:05 -07:00
Jinwoo Hong faed904aae feat(issues): make issues page writable with inline editing (#1017) 2026-04-24 10:41:21 -07:00
Neil 2ae9392b72 Rename add repo copy to add project (#1014) 2026-04-23 19:02:36 -07:00
Jinjing 8b0d8ea376 fix(fs): address symlink/delete/remote safety issues from review (#1012)
- Symlink delete/rename now preserve the link entry (new `preserveSymlink`
  option on resolveAuthorizedPath) instead of operating on the target.
- File-explorer delete force-saves dirty editors before trashing so undo
  restores the user's latest edits, not stale disk content.
- Thread `recursive` through preload → SSH provider so remote directory
  delete works end-to-end.
- Remote deletes now confirm (permanent `rm`, no Trash) and the toast
  reflects that no Trash/Recycle Bin is involved.
- Codex managed-home check canonicalizes the storage root before the
  prefix compare so macOS `/private/var` paths stop being rejected.
2026-04-23 16:58:17 -07:00
Alberto Díaz MuñozandJinwoo-H 87a2a371ff feat(terminal): add Windows default shell setting (PowerShell vs CMD) (#950)
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-04-23 16:23:12 -07:00
Ramzi b57505987c fix: dispose hidden PTY listeners before kill (#991) 2026-04-23 14:56:45 -07:00
Jinwoo Hong e1270486cd feat: add Linear integration (#1007) 2026-04-23 14:54:32 -07:00
Jinwoo Hong c2cf9b32a1 fix(ssh): register linked worktree paths with relay on connect (#994) 2026-04-23 11:11:53 -07:00
Neil 96c5ca2636 refactor(runtime): split runtime-rpc.ts into a schema-validated method registry (#980) 2026-04-23 00:27:20 -07:00
Neil fc64baf7d1 feat(terminal): expose FORCE_HYPERLINK as a user setting (default on) (#963)
* fix(terminal): drop FORCE_HYPERLINK=1 from PTY spawn env

FORCE_HYPERLINK=1 was set on every local PTY. It is read by
oh-my-zsh's supports_hyperlinks(), the Rust supports-hyperlinks
crate, GNU coreutils, and other tooling — so forcing it on
makes every subprocess invoked during shell init take extra
branches and emit OSC-8 escapes.

Reproduced locally with a heavy zshrc (oh-my-zsh + p10k + nvm +
pyenv): time-to-prompt jumps from ~600 ms without the variable
to ~2000 ms with it (3.2×) on a clean sandbox. Stacked with the
user-reported configuration (conda init, gcloud completions,
compaudit over Homebrew paths, corporate network calls) that
multiplier applied to a long serial chain of forks can stretch
into "terminal is effectively never ready."

xterm still renders OSC-8 hyperlinks when tools emit them on
their own detection, so link support in Orca is preserved. VS
Code does not set this variable either.

* feat(terminal): make FORCE_HYPERLINK opt-out via settings, default on

The previous commit on this branch removed FORCE_HYPERLINK=1 from PTY
spawn env entirely. Revise: keep the historical default (on) so
existing users don't silently lose OSC-8 hyperlink emission from
tooling that checks this flag, but expose a toggle in Settings →
Terminal → Advanced so users with heavy rc files (oh-my-zsh +
powerlevel10k + nvm + pyenv + conda, etc.) can turn it off and reclaim
the shell-startup time that the extra subprocess branching and escape
emission was costing them.

- Add `terminalForceHyperlink: boolean` to GlobalSettings (default true)
- LocalPtyProvider gains an `isForceHyperlinkEnabled` hook; IPC wires
  it from the live settings snapshot
- New SearchableSetting row in TerminalPane with zshrc-adjacent search
  keywords so users troubleshooting slow startup find it
- Unit tests cover both default-on and opt-out paths
2026-04-22 18:20:57 -07:00
4f7b488d22 feat(cli): add terminal create, split, rename, focus, close, tui-idle wait (#734)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-04-22 17:51:32 -07:00
Jinjing 5eb50c47ba fix(updater): throttle wake/focus update checks to daily cadence (#955)
* fix(updater): throttle wake/focus update checks to daily cadence

* fix: close 24h gate synchronously in wake/focus check

* refactor: dedupe background checks via in-memory launch flag
2026-04-22 16:30:17 -07:00
Neil 2819cdc081 feat(terminal): opt-in OSC 52 clipboard writes from TUIs (#952)
xterm.js ships with no OSC 52 handler, so tmux, Neovim, fzf, and ripgrep
running inside Orca — locally or over SSH — silently fail to copy to the
system clipboard. Add an opt-in handler gated behind a new setting
`terminalAllowOsc52Clipboard` (default off because untrusted output
piped into the terminal can silently overwrite the clipboard).

Implementation mirrors the DEC 2031 wiring from PR #896: extract parsing
into a pure helper (parseOsc52) with a full unit-test suite, register
the handler in onPaneCreated and dispose it symmetrically in
onPaneClosed, and read the gate from settingsRef at fire time so the
toggle takes effect without recreating panes.

Clipboard *queries* (Pd = "?") are intentionally dropped — answering
them would leak the user's clipboard to any process writing to the
PTY — along with malformed payloads, oversized payloads (>128KB),
and payloads using unknown selection letters.
2026-04-22 14:45:26 -07:00
Neil d56fcff469 feat(terminal): set TERM_PROGRAM_VERSION on PTY env (#951)
TUIs feature-gate on TERM_PROGRAM_VERSION (Neovim's terminal
autodetection, bat/delta styling hints, etc). We already set
TERM_PROGRAM=Orca but left the version unset, so tools can't distinguish
Orca builds or tell when version-gated features are safe to enable.

Seed process.env.ORCA_APP_VERSION from app.getVersion() at main startup
and read it from both PTY spawn sites (main-side local-pty-provider and
the daemon-side pty-subprocess, which inherits env via fork). Keeps
providers/local-pty-provider.ts free of electron imports.
2026-04-22 14:42:19 -07:00
Brennan Benson 89b85b828b feat(nav): workspace back/forward navigation (#945) 2026-04-22 13:40:38 -07:00
Jinwoo Hong 7c717e2903 fix(ssh): register relay roots on connect and retry file explorer load (#946) 2026-04-22 11:42:22 -07:00
Jinwoo Hong 6feb93ab78 fix(terminal): guard PTY native calls against dead-process Napi::Error crash (#916) 2026-04-22 11:16:43 -07:00
Jinjing 0bbf2d7a8f feat: cross-repo issues view in new workspace page (#942)
* feat: cross-repo issues view with multi-repo selection

- Add multi-repo selection via RepoMultiCombobox with persisted defaultRepoSelection setting (null = sticky-all)
- Stamp repoId on GitHubWorkItem at the renderer fetch boundary; merge items from all selected repos with per-repo failure tracking
- Extract task-query helpers (tokenize/strip/parseTaskQuery) to src/shared and add unit tests
- Refactor NewWorkspacePage row to <div role=button> to allow nested interactive elements without invalid-HTML hydration errors
- fix(repo-combobox): toggle all-repos selection on repeat click

* fix(tasks): route Use CTA to item's own repo in cross-repo view

handleUseWorkItem previously referenced a removed 'repoId' state; use item.repoId so launching from a merged cross-repo list targets the correct repo.

* test(e2e): add tasks page smoke test
2026-04-22 10:58:18 -07:00
Neil 7ae95cd3d0 fix(terminal): layout-aware default for macOS Option-as-Alt (#903) (#909) 2026-04-22 00:32:11 -07:00
Neil ed32ca2c21 fix(worktrees): fail loudly when no default base ref is resolvable (#922) 2026-04-21 17:40:27 -07:00
Neil a086eae06b fix(settings): trigger RC channel and hidden-experimental via plain Shift (#919) 2026-04-21 16:41:46 -07:00
Neil 35f5fe72e6 feat(editor): open HTML preview to the side (#908) 2026-04-21 15:52:28 -07:00
Jinjing 700efc8f15 fix: allow retry download from error state when update version is cached (#906) 2026-04-21 14:31:18 -07:00
Jinjing 89954334a3 fix: route Cmd/Ctrl+N through main-process shortcut allowlist (#895)
Ensures the new-workspace composer opens even when focus is inside a
contentEditable surface (markdown rich editor) or a browser-guest
webContents, both of which bypass the renderer's window-level keydown.
2026-04-21 10:32:31 -07:00
Neil d66d86645d feat(settings): Cmd+Shift affordances for RC channel and hidden experimental (#887)
Cmd+Shift-click "Check for Updates" (menu or Settings > General) opts
into the RC release channel by switching the feed to the github provider
with allowPrerelease=true for the rest of the process.

Cmd+Shift-click the Experimental sidebar entry reveals a "Hidden
experimental" group with an orange-tinted header and a disabled
placeholder toggle — the slot for future unfinished/staff-only options.

Also reword the Experimental description to something less alarmist:
"New features that are still taking shape. Give them a try."
2026-04-21 00:07:02 -07:00
Jinwoo Hong 55e935ff32 fix(browser): improve Cloudflare Turnstile compatibility (#885) 2026-04-20 22:36:30 -07:00
Brennan Benson 933d59f165 diff-comments: copy-only flow in Source Control (#884) 2026-04-20 21:50:31 -07:00
Kelvin Amoaba bf21a028b9 feat: add terminal line height setting (#712)
Add a configurable line height multiplier (1-3) to terminal appearance
settings under Typography, persisted and applied to all terminal panes.
2026-04-20 21:23:43 -07:00
Jinwoo Hong 7a9bc4ef6d feat: computer use via agent-browser CDP bridge (#856) 2026-04-20 20:56:14 -07:00
Jinwoo Hong 22ae50e0ae fix(terminal): auto-respawn PTY daemon when it dies mid-session (#881) 2026-04-20 19:49:27 -07:00
Jinjing 3a58a829f9 feat(editor): export active markdown to PDF (#882)
Adds File > Export as PDF... menu item (Cmd+Shift+E) and an overflow
menu entry that renders the active markdown preview through a sandboxed
Electron BrowserWindow and writes it to disk via printToPDF.

- New main-side IPC handler (src/main/ipc/export.ts) and html-to-pdf
  helper that loads a CSP-locked HTML document in a sandboxed, context-
  isolated window with javascript enabled only for image-ready polling.
- Renderer helpers clone the rendered markdown subtree, inline all
  computed styles through a curated allowlist, and ship the resulting
  HTML fragment over IPC.
- Ref-counted listener registration so split-pane layouts install
  exactly one IPC subscription and survive panel churn.
2026-04-20 19:41:12 -07:00
Jinjing 781bc9fd62 fix(quick-open): exclude sibling worktree files from Cmd+P results (#867)
When the active worktree is the repo root, linked worktrees are nested
subdirectories. rg --files listed files from every worktree instead of
just the active one. Pass sibling worktree paths as --glob exclusions.

Also wrap scroll-to-top in rAF so it runs after cmdk's scroll-into-view.
2026-04-20 12:27:08 -07:00
Neil c6f6300bcf feat(terminal): add "Copy on Select" clipboard setting (default off) (#862)
Adds an opt-in terminal setting that automatically copies the current
selection to the system clipboard as the user selects, mirroring X11 /
gnome-terminal behavior. xterm.js has no native option for this, so the
renderer hooks `onSelectionChange` per pane and writes via the existing
clipboard IPC. Defaults to false so existing users keep the explicit
Cmd/Ctrl+Shift+C copy flow.

Closes #860
2026-04-20 00:28:29 -07:00
Jinwoo Hong 8dcb234d22 feat(browser): multi-profile session management with per-tab switching (#823) 2026-04-19 19:48:26 -07:00
Jinwoo Hong 096c1818f3 fix: improve assertManagedHomePath error for cross-environment accounts (#848) 2026-04-19 17:32:04 -07:00
Jinwoo Hong c294a4d49e fix(codex-accounts): stop overwriting auth.json when no managed account is active (#847) 2026-04-19 14:56:44 -07:00
Neil 9d56108e89 fix(agents): detect all user-installed CLIs by hydrating PATH from login shell (#843)
* fix(agents): detect opencode/pi CLIs installed under ~/.opencode/bin and ~/.vite-plus/bin

Packaged Electron inherits a minimal PATH without shell rc files, so
agent install-script fallback dirs stay invisible to `which` probes —
the Agents settings page then shows OpenCode/Pi as "Not installed"
even when the user can run them from Terminal.

Add ~/bin, ~/.opencode/bin, and ~/.vite-plus/bin to the packaged PATH
augmentation so preflight detection matches shell behavior.

Fixes #829

* feat(agents): hydrate PATH from user's login shell + Agents Refresh button

Packaged Electron inherits a minimal launchd PATH that misses whatever
the user's shell rc files append — ~/.opencode/bin, ~/.cargo/bin, nvm
shims, pyenv, custom tool dirs. The preceding commit hardcoded two known
install locations; this replaces that whack-a-mole pattern with a
generic approach.

On packaged startup (non-Windows), spawn `${SHELL} -ilc 'echo $PATH'`
with a 5s timeout, parse the delimited PATH, and prepend any new
segments to process.env.PATH. The result is cached for the app session
so we pay the shell-init cost at most once.

Surface a Refresh button in Settings > Agents that forces a re-probe
and re-detects installed agents — handy right after installing a new
CLI, no restart needed.

Live-verified that a `zsh -ilc` spawn with a minimal launchd-style env
still resolves the user's full PATH (32+ segments including the
rc-appended dirs).

* refactor(hydrate-shell-path): simplify dedup with Set + Set.difference

Set preserves insertion order, so PATH first-match-wins semantics are
preserved without manual tracking. Set.prototype.difference (Node 22+)
expresses the new-segments calculation in mergePathSegments as the
set-difference operation it always was.
2026-04-19 14:36:30 -07:00
Jinjing 818a355098 feat(tasks): add New GitHub issue dialog to tasks page (#841)
Adds a + button on the tasks page that opens a dialog to create a new
GitHub issue in the selected repository. Wires createIssue through the
main/preload IPC using gh api, and refreshes the tasks list after
creation so the new issue shows up immediately.

Also clears a stray Radix pointer-events lock on GitHubItemDrawer mount
so Close/open-in-GitHub buttons remain clickable after the New Issue
dialog closes.
2026-04-19 12:52:24 -07:00
Brennan Benson 222d70e063 feat: add idempotent E2E test suite with headless Electron support (#671) 2026-04-19 12:09:32 -07:00
Honglei LiuandClaude Opus 4.7 f8a1a57825 fix(sidebar): sort Recent mode by lastActivityAt, not sortOrder (#825)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 10:36:27 -07:00
Neil 233a4827ce fix(linux): skip Vulkan/SkiaGraphite/WebGPU on Linux Wayland sessions (#822) 2026-04-18 23:41:08 -07:00
Neil a1c6889d26 fix(worktrees): collapse internal '..' in sanitized branch names (#820) 2026-04-18 23:08:20 -07:00
Qi NengandJinwoo-H 613c5abf1c fix(rate-limits): route Claude OAuth usage fetch through HTTP proxy (#803)
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-04-18 22:54:37 -07:00
Jinwoo Hong 58b43e0d17 fix(github): Needs My Review tab returns no results (#815) 2026-04-18 21:12:45 -07:00
Neil c409904453 fix(feedback): include app version + OS metadata in submissions (#812) 2026-04-18 20:20:37 -07:00
Jinwoo Hong 5ec70ed539 fix: gracefully handle EPERM during PTY overlay creation on Windows (#752) 2026-04-18 16:37:46 -07:00
Jinjing 2688c0fee3 feat(editor): preserve Cmd+B for bold in markdown editor (#802)
* feat(editor): preserve Cmd+B for bold in markdown editor

Carve out bare Cmd/Ctrl+B from the main-process before-input-event
interceptor when the TipTap markdown editor is focused, so its bold
keymap can run instead of toggling the left sidebar. Focus state is
mirrored from renderer to main via a one-way IPC send, with default-deny
resets on crash/navigate/destroy and sender validation so only the main
window's webContents can mutate the flag.

* fix: add oxlint max-lines disable to createMainWindow.ts
2026-04-18 10:08:25 -07:00
Jinjing c2ed4fbd3b fix(terminal-host): avoid reattach to terminating session, force-kill on dispose (#801)
Reattaching to a session where kill() has been called but the subprocess hasn't
exited yet races the in-flight exit. Treat terminating sessions the same as
fully-exited ones in createOrAttach, and have Session.dispose() force-kill a
stuck subprocess and notify attached clients so we don't leak the process when
the killTimer is cleared mid-flight.
2026-04-18 09:24:27 -07:00