GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(app): add previous and next match buttons to conversation search by neriousy · Pull Request #64865 · anomalyco/opencode

Conversation

@neriousy

@neriousy neriousy commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue for this PR

Closes #64825

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The conversation search bar (Cmd/Ctrl+F) only let you step through matches with the keyboard (Enter / Shift+Enter, ↑ / ↓), so it looked like only the first result was reachable. This adds up and down buttons next to the match count, same as the file search bar already has.

The buttons call the existing result.move(-1 | 1), are disabled when there are no matches, and keep focus in the input. Their labels reuse the already translated ui.fileSearch.previousMatch / ui.fileSearch.nextMatch strings, so there are no new i18n keys.

No feature flag. It's two buttons on an existing control that call an action the keyboard already triggers.

How did you verify your code works?

  • bun typecheck in packages/app
  • Opened the session-transcript-find story in Chrome via Playwright: clicking next twice goes 1/4 → 3/4, previous goes back to 2/4, input keeps focus. With a query that has no matches (0/0) both buttons are disabled.

Screenshots / recordings

Taken from the session-transcript-find story, dark theme.

Before After
Matches (2/4) before after
No matches (0/0), arrows disabled before after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #4714

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
neriousy added 2 commits November 19, 2026 13:27
@neriousy
feat(app): add previous and next match buttons to conversation search
5e670c9
@neriousy
fix(app): widen conversation search bar to fit match buttons
778a460
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This works as described. I opened the session-transcript-find story in Chromium for both the base and this PR. Starting at 1/4, clicking next twice gives 3/4 and previous then gives 2/4. The input keeps focus, and at 0/0 both buttons are disabled. tsc -b in packages/app and search-machine.test.ts both pass.

Public API: unchanged. The change only adds UI inside packages/app, with no new i18n keys.

One thing worth fixing: the bar is still a fixed 200px, so the two buttons take space from the query field. In the story it shrinks from about 112px to about 56px (see inline comment).

Related: #4714

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/app/src/session/timeline/search-bar.tsx
{c.result.activeDisplay()}/{c.result.count()}
</span>
</Show>
<For each={[-1, 1]}>

@opencodejr opencodejr Bot Nov 19, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The bar container is still fixed at w-[200px], so these two 20px buttons come out of the text field. In the story the input goes from about 112px on the base to about 56px here. That's fine for trail with 2/4, but a longer query or a count like 12/134 will leave very little of the query visible. Could you widen the bar to make up for the buttons (it is already capped by max-w-[50vw])?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The earlier point about the narrow query field is addressed. The bar is now 240px wide, and in the story the input is about 96px wide (about 112px on the base), with the buttons still working. Public API: unchanged. Nothing further from me.

Before

After

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@neriousy
neriousy merged commit 88c90d0 into dev Nov 19, 2026
14 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@neriousy
neriousy deleted the search-match-buttons branch November 19, 2026 12:38
@thdxr thdxr mentioned this pull request Nov 20, 2026
port timeline updates anomalyco/opencode-rune#231
Open
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
AbizardShafwan pushed a commit to AbizardShafwan/opencode that referenced this pull request Nov 26, 2026
Abizard Sulaiman
feat(app): add previous and next match buttons to conversation search
87c4859
Port of upstream 88c90d0 (anomalyco#64865).
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Issue with the search function

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@neriousy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.