Skip to content

[Desktop] File path display incorrectly shows dot prefix on file names instead of directory names #9579

Closed

Description

@CodeCasterX

Description

In OpenCode Desktop, the "Session changes" panel displays file paths incorrectly:

Expected display:

  • .opencode/commands/README.md
  • .opencode/commands/analyze-issue.md
  • .opencode/commands/plan.md

Actual display:

  • opencode/commands/.README.md ← directory dot removed, file dot added
  • opencode/commands/.analyze-issue.md ← directory dot removed, file dot added
  • opencode/commands/.plan.md ← directory dot removed, file dot added

The dot prefix (.) is being incorrectly moved from the directory name to the file names. The actual files on disk are correct (.opencode/commands/analyze-issue.md without dot on filename), only the UI display is wrong.

This appears to be a display bug in the Desktop app's file path rendering logic.

Plugins

None

OpenCode version

1.1.20

Steps to reproduce

  1. Create a directory with dot prefix: .opencode/commands/
  2. Create markdown files WITHOUT dot prefix inside it: analyze-issue.md, plan.md, etc.
  3. Open OpenCode Desktop in this project
  4. Make changes to these files to trigger "Session changes" panel
  5. Observe the incorrect file paths in the panel (dot on files instead of directory)

Screenshot and/or share link

See attached screenshots showing:

  1. Expected display (files on disk use correct paths: .opencode/commands/analyze-issue.md)
  2. Actual display in Desktop app (incorrectly shown as: opencode/commands/.analyze-issue.md)
Image Image

Operating System

macOS 15.7.3

Terminal

OpenCode Desktop (not CLI)

Activity

  1. yxshee commented on Jan 20, 2026

    @yxshee

    I reproduced this on macOS and traced it to the RTL directory display in the “Session changes” UI. I have a fix that prefixes the directory label with an LRM so the leading dot stays with the directory name. I updated both the Session Review list and the Session Turn diff list.

  2. Ipriyankrajai commented on Jan 20, 2026

    @Ipriyankrajai

    @yxshee You have PR for this?

  3. CodeCasterX commented on Jan 20, 2026

    @CodeCasterX
    Author

    Thanks for reproducing and tracking this down. The LRM fix for the RTL directory label makes sense. Appreciate the update, and looking forward to the PR.

  4. CodeCasterX commented on Jan 21, 2026

    @CodeCasterX
    Author

    Thanks so much for the quick fix! I just noticed PR #9591 has been merged. Really appreciate the rapid response and the elegant LRM solution.

    May I ask when this fix is expected to be included in a release? Looking forward to trying it out in the Desktop app.

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

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions