Skip to content

Pasting file paths with line references (e.g. file.tsx:39-42) causes error and disables Enter button #3910

Closed

Description

@itse4elhaam

Description

When a file with line reference (@src/components/checkout/MultiStep.tsx:39-42) is pasted, an error is shown (please see the screenshot), and the enter button is disabled (does not work).

I know this is probably intentional, but in the earlier versions (pre 1.0), it used to pick up the file correctly regardless of he format.

The use case for this comes up with this is used in Neovim using SideKick.nvim

OpenCode version

1.0.20

Steps to reproduce

  1. Paste a file name with lines appended without any spaces as described in the docs
  2. (Optional) use the require("sidekick.cli").send { msg = "{this}" } with SideKick.nvim

Screenshot and/or share link

Image

Operating System

Pop!_OS 22.04 LTS

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 4, 2025
  2. github-actions commented on Nov 4, 2025

    @github-actions
    Contributor

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

    Both issues describe problems with file path handling in the OpenTUI version (v1.0+) that worked in previous versions.

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

  3. self-assigned this
    on Nov 4, 2025
  4. thdxr commented on Nov 4, 2025

    @thdxr
    Member

    it's because the autocomplete opened and couldn't find any results - we currently don't dismiss autocomplete until you press "Escape" but maybe we should on space

  5. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Contributor

    @thdxr I just made a fix for that (the space)

  6. itse4elhaam commented on Nov 4, 2025

    @itse4elhaam
    Author

    @thdxr I just made a fix for that (the space)

    Will the fix be available in the next release or can I install it (By building it from source, if that is an option?)

  7. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Contributor

    @itse4elhaam can u try v1.0.22?

  8. added a commit that references this issue on Nov 9, 2025
    5dc0164
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