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

Closed
opened 2026-02-16 18:05:34 -05:00 by yindo · 4 comments
Owner

Originally created by @CodeCasterX on GitHub (Jan 20, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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)

Originally created by @CodeCasterX on GitHub (Jan 20, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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`) <img width="1152" height="1222" alt="Image" src="https://github.com/user-attachments/assets/cf82ccd9-cfa6-4359-8c45-17f32c3dee13" /> <img width="1042" height="756" alt="Image" src="https://github.com/user-attachments/assets/74e9c487-a5cf-410a-b511-bb2f29a75f40" /> ### Operating System macOS 15.7.3 ### Terminal OpenCode Desktop (not CLI)
yindo added the web label 2026-02-16 18:05:34 -05:00
yindo closed this issue 2026-02-16 18:05:34 -05:00
Author
Owner

@yxshee commented on GitHub (Jan 20, 2026):

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.

@yxshee commented on GitHub (Jan 20, 2026): 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.
Author
Owner

@Ipriyankrajai commented on GitHub (Jan 20, 2026):

@yxshee You have PR for this?

@Ipriyankrajai commented on GitHub (Jan 20, 2026): @yxshee You have PR for this?
Author
Owner

@CodeCasterX commented on GitHub (Jan 20, 2026):

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.

@CodeCasterX commented on GitHub (Jan 20, 2026): 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.
Author
Owner

@CodeCasterX commented on GitHub (Jan 20, 2026):

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.

@CodeCasterX commented on GitHub (Jan 20, 2026): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6912