Skip to content

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

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

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