Repository navigation
v1.8.4
v1.8.4 — Windows Monarch bridge path fix
Bug fix. Backward-compatible — no TOML schema changes.
Fixed
- Monarch fetch fails on Windows with
SyntaxError: truncated \UXXXXXXXX escape—monarch_bridge.pyembedded the MCP install path into the generated inline fetch script withstr(), placing backslashed Windows paths (C:\Users\...) inside a string literal in the generated source. Any install under a user directory (viaMONARCH_MCP_PATH) broke every live Monarch pull; other sequences (\t,\r,\b) corrupted the path silently. The path is now embedded withPath.as_posix()(forward slashes — accepted on Windows, byte-identical no-op on POSIX). - New regression test —
tests/test_monarch_bridge.pypins the embedded path form: a Windows-gated repro test (red on the unfixed code, green after the fix) plus a platform-independent compile check.
Thanks to Ben Wendell for the report and fix.
Files changed: src/monarch_bridge.py, tests/test_monarch_bridge.py