Skip to content

Context adding with @ and using tab-complete does not support files with space in path #19152

Closed as not planned

Description

@srsobieraj

Description

What was done
Have a file with a space or multiple spaces in the path. Use @ to add a file for context, attempt to type the name of the file or use auto-complete past a path with a space. eg, I have the following file: "Assets/Art/Models/Car Kit/GLB Format/car-model.glb".

What was seen
Pressing Tab after each directory works correctly until the Car Kit path, and then tab complete stops without using syntax highlighting. eg, @Assets then Tab shows "@Assets/Art", then pressing Tab and arrow down shows "@Assets/Art/Models" then Tab and down arrow again shows "@Assets/Art/Models/Car Kit" but pressing Tab again just stops the tab-complete.

When trying to type out the file path, it similarly stops working as soon as the user presses space, eg @Assets/Art/Models/Car and then as soon as space is pressed, it ends the process.

What was expected
@ for context should allow users to add files with spaces in path, both by typing it, and by using tab-complete.

Plugins

No response

OpenCode version

1.3.2 Desktop and 1.3.0 in Wezterm

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows

Terminal

Wezterm

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 25, 2026
  2. skainguyen1412 commented on Mar 26, 2026

    @skainguyen1412

    Hi @rekram1-node, I’d be happy to work on this issue if that’s okay.

  3. skainguyen1412 commented on Mar 27, 2026

    @skainguyen1412

    Hi @rekram1-node @srsobieraj , I’ve finished the fixes. Could you take a look at them?

  4. srsobieraj commented on Mar 29, 2026

    @srsobieraj
    Author

    I'm not able to test the fix, but reading your PR notes it sounds like it functions as intended

  5. skainguyen1412 commented on Mar 30, 2026

    @skainguyen1412

    Hi @rekram1-node, feel free to let me know if anything needs to be changed!

  6. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  7. github-actions commented on Jul 5, 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