Skip to content

Search projects and settings, richer PR panel, oversized-prompt warning, and more - #1798

Merged
currentbits merged 19 commits into
mainfrom
feat/find-review-control-polish
Oct 31, 2026
Merged

currentbits merged 19 commits into
mainfrom
feat/find-review-control-polish

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Find things faster, do more PR work without leaving the app, and a few control and accessibility settings.

Finding things (#1793, #1794)

  • The sidebar project picker has a search box. It's focused when the picker opens, uses the same fuzzy matching as the add-project folder search, works with ↑/↓/Enter, and Escape clears the search before closing.
  • "Find a setting" now finds individual settings across all panes, listed as "Pane › Setting". Picking one switches to that pane and flashes the row. The index is hand-maintained and points at each setting's existing test hook, because mounting every pane to scan them would trigger provider sign-in checks and audit-log fetches on every open.
  • Bare filenames in chat, like runner.js, become links when exactly one tracked file in the worktree has that name. Ambiguous names stay unlinked, and gitignored files are excluded.
  • Right-click an attachment in the transcript to open it or reveal it in Finder.
  • Drag a file or folder from the Files pane into the composer to insert an @path mention. Dragging files from the OS works as before.

Pull requests (#1795, #1796)

  • An "Update branch" button appears when a PR is behind its base.
  • Edit your own PR comments in place. Edits go through the same secret scan as other writes.
  • Comment reactions: counts, plus a picker with GitHub's 8 reactions. Changes show immediately and roll back if the request fails.
  • The PR list understands qualifiers: author: (including @me), label:, is:draft|open|merged|closed, review: and head:, each shown as a removable chip.
  • The diff folder tree has an Expand all / Collapse all button in the Changes panel and PR code tab. In the Changes panel it's remembered per thread.
  • In Summary view, finished turns with several in-between replies fold down to the final answer ("Show N earlier replies and tool activity"). The running turn is never folded.
  • Kanban cards now open PR hover cards. They weren't given a project path before.

Control and accessibility (#1797)

  • A warning before sending a prompt bigger than the context window has room for, with Send anyway, Cancel or Compact first. It never blocks when the window size is unknown.
  • A per-thread "Let the agent use this browser" switch, in the browser pane header and the thread menu. When it's off, the agent's preview tool is hidden and refuses with a clear message.
  • An "Increase contrast" setting (Settings → General → Display) that strengthens muted text, borders and focus rings in both themes, and follows the OS "Increase contrast" setting when you haven't chosen.

Checks (run locally on the merged branch, electron suite in a CI-matching environment)

  • npm run typecheck and the preload sync check: clean
  • npm run test:renderer: 3664 pass, 0 fail
  • npm run test:electron: 5508 pass, 0 fail
  • npm run test:core: 38 pass. npm run test:memory: 246 pass.
  • npx vite build: succeeds

Closes #1793, closes #1794, closes #1795, closes #1796, closes #1797.

🤖 Generated with Claude Code

Willem and others added 19 commits October 31, 2026 08:43
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]>
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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T08:24:03.501678Z d2c13cc PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +403 to +404
draggable
onDragStart={(e) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +1346 to +1348
if (warning) {
pendingSendRef.current = { action, failLabel };
setSizeWarning(warning);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +323 to +324
if (!result.ok) {
setPr(prevPr);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@currentbits
currentbits merged commit 7715507 into main Oct 31, 2026
6 checks passed
@currentbits
currentbits deleted the feat/find-review-control-polish branch October 31, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment