-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
Description
Problem
When attaching files or MCP resources using @ in the TUI, long paths/URIs are truncated with "..." in the middle for display (e.g., src/components/f...ationService.ts). The fuzzy search runs against this truncated string, so typing text hidden by the ellipsis fails to find matches.
This affects:
Files - long file paths
MCP Resources - long resource names/URIs
Expected behavior
Fuzzy search should match against the full path/URI, not the truncated display string.
Resize your terminal window to be as small as possible while still being able to type in the input field
Have a file with a long path (e.g., src/components/files/FileValidationService.ts)
Type @ to open the autocomplete menu
Start typing part of the filename that gets hidden by truncation (e.g., "Validation")
The file doesn't appear in the results, even though it should match
Plugins
No response
OpenCode version
1.1.6
Steps to reproduce
- Resize your terminal window to be as small as possible while still being able to type in the input field
- Have a file with a long path (e.g., src/components/files/FileValidationService.ts)
- Type
@to open the autocomplete menu - Start typing part of the filename that gets hidden by truncation (e.g., "Validation")
- The file doesn't appear in the results, even though it should match
Screenshot and/or share link
Screen.Recording.2026-01-08.at.23.36.13.mov
Operating System
macOS 26.2/Windows 11
Terminal
Ghostty/Windows Terminal