Skip to content

Conversation

@kitlangton
Copy link
Contributor

@kitlangton kitlangton commented Jan 11, 2026

bug-2-small.mp4

Fixes #7814

Use <Index> instead of <For> in the autocomplete component. <For> tracks items by reference, so when options() recomputes with new object refs, closures capture stale values. <Index> tracks by position and passes items as getter functions, ensuring fresh data on each render.

Use Index instead of For in the autocomplete component. For tracks
items by reference, so when options() recomputes with new object refs,
closures capture stale values. Index tracks by position and passes
items as getter functions, ensuring fresh data on each render.

Fixes anomalyco#7814
@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@kitlangton kitlangton marked this pull request as ready for review January 11, 2026 16:06
@thdxr thdxr merged commit 43c2da2 into anomalyco:dev Jan 11, 2026
5 checks passed
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
zerone0x pushed a commit to zerone0x/opencode that referenced this pull request Jan 12, 2026
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.

Slash command autocomplete selection jumps randomly when navigating

2 participants