Skip to content

File and MCP resource search fails to match text hidden by truncation #7388

Closed

Description

@bagatka

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

  1. Resize your terminal window to be as small as possible while still being able to type in the input field
  2. Have a file with a long path (e.g., src/components/files/FileValidationService.ts)
  3. Type @ to open the autocomplete menu
  4. Start typing part of the filename that gets hidden by truncation (e.g., "Validation")
  5. 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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 8, 2026
  2. github-actions commented on Jan 8, 2026

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions