fix(opencode): handle CJK prefixes in TUI @ autocomplete#27651
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR worth noting: PR #27649: Fix multiline mentions
However, PR #27649 focuses on multiline mentions while PR #27651 specifically addresses CJK prefix handling in @ autocomplete, so they appear to be addressing different aspects of the mention feature rather than being duplicates. All other search results returned only the current PR #27651 itself, indicating no other significant duplicates exist for this specific CJK prefix autocomplete fix. |
Issue for this PR
Closes #26808
Type of change
What does this PR do?
@autocomplete when the prompt contains CJK text before the triggerHow did you verify your code works?
你好 @rea, which showedNo matching itemsabc @rea你好 @rea你好@rea你好 abc @packbun test test/cli/run/prompt.shared.test.tsbun test test/cli/run test/cli/cmd/tui/prompt-traits.test.ts test/cli/cmd/tui/prompt-part.test.ts test/cli/tui/prompt-submit-race.test.tsbun typecheckScreenshots / recordings
before:

after fixed:
Checklist