* 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.
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.
* fix(browser): debounce find-in-page query to stop per-keystroke flash
Why: findInPage re-highlights the active match on every call, which flashed
as the user typed. Debounce (200ms) so the highlight only re-runs once typing
settles. Enter still uses the live query for immediate next/previous nav.
* fix(browser): auto-select top suggestion, preserve address-bar typing
- Top history suggestion is auto-selected so Enter navigates to the best
match without an extra ArrowDown keypress.
- URL syncs from the store and webview navigation events no longer clobber
the address bar while the user is actively typing in it. Previously,
opening a fresh tab and starting to type could be overridden when the
configured default URL (e.g. google.com) finished resolving.
Why: macOS atomic writes (Claude Code Edit, vim :w, VSCode save) deliver
a delete followed by a same-path create in back-to-back fs:changed
payloads. The tab flashed struck-through for one render tick before the
follow-up create cleared it.
Debounces only the 'deleted' signal by 75ms, keyed by absolute path. A
same-path create in the next payload cancels the pending tombstone
before it paints. Naked deletes still resolve to 'deleted' after the
window; single-payload rename correlation is unchanged.
Extends the prior fix — bold, italic, strike, and link were still
rendering with an active highlight. Per the same rationale, toolbar
buttons are action triggers, not style indicators, so none of them
should surface active state.
Block buttons (paragraph, headings, lists, blockquote) are action
triggers that transform the current block — they aren't status
indicators. Highlighting them as "active" was misleading. Only mark
toggles (bold, italic, strike, link), which represent styles applied
to a selection, continue to expose active state.
* fix(editor): contain TipTap render crashes and dedupe split-pane reloads
Addresses issue #826 (renderer blackouts under split-pane external reload):
- Wrap RichMarkdownEditor in an error boundary to contain ProseMirror
transaction crashes to the affected pane.
- Swallow setContent/normalizeSoftBreaks exceptions so they can't escape
to the React root.
- Debounce ORCA_EDITOR_EXTERNAL_FILE_CHANGE_EVENT dispatch per
(worktreeId, relativePath) to coalesce atomic-write bursts.
- Deduplicate concurrent fs/git IPC reads across split panes so a single
external change doesn't fan out into N identical round-trips.
* test(cli): stabilize stale bootstrap pid check
* fix(editor): improve rich markdown table readability
Show borders and subtle striping for rich markdown tables so cell boundaries stay legible in the formatted editor.
* fix(editor): keep rich table headers sentence case
Keep the new table styling readable without forcing header text to uppercase.
* style(rich-md): fix table striping against Tiptap tbody-only DOM
Switch zebra striping to nth-child(odd) so the shaded row doesn't sit
directly under the header, and drop the compounding th font-size.
---------
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
The worktree search bar already provides spacing above the list, so the
first group header doesn't need its own mt-2 offset. Secondary headers
still get the margin to separate groups.
Cmd+Shift+M creates an empty untitled-{x}.md on disk eagerly so the
editor has a real path to bind to. If the user closes the tab without
typing anything, the file was left behind as clutter. Now closeFile()
and closeAllFiles() delete the on-disk file when the tab is untitled,
not dirty, and has no editor draft. These throwaway files are also
excluded from the recently-closed stack since reopening a deleted path
would fail.
* feat(sidebar): move group-by control into view options menu
Consolidates the standalone Group by segmented control into the view
options dropdown alongside Sort by and Show properties, and opens the
menu to the right of the trigger so it no longer covers the worktree
list.
* feat(sidebar): combine active + repo filter into single filter control
Replaces the separate Active toggle and repo dropdown trigger in the
search bar with a single ListFilter icon button that opens a unified
dropdown covering Status (Active only) and Repositories. The button
expands with an inline summary and accent background when any filter
is applied, making the active state obvious, and exposes a Clear
filters action.
* fix: prompt to save or discard when quitting with dirty files
* fix: guard against race conditions and improve error handling in quit-with-dirty-files flow
- Ignore duplicate quit signals when a close sequence is already in-flight
- Wrap requestEditorSaveQuiesce in try/catch so discard path can't leave user stuck
- Reduce save-wait timeout from 120s to 10s for faster failure feedback
---------
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
- fix(new-workspace): clean up backgrounds, contrast, and loading UX
Address feedback on the NewWorkspacePage: drop the LightRays backdrop, repo
badge-color radial gradient, and custom dark bg override so the page uses
standard bg-background. Switch card surfaces from translucent bg-background/X
to bg-muted/50 so cards read as distinct from the page in both themes. Give
the unselected source toggles a visible bg+border. Size the task list card to
its content (capped at viewport) instead of always stretching. Add a 3-row
shimmer skeleton while the initial fetch is in flight (only when nothing is
cached).
* fix: correct IME candidate window position when typing Japanese in terminal
Two fixes for the IME candidate window appearing offset from the cursor:
1. CSS: Add \left: 0\ to \.xterm .xterm-helpers\ in terminal.css.
xterm.css sets position:absolute;top:0 but omits left, leaving
left:auto. In Electron's Blink this can resolve to a non-zero value
and shift the IME window away from the cursor.
2. JS: Add a capture-phase compositionstart listener in openTerminal().
xterm.js repositions the textarea on compositionupdate but not on
compositionstart. The OS reads the textarea's screen rect at
compositionstart to place the IME candidate window, so the window
can appear at a stale position. The listener force-syncs the textarea
to the exact cursor pixel position before the OS opens the window.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: remove compositionstart listener on pane disposal to prevent memory leak
Store the handler reference in ManagedPaneInternal.compositionHandler so
disposePane() can call removeEventListener with the exact same function
reference, preventing the closure from holding the terminal alive after
the pane is closed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* refactor(terminal): derive IME cell dimensions from public xterm API
Computes cell width/height from the .xterm-screen element's bounding
rect and uses terminal.textarea (public) instead of reaching into
terminal._core. Avoids the `any`-cast access to xterm internals so
future xterm.js upgrades don't silently regress the IME position fix.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
* fix: persist sidebar collapsed groups across navigation and restart
The sidebar's collapsed-group state was stored as local React state in
WorktreeList, so the Sidebar unmount/remount triggered by navigating into
Settings discarded it — returning to the main view re-expanded every
previously collapsed group. Lift the state into the UI slice alongside
groupBy/sortBy/filterRepoIds and persist it via the existing ui:set IPC
so collapse state also survives app restarts.
* fix: clear collapsed groups when switching groupBy mode
Prevents stale keys from accumulating across mode switches and avoids
cross-mode key collisions that could leave groups unexpectedly collapsed.
---------
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
* fix: guard Enter submit against IME composition in workflow creation popup
Pressing Enter during Japanese IME conversion was triggering workflow
submission instead of only confirming the candidate. Extract
shouldSuppressEnterSubmit() and check event.isComposing before submit
in NewWorkspaceComposerModal, NewWorkspacePage, and the task search
handler. Fixes#742.
* fix: use nativeEvent.isComposing for React SyntheticEvent in task search handler
* refactor: move new-workspace-enter-guard to src/renderer/src/lib
---------
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
Rich markdown links open on Cmd/Ctrl-click (plain click must place the
caret inside contenteditable). Toggle a root class on keydown/keyup of
the platform modifier so the pointer cursor appears only while the
modifier is held, matching VS Code's link affordance.
- style: update markdown preview cursor styles for link interactions
- feat(editor): open in-worktree .md links as preview edit tabs
Cmd/Ctrl-click on a markdown link now routes through a shared classifier
and dispatcher. Links resolving to .md files inside the active worktree
open as preview tabs; external URLs and non-markdown files delegate to
the OS handler. Cmd/Ctrl+Shift-click is preserved as the OS escape hatch
with existence precheck and a toast for dangling targets.
Supports #L10 / #L10C5 and trailing :line:col anchors by flipping the
target to source view before reveal. Preview replacement is scoped to
the active tab group, and evicted previews are pushed onto the
recently-closed stack so Cmd/Ctrl+Shift+T restores them.