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): reuse mention suggestions while typing by thdxr · Pull Request #63572 · anomalyco/opencode

Conversation

@thdxr

@thdxr thdxr commented Nov 12, 2026

Copy link
Copy Markdown
Member

Issue for this PR

reported directly by dax.

Type of change

  • Bug fix

What does this PR do?

the @ list reran the session match when the highlight moved or the file search changed phase. matching also returned fresh objects, so solid rebuilt rows for the same suggestions. track just the open state and file rows, keep each row by id, and update the highlight by id.

How did you verify your code works?

profiled the web composer in chromium at 4× cpu throttle. the mock searched 11,404 tracked paths (up to 100 results) and served 2,000 session titles. after file results for @p appeared, typed the rest of @packages/app/src/comp one key at a time with a 40 ms pause. four runs, 80 keys per revision:

main-thread time per key (cdp task duration) before after
median 38.6 ms 15.7 ms
p95 55.4 ms 30.8 ms

cpu samples under the composer input handler averaged 240 → 134 ms per run. chromium reported zero long tasks in both sets.

app typecheck passed. 52 focused unit tests passed, the 5 browser tests passed across 10 repeats, and all 3 mention e2es passed. the new regression failed on dev: moving the highlight ran the same search again.

Screenshots / recordings

performance-only fix.

Checklist

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

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sorry, something went wrong.

Uh oh!

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

All reactions
thdxr added 2 commits November 12, 2026 11:42
@thdxr
fix(app): reuse mention suggestions while typing
8910be8
@thdxr
fix(app): address mention search lint checks
dc7b824
opencodejr[bot]
opencodejr Bot reviewed Nov 12, 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.

Looks good. I ran the new regression test on the base, where moving the highlight runs the session search again, and with this change, where it passes. The rest of the composer-file-search tests, the full browser suite (360) and the composer unit tests (258) pass, and tsc -b passes for packages/app. Tracking only whether the list is open and which file rows exist, plus keying rows by id, fits how useFilteredList reloads. @solid-primitives/keyed is already used in the app. I didn't re-measure the speed-up.

Public API unchanged.

Sorry, something went wrong.

Uh oh!

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

All reactions
@thdxr
thdxr merged commit 71b27c4 into dev Nov 12, 2026
10 checks passed

Uh oh!

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

@thdxr
thdxr deleted the mention-lag branch November 12, 2026 16:46
@kobzevvv kobzevvv mentioned this pull request Nov 13, 2026
chore(upstream): порт v2.3.0 — 101 в порт, 75 на решение gpt-mem/opencode-mem#222
Open
@neriousy neriousy mentioned this pull request Nov 23, 2026
desktop: @ session list lags on every keystroke and cannot be turned off #62304
Closed
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.

Uh oh!

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

1 participant

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