Skip to content

Autocomplete a filename did not work on old prompt #4120

Closed

Description

@erf

Description

I opened opencode and pressed arrow up to find a previous prompt. Then i removed a reference to a folder and tried to type @somefolder to replace it with a new folder, but the autocomplete dialog did not show.

OpenCode version

1.0.51

Steps to reproduce

  1. open opencode
  2. use arrow to move to a previous prompt
  3. try and replace a referenced folder in the middle of the prompt
  4. notice autocomplete does not show

Screenshot and/or share link

No response

Operating System

macOS 26.1

Terminal

Ghostty

Activity

  1. added
    bugSomething isn't working
    on Nov 9, 2025
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 9, 2025
  3. github-actions commented on Nov 9, 2025

    @github-actions
    Contributor

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

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

  4. veracioux commented on Nov 9, 2025

    @veracioux
    Contributor

    This appears to just be the symptom of a more general issue: @ completions don't show up if triggered in the middle of text, e.g. with the prompt
    what does the file @ contain.
    Are you getting this issue when the file reference is at the end of the prompt?

  5. erf commented on Nov 9, 2025

    @erf
    Author

    You're right. This only happens in the middle of the text as a general issue as you described. It seems you already have a fix for it! Awesome work on this tool.

  6. veracioux commented on Nov 9, 2025

    @veracioux
    Contributor

    @erf I'm just a small-time contributor :) We should keep this issue open until the PR gets merged.

  7. reopened this on Nov 9, 2025
  8. self-assigned this
    on Nov 12, 2025
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