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 — fix(app): keep the @ menu open while it searches by kitlangton · Pull Request #59424 · anomalyco/opencode

Conversation

@kitlangton

@kitlangton kitlangton commented Oct 26, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Closing: beta is gone, and dev already has this change as .

Sorry, something went wrong.

Uh oh!

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

All reactions
@kitlangton
fix(app): keep the @ menu open while it searches
2b77ddf
@kitlangton
kitlangton requested review from Brendonovich and Hona as code owners October 26, 2026 22:26
@github-actions github-actions Bot added the contributor label Oct 26, 2026
@kitlangton kitlangton mentioned this pull request Oct 26, 2026
fix(app): keep the @ menu open while it searches #59425
Merged
opencode-agent[bot]
opencode-agent Bot reviewed Oct 26, 2026
View reviewed changes

@opencode-agent opencode-agent 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.

Verified with the new component test. On the base branch the file rows vanish while the next search is pending (the menu drops to just @review). With this change the previous rows stay until the new results replace them (5/5 runs). tsc -b passes. The rest of composer.spec.ts passes except "pins history search above the scrolling prompts", which you note also fails on the base branch.

Public API is unchanged: only the composer's internal state, a story and a test change.

One small edge case is noted inline: a failed file search now leaves the previous search's files in the menu.

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/composer/editor/interaction.ts
void Promise.resolve(input.searchContextFiles(query, controller.signal)).then(
(files) => !controller.signal.aborted && setFound({ query, files }),
(files) => !controller.signal.aborted && setFound("files", files),
() => undefined,

@opencode-agent opencode-agent Bot Oct 26, 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.

Now that results aren't tagged with their query, a rejected search leaves the previous search's files listed under the new query. Non-recent files skip the label filter, so they show unfiltered until the next keystroke. Before this change a failure meant no file rows. Clearing found.files here when !controller.signal.aborted would keep "No matching items" or an empty list on errors instead of showing stale files.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kitlangton
fix(app): space out the slow file search story state
e2ae007
opencode-agent[bot]
opencode-agent Bot reviewed Oct 26, 2026
View reviewed changes

@opencode-agent opencode-agent 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 new commit only adds a blank line in the story, so earlier verification still holds and nothing new needs flagging. The open point about a failed search leaving the previous query's files listed is not addressed yet. Public API is unchanged.

Sorry, something went wrong.

Uh oh!

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

All reactions
@kitlangton
fix(app): keep the @ menu's highlight and Enter on current results
b45bfbf
opencode-agent[bot]
opencode-agent Bot reviewed Oct 26, 2026
View reviewed changes

@opencode-agent opencode-agent 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 new commit works as described. Unit tests (test-browser/composer-file-search.test.ts, src/composer), the composer component tests and tsc -b pass; the one component failure is the same "pins history search…" test as before, which you note also fails on the base branch. Leftover files from the previous search can't be highlighted or picked any more, and Enter with no highlighted row does nothing rather than sending the prompt. The new rule that the highlight follows the first row until you pick one also applies to the slash menus, which looks consistent. The earlier point about a failed search leaving the previous search's files on screen is narrowed (they can't be picked now) but they still show, so that thread stays open. Public API is unchanged.

Sorry, something went wrong.

Uh oh!

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

All reactions
@thdxr
thdxr changed the base branch from beta to dev October 27, 2026 16:37
@kitlangton kitlangton closed this Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencode-agent opencode-agent[bot] opencode-agent[bot] left review comments
@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

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

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@kitlangton
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.