Skip to content

fix(session): Windows session directory filters treat slash-equivalent paths as different #28038

Closed as not planned

Description

@jacky-2014-sn

Description

On Windows, session filtering can treat slash-equivalent directory paths as different locations. A session stored under a path like C:\repo\packages\opencode can be missed when the request or cursor uses C:/repo/packages/opencode.

This affects both normal session list filtering and v2 cursor validation. It also shows up for legacy session rows that do not have a path value and still fall back to directory matching.

Plugins

None

OpenCode version

1.15.3

Steps to reproduce

  1. On Windows, create sessions from nested directories inside the same git repo.
  2. List sessions or continue pagination using a slash-normalized directory path.
  3. Observe that matching sessions may be omitted, or v2 cursor requests may be rejected because the directory string does not match exactly.

Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

PowerShell

Activity

  1. github-actions commented on May 17, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify how it differs.

  2. github-actions commented on Jul 17, 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