Skip to content

v1.0.3

Choose a tag to compare

@abullard1 abullard1 released this 26 Jul 13:49
· 8 commits to main since this release
1b9ba76

A Windows fix. Non-ASCII characters in Claude's replies rendered as mojibake,
so an em dash appeared as â€".

Python applies the locale encoding to text I/O, and on Windows a pipe decodes
with the system ANSI codepage rather than UTF-8. Claude Code delivers hook
events over a pipe, so the bytes were misread before any bolding happened. The
hook now reads its event as bytes and lets JSON decode it, which is correct by
definition: JSON is UTF-8 on the wire.

Investigating that turned up two more places with the same defect, neither of
which had been reported.

Fixed

  • Non-ASCII characters no longer garble on Windows. Reported by @aermak, who
    also identified the cause.
  • /claude-bionify:status and the other control commands no longer emit an
    undecodable separator on Windows. The status line is written as UTF-8 bytes
    instead of being encoded with the platform codepage, which produced a broken
    glyph on Western systems and failed outright on Japanese ones.
  • assets/generate_themes.py reads and writes UTF-8 explicitly, so
    regenerating themes.svg produces the same file on any platform.

Internal

  • CI now runs the suite on Windows, and the tests spawn the scripts as real
    subprocesses over a pipe rather than substituting their own streams, which is
    the only way this class of bug is visible.
  • The build fails on any text I/O that falls back to the locale encoding
    (PEP 597), so this cannot regress silently.
  • ruff is pinned with an explicit rule selection, and the gate has been widened.

Upgrade Notes

No configuration changes are required. This is a patch release with no breaking
changes. If you cannot upgrade yet, setting PYTHONUTF8=1 in Claude Code's
settings.json works around the issue on 1.0.2.