← Open Source & Engineering Work
The Bushido Collective · TheBushidoCollective/hanMerged · Han Core (PR #105)

fix(han): sanitize Windows project path slugs (#105)

Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 6529db3be652b971554d864fb508db9dcda6571a

TypeScript cross-platform path encoding fix normalizing Windows drive-letter colons and backslash separators to match Claude Code double-dash project slug directories.

fix(han): sanitize Windows project path slugs (#105)

PR #105

Merged Mainline

6529db3

Immutable Git SHA

TypeScript

Developer Tooling

6/6 CI Green

CI & Test Matrix

01 · Engineering problem

The failure mode

Windows absolute paths containing drive-letter colons and backslashes failed to normalize into Claude Code's canonical double-dash project directory slug format.

02 · Technical response

What changed

  1. 01Unified TypeScript pathToSlug() sanitization across transcript, event-path, and marketplace-cache modules.
  2. 02Added 43 cross-platform unit assertions covering Windows drive letters, UNC segments, and POSIX paths.

03 · Verified outcome

Evidence-backed result

  • ✓Restored deterministic Windows session slug parity in Han CLI.
  • ✓Merged upstream into TheBushidoCollective/han as commit 6529db3be652b971554d864fb508db9dcda6571a.

04 · Cryptographic Git record

Immutable source evidence

TypeScriptNode.jsCross-Platform CLIClaude Code Tooling

Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.