Skip to content

The TUI file index should provide a way to refresh the file list on demand. #35841

Closed as not planned

Description

@Evan-acg

Description

Description

The opencode-cli TUI file auto-completion index (triggered by typing @) does not update when new files are created outside the session or generated by the AI agent. The file list remains static based on the initial workspace scan at startup, and there is no built-in mechanism or command to manually trigger a re-scan.

Expected Behavior

The TUI file index should provide a way to refresh the file list on demand.

Note: I understand that avoiding constant file watching might be a deliberate design choice to optimize performance and efficiency. However, adding at least a manual command (e.g., /refresh, /sync) or a shortcut key to let users trigger a workspace re-scan on demand would be highly appreciated and solve this UX bottleneck.

Actual Behavior

  • The @ auto-completion dropdown only shows files that existed when opencode was launched.
  • Newly created files are invisible to the auto-complete dropdown.
  • There are no commands or shortcuts available to refresh this state inside the TUI.
  • The only workaround is to completely exit (/exit) and restart the CLI session.

Troubleshooting Attempted

  1. Looked for TUI commands like /refresh or /reload - none exist or work for this purpose.
  2. Verified that typing the full path manually still works, confirming the backend can read the file, but the TUI autocomplete UI layer is completely stale.

Configuration

Watcher config: None (Default settings, no custom opencode.json used)

Plugins

None

OpenCode version

opencode-cli v1.17.15

Steps to reproduce

  1. Open a project directory in Windows Terminal using PowerShell, and run opencode.
  2. In a separate terminal tab or via an external editor, create a new file (e.g., src/new_script.js).
  3. Return to the opencode TUI session and type @ in the input prompt to trigger the file autocomplete list.
  4. Observe: The newly created file src/new_script.js is missing from the list.
  5. Search for any manual refresh command - none is available. A full restart of the CLI is required to update the list.

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Windows Terminal + PowerShell

Plugins

No response

OpenCode version

opencode-cli v1.17.15

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Sep 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions