Bad filename fuzzy search #1426

Closed
opened 2026-02-16 17:30:55 -05:00 by yindo · 4 comments
Owner

Originally created by @NoahBPeterson on GitHub (Aug 21, 2025).

Originally assigned to: @adamdotdevin on GitHub.

My directory looks like this:

~/De/ucode-lsp ls
__fw4.uc
__real.uc
__real2.uc
__rof.uc
__runtime.uc
__u1905.uc
__zoneinfo.uc
2025-08-21-this-session-is-being-continued-from-a-previous-co.txt
AST_PARSER_ROADMAP.md
BUILD.md
BUILTIN_FUNCTIONS_VALIDATION.md
bun.lock
dist/
FEATURE_WORKFLOW.md
fuzz-tests/
icons/
interpreter-test.uc
language-configuration.json
LICENSE
linguist-proposal/
node_modules/
out/
package.json
payload_processor_ucode
README.md
scripts/
src/
syntaxes/
test-arithmetic-operators.uc
test-enhanced-arithmetic.uc
test-enhanced-union-types.uc
test-fs-import-issue.uc
test-logical-operators-comprehensive.uc
test-logical-operators-fixed.uc
test-union-types-scenarios.uc
test-union-types-validation.uc
test-validation-final.uc
test.uc
test1_import.uc
test1.uc
tests/
tsconfig.json
u1905/
ucode/
ucode_gotchas.md
webpack.config.js

However, when I try to add the 2025-08-21-this-session-is-being-continued-from-a-previous-co.txt file to the context, this is what shows up:

Image

I have to add the '-' character for it to finally autocomplete the filename:

Image
Originally created by @NoahBPeterson on GitHub (Aug 21, 2025). Originally assigned to: @adamdotdevin on GitHub. My directory looks like this: ``` ~/De/ucode-lsp ls __fw4.uc __real.uc __real2.uc __rof.uc __runtime.uc __u1905.uc __zoneinfo.uc 2025-08-21-this-session-is-being-continued-from-a-previous-co.txt AST_PARSER_ROADMAP.md BUILD.md BUILTIN_FUNCTIONS_VALIDATION.md bun.lock dist/ FEATURE_WORKFLOW.md fuzz-tests/ icons/ interpreter-test.uc language-configuration.json LICENSE linguist-proposal/ node_modules/ out/ package.json payload_processor_ucode README.md scripts/ src/ syntaxes/ test-arithmetic-operators.uc test-enhanced-arithmetic.uc test-enhanced-union-types.uc test-fs-import-issue.uc test-logical-operators-comprehensive.uc test-logical-operators-fixed.uc test-union-types-scenarios.uc test-union-types-validation.uc test-validation-final.uc test.uc test1_import.uc test1.uc tests/ tsconfig.json u1905/ ucode/ ucode_gotchas.md webpack.config.js ``` However, when I try to add the `2025-08-21-this-session-is-being-continued-from-a-previous-co.txt` file to the context, this is what shows up: <img width="658" height="207" alt="Image" src="https://github.com/user-attachments/assets/5d535ba6-2e25-4f22-929f-217cdb309f3f" /> I have to add the '-' character for it to finally autocomplete the filename: <img width="702" height="431" alt="Image" src="https://github.com/user-attachments/assets/abaf6af9-18bd-4714-a5f1-44f80d4d1e89" />
yindo closed this issue 2026-02-16 17:30:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 21, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1374: Both issues involve problems with the fuzzy file search functionality, though with different symptoms (your issue requires adding '-' for long filenames with dashes, while #1374 shows files not being found at all on Windows)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 21, 2025): This issue might be a duplicate of existing issues. Please check: - #1374: Both issues involve problems with the fuzzy file search functionality, though with different symptoms (your issue requires adding '-' for long filenames with dashes, while #1374 shows files not being found at all on Windows) Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 6, 2025):

This may be fixed in next release by https://github.com/sst/opencode/pull/2409

@rekram1-node commented on GitHub (Sep 6, 2025): This may be fixed in next release by https://github.com/sst/opencode/pull/2409
Author
Owner

@rekram1-node commented on GitHub (Sep 13, 2025):

I think this was fixed? Going to close, if you still have issue I will reopen

@rekram1-node commented on GitHub (Sep 13, 2025): I think this was fixed? Going to close, if you still have issue I will reopen
Author
Owner

@NoahBPeterson commented on GitHub (Sep 13, 2025):

Confirmed, fixed for me as of v0.7.9

@NoahBPeterson commented on GitHub (Sep 13, 2025): Confirmed, fixed for me as of v0.7.9
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1426