Repository navigation
Search projects and settings, richer PR panel, oversized-prompt warning, and more - #1798
Conversation
When a bare filename like `runner.js` has no match at the thread root, files:resolve now looks it up by basename against git's tracked file list (ls-files, so .gitignore is respected for free; cached per root for 30s). It resolves only when exactly one tracked/untracked-visible file has that basename; ambiguous names are left unlinked rather than guessing. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Adds a shared TreeCollapseAllButton next to the Tree/List toggle in both the Git pane (ChangesPanel) and the PR Code tab. Shown only in Tree mode; reads "anything expanded" from the current tree's directory paths (fileTree.ts's existing allDirPaths) against the caller's collapsedDirs set, so it reuses the Git pane's existing per-thread memory for free. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Add a text input at the top of ScopeMenu that filters projects by name/slug/path (case-insensitive substring/fuzzy), reusing browseMatchTier from the #1747 folder browser instead of a second matcher. The input gets focus on open; ArrowUp/Down move through results, Enter selects, Escape clears the query (or closes the menu when already empty). All projects stays pinned at the top regardless of the filter. Co-Authored-By: Claude Sonnet 5 <[email protected]>
mapFocusTurns (src/focusView.ts) now tracks each turn's assistant text
replies alongside its tool/thinking rows. When a settled turn has more
than one reply, all but the last fold into the existing Focus-mode row
("Show N earlier replies and tool activity"), in original document
order; a lone reply never folds on its own, and a live turn is never
folded (existing hiddenFocusActivity/turn.live gate in ThreadView).
No ThreadView changes needed: Summary mode already keeps every message
(assistant included) as a plain per-message entry rather than grouping
into ToolGroupRow, so the existing focusTurnByFirstId/hiddenFocusActivity
rendering generalizes for free.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
KanbanView rendered <ThreadCard> without projectPath, so PrHoverTarget's canHover gate (fetchDetail && projectPath && repo && number) was always false there, unlike Sidebar which already looks it up per card. Same lookup here (projects.find by thread.projectId), no new plumbing: App.tsx already passes KanbanView the project list. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Transcript attachment chips get a right-click menu (Open / Reveal in Finder, reusing showContextMenu and ChangesPanel's revealFileLabel) that calls the existing shell:openPath / shell:reveal IPCs with the attachment's absolute path. Those IPCs validate every path against the thread's worktree, which attachments are never inside (electron/attachments.js persists pasted files under <userDataPath>/attachments, dragged files keep their original absolute path elsewhere). resolveAllowedShellPath now also allows anything under <userDataPath>/attachments; paths outside both that dir and the worktree still get rejected. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Composer estimates the outgoing size (prompt + paste cards + context chips + attachment path lines, ~4 chars/token) and compares it against the thread model's context window minus what's already used. Over the remaining budget (or past ~90% of the window outright) swaps the send for an inline confirm: Send anyway, Cancel, and Compact first when native compaction is wired up. An unknown window never blocks. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Settings -> General -> Display gets an "Increase contrast" checkbox (uiPrefs, localStorage-backed like the other display toggles). On, it sets data-contrast="high" on the root; src/index.css overrides --text-muted/--text-dim, --border/--border-soft and the focus ring for both themes. Off (the default) leaves the OS prefers-contrast: more media query in charge on its own, no JS needed for that path. The yellow accent is untouched either way. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Files-pane rows are draggable: dragstart sets a custom application/x-solenta-path MIME (repo-relative path, trailing slash for a folder) plus a text/plain fallback. useFileDrop checks for that MIME before its OS-file logic and, when present, calls a new onMentionPath callback instead of onFiles. The composer wires that to the same applyMention text the @-mention popup inserts, landing an `@path ` token at the drop caret rather than attaching the file. Plain OS file drops (no custom MIME) are unaffected. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
postcss-modules-scope resolves `composes` by source order within a file; .scopeSearchInput composed .viewNameInput before that rule was declared, which parses fine in the test harness's identity CSS stub but fails `vite build` with "referenced class name not found". Move the rule below .viewNameInput. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Add a hand-maintained index (src/settingsIndex.ts) of settings, keyed to each setting's own existing data-*/id attribute rather than new markup. A hidden-render scan of every pane was the obvious markup-derived alternative, but several panes (Providers, Agents, Advanced's governance audit) fire real side effects the moment they mount - sign-in re-probes, local model-server detection, an audit-log fetch - which SettingsModal already avoids by mounting only the active pane (ChannelsSection, WebAccessSection and IntegrationsSection even gate their own effects on an `active` prop for this reason). Scanning markup would mount all of them on every Settings open. Typing in the existing "Find a setting" box now also lists individual matches as "Pane › Setting" above the pane list (which still narrows the same way it always did). Choosing one switches pane, then scrolls to and briefly flashes the setting's row, reusing the sidebar's #293 thread-reveal device (requestAnimationFrame, scrollIntoView, a CSS flash with no manual cleanup). Escape clears the query before the modal's own close handler sees it. Co-Authored-By: Claude Sonnet 5 <[email protected]>
New thread field browserAccess (default true, plumbed through the IPC
channel table, services, preload, dev fakes and fakeCoder). The agent-
facing preview MCP tool (electron/orchServer.js) refuses every action
with a clear error once a thread's browserAccess is off, and the tool
is not even registered for a session bound to such a thread. The user
can still drive the Browser pane by hand either way.
Toggle lives in two places: the Browser pane header ("Let the agent
use this browser") and the thread's overflow menu.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
…panel
The PR workspace panel can now update a behind branch (gh pr update-branch
/ PUT .../pulls/{n}/update-branch), edit your own issue or review comments
in place (PATCH .../issues|pulls/comments/{id}), and add/remove any of
GitHub's 8 reactions on a comment with optimistic UI and rollback. All
three go through gh api under the existing API-first/gh-fallback rule, via
a new generic REST passthrough in ghIssue (electron/github.js) since none
of them has a dedicated gh subcommand.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
author:<login|@me>, label:<name> (repeatable), is:draft|open|merged|closed, review:required|approved|changes_requested, and head:<branch> now parse out of the PR list query as removable chips; the remaining words still do the existing number/title/branch text search. listPrs gains author and labels (reviewDecision was already there) from the same gh --json call. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d2c13cc308
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| draggable | ||
| onDragStart={(e) => { |
There was a problem hiding this comment.
Allow native drag initiation on draggable file rows
When a user tries to drag a Files-pane row, the existing onMouseDown handler immediately below this addition unconditionally calls e.preventDefault(). Canceling the initiating mousedown prevents native HTML dragging, so onDragStart never supplies the mention payload and the new Files-to-composer flow cannot be used with the mouse. Adjust the focus-preservation handler so it does not cancel drag initiation; the synthetic drop tests do not exercise this interaction.
Useful? React with 👍 / 👎.
| if (warning) { | ||
| pendingSendRef.current = { action, failLabel }; | ||
| setSizeWarning(warning); |
There was a problem hiding this comment.
Refresh the send action after edits to an oversized message
If the oversized-message warning appears and the user then adds or removes attachments before clicking “Send anyway,” this stores and later executes the original render's action closure. The closures in submitSend, submitSteer, and submitBackground capture that render's attachments, whereas confirmation recomposes the prompt from the current draft. Consequently, removed attachments are still sent, newly added attachments are omitted, and the current attachment list is cleared after success. Resolve the action against current attachment state on confirmation, or invalidate the pending confirmation when the message changes.
Useful? React with 👍 / 👎.
| if (!result.ok) { | ||
| setPr(prevPr); |
There was a problem hiding this comment.
Isolate reaction rollback from other pending changes
When a user starts multiple reaction requests before the first finishes, a failed request restores the entire prevPr snapshot. Reaction requests never set pending, so the controls permit this: for example, a delayed failed thumbs-up request can erase a subsequently successful heart reaction from the displayed PR even though the heart remains on GitHub. The snapshot can also overwrite a successful comment edit made while the reaction was pending. Serialize conflicting mutations or roll back only the failed reaction against the current PR state.
Useful? React with 👍 / 👎.
Find things faster, do more PR work without leaving the app, and a few control and accessibility settings.
Finding things (#1793, #1794)
runner.js, become links when exactly one tracked file in the worktree has that name. Ambiguous names stay unlinked, and gitignored files are excluded.@pathmention. Dragging files from the OS works as before.Pull requests (#1795, #1796)
author:(including@me),label:,is:draft|open|merged|closed,review:andhead:, each shown as a removable chip.Control and accessibility (#1797)
Checks (run locally on the merged branch, electron suite in a CI-matching environment)
npm run typecheckand the preload sync check: cleannpm run test:renderer: 3664 pass, 0 failnpm run test:electron: 5508 pass, 0 failnpm run test:core: 38 pass.npm run test:memory: 246 pass.npx vite build: succeedsCloses #1793, closes #1794, closes #1795, closes #1796, closes #1797.
🤖 Generated with Claude Code