Skip to content

v1.8.4

Choose a tag to compare

@LemurTech LemurTech released this 03 Aug 00:21
· 74 commits to main since this release

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.py embedded the MCP install path into the generated inline fetch script with str(), placing backslashed Windows paths (C:\Users\...) inside a string literal in the generated source. Any install under a user directory (via MONARCH_MCP_PATH) broke every live Monarch pull; other sequences (\t, \r, \b) corrupted the path silently. The path is now embedded with Path.as_posix() (forward slashes — accepted on Windows, byte-identical no-op on POSIX).
  • New regression test — tests/test_monarch_bridge.py pins 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