Skip to content

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

@jacky-2014-sn

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions