Skip to content

fix: support semicolon path separator for Windows compatibility in --sop-paths#51

Open
haosenwang1018 wants to merge 1 commit intostrands-agents:mainfrom
haosenwang1018:fix/windows-sop-path-separator
Open

fix: support semicolon path separator for Windows compatibility in --sop-paths#51
haosenwang1018 wants to merge 1 commit intostrands-agents:mainfrom
haosenwang1018:fix/windows-sop-path-separator

Conversation

@haosenwang1018
Copy link

Problem

--sop-paths uses : (colon) as the path separator, which conflicts with Windows drive letters like C:\Users\sops. This causes expand_sop_paths() to split incorrectly on Windows, resulting in broken paths.

Solution

  • Accept ; (semicolon) as a cross-platform path separator
  • When ; is present in the input string, split on ; (safe for both Windows and Unix)
  • When no ; is present, fall back to os.pathsep (: on Unix, ; on Windows)
  • Update CLI help text to document the cross-platform behavior
  • Add tests for semicolon separator and Windows drive letter paths

Backward Compatibility

Existing Unix users passing /path1:/path2 are unaffected — the fallback to os.pathsep preserves the old behavior when no semicolons are present.

…sop-paths

On Windows, using ':' as the path separator breaks paths with drive
letters (e.g. C:\Users\...).  This change makes expand_sop_paths()
prefer ';' when present, falling back to os.pathsep otherwise.

Backward compatible: existing Unix ':'-separated paths still work.
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.

1 participant