Skip to content

feat: searchable review branch selector#878

Open
loftiskg wants to merge 4 commits intocan1357:mainfrom
loftiskg:loftiskg/feat-review-branch-selector
Open

feat: searchable review branch selector#878
loftiskg wants to merge 4 commits intocan1357:mainfrom
loftiskg:loftiskg/feat-review-branch-selector

Conversation

@loftiskg
Copy link
Copy Markdown
Contributor

@loftiskg loftiskg commented Apr 29, 2026

Summary

Adds a searchable branch picker to /review when choosing a PR-style base branch, replacing the plain string selector for large branch lists. This matters because repositories with many remote branches currently make base-branch selection slow and noisy; the new UI keeps the same review flow while making branch narrowing interactive.

Sequencing

Standalone PR.

Reviewer notes

  • Watch the HookUIContext["custom"] signature change: it now documents and types the keybindings argument that custom components already receive, so the ReviewCommand callback matches the actual API.
  • Watch the selector behavior around keyboard handling and empty-result states; the main risk is accidentally swallowing navigation/submit/cancel input or selecting the wrong filtered branch.
  • Intentionally absent: no changes to diff generation, file filtering, or non-PR review modes. This PR only changes the base-branch selection UI for PR-style review.

Changes

  • Add SearchableStringSelectorComponent for inline fuzzy filtering over string option lists.
  • Switch /review PR-style base branch selection from ctx.ui.select(...) to ctx.ui.custom(...) with the new searchable selector.
  • Update HookUIContext["custom"] typing/docs to include the keybindings parameter passed into custom component factories.
  • Export the new component from the modes component barrel.
  • Add focused tests for selector filtering and /review integration.
  • Document the user-visible behavior in packages/coding-agent/CHANGELOG.md.

Test plan

  • bun test test/review-branch-selector.test.ts
CleanShot 2026-04-28 at 18 13 36

@loftiskg loftiskg marked this pull request as ready for review April 29, 2026 01:32
Copy link
Copy Markdown

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

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: ebefff680c

ℹ️ 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 thread packages/coding-agent/src/modes/components/searchable-string-selector.ts Outdated
@loftiskg loftiskg force-pushed the loftiskg/feat-review-branch-selector branch from 8c7c6d7 to 686a2ea Compare April 29, 2026 15:56
@cgrossde
Copy link
Copy Markdown
Contributor

Nice, looking forward to this one 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants