[Bug] Windows paths with different separators (backslash vs forward slash) treated as different directories in Web UI #8961

Open
opened 2026-02-16 18:11:16 -05:00 by yindo · 1 comment
Owner

Originally created by @shiquda on GitHub (Feb 10, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

On Windows, the same directory is treated as different directories depending on the path separator used, causing conversations to not be shared/accessible between them.

Example

  • Actual Windows path: "E:\AA\BB"
  • When opened via Web UI search: "E:/AA/BB"

These two representations point to the same physical directory, but they are treated as separate directories in the Web UI. As a result:

  • Conversations started in one path format cannot be accessed when the directory is opened with the other format
  • This creates duplicate/inconsistent conversation history

Expected Behavior

Paths should be normalized (converting backslashes to forward slashes or vice versa) before being used as directory identifiers, so that and are recognized as the same directory.

Environment

  • OS: Windows
  • OpenCode version: (latest)
  • Web UI accessed via browser

Related Issues

Possibly related to #1374 (Windows path separator issues)

Steps to Reproduce

  1. On Windows, navigate to a project directory (e.g., )
  2. Open OpenCode Web UI
  3. Start a conversation
  4. Use Web UI search to open the same directory (which may show as )
  5. Observe that the previous conversation is not accessible

Additional Context

This is likely a path normalization issue where Windows backslash paths () are not being normalized to match forward slash paths () when used as directory identifiers in the Web UI session management.

Originally created by @shiquda on GitHub (Feb 10, 2026). Originally assigned to: @adamdotdevin on GitHub. ## Description On Windows, the same directory is treated as different directories depending on the path separator used, causing conversations to not be shared/accessible between them. ### Example - Actual Windows path: \"E:\\AA\BB\" - When opened via Web UI search: \"E:/AA/BB\" These two representations point to the same physical directory, but they are treated as separate directories in the Web UI. As a result: - Conversations started in one path format cannot be accessed when the directory is opened with the other format - This creates duplicate/inconsistent conversation history ### Expected Behavior Paths should be normalized (converting backslashes to forward slashes or vice versa) before being used as directory identifiers, so that and are recognized as the same directory. ### Environment - OS: Windows - OpenCode version: (latest) - Web UI accessed via browser ### Related Issues Possibly related to #1374 (Windows path separator issues) ### Steps to Reproduce 1. On Windows, navigate to a project directory (e.g., ) 2. Open OpenCode Web UI 3. Start a conversation 4. Use Web UI search to open the same directory (which may show as ) 5. Observe that the previous conversation is not accessible ### Additional Context This is likely a path normalization issue where Windows backslash paths () are not being normalized to match forward slash paths () when used as directory identifiers in the Web UI session management.
yindo added the windowsweb labels 2026-02-16 18:11:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

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

  • #11827: Path Display Chaos on Windows (similar issue with Windows path separators displaying inconsistently)
  • #1374: Fuzzy file search does not work correctly on Windows (related path separator issue on Windows)
@github-actions[bot] commented on GitHub (Feb 10, 2026): This issue might be a duplicate of existing issues. Please check: - #11827: Path Display Chaos on Windows (similar issue with Windows path separators displaying inconsistently) - #1374: Fuzzy file search does not work correctly on Windows (related path separator issue on Windows)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8961