Skip to content

fix: normalize windows path separators in session queries#19645

Closed
tcflying wants to merge 2 commits intoanomalyco:devfrom
tcflying:fix/windows-session-path-normalization
Closed

fix: normalize windows path separators in session queries#19645
tcflying wants to merge 2 commits intoanomalyco:devfrom
tcflying:fix/windows-session-path-normalization

Conversation

@tcflying
Copy link
Copy Markdown

Fixes Windows session list display issues where sessions become invisible due to path separator inconsistencies.

Changes

  • Add normalizePathSeparators() function to filesystem utilities
  • Normalize paths in session.createNext() when storing sessions
  • Normalize paths in Session.list() when querying by directory
  • Normalize paths in Session.listGlobal() when querying by directory
  • Normalize paths in Project.discover() when updating session project IDs

Issues Fixed

Closes #16744
Closes #18029

This fixes the Windows path issue where sessions created with backslash paths would not be visible when querying with forward slash paths, or vice versa.

Related to PR #17067 by HRronaldo

Fixes Windows session list display issues where sessions become invisible due to path separator inconsistencies.

Changes:
- Add normalizePathSeparators() function to filesystem utilities
- Normalize paths in session.createNext() when storing sessions
- Normalize paths in Session.list() when querying by directory
- Normalize paths in Session.listGlobal() when querying by directory
- Normalize paths in Project.discover() when updating session project IDs

This resolves GitHub Issues anomalyco#16744 and anomalyco#18029 where sessions created with backslash paths would not be visible when querying with forward slash paths, or vice versa.

Related to PR anomalyco#17067 by HRronaldo

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions github-actions bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

These appear to be related PRs tackling the same core issue. The current PR (#19645) may be building on or superseding #17067.

Also normalize Windows drive letters to uppercase for consistent path matching.
This ensures paths like 'c:/path' and 'C:/path' are treated the same.
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Mar 29, 2026
@github-actions github-actions bot closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can not display sessions list in web ui (version 1.2.21 - 1.2.27) [Web UI] Sessions under workspace root are missing after upgrading to 1.2.21

2 participants