GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix(app): keep the @ menu open while it searches by kitlangton · Pull Request #59424 · anomalyco/opencode Conversation
|
| void Promise.resolve(input.searchContextFiles(query, controller.signal)).then( | ||
| (files) => !controller.signal.aborted && setFound({ query, files }), | ||
| (files) => !controller.signal.aborted && setFound("files", files), | ||
| () => undefined, |
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was a problem 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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.