Skip to content

chore(release): 0.9.5 hotfix -- __version__ sync + cli --help cp949 fix - #23

Merged
ArkNill merged 1 commit into
mainfrom
release/0.9.5
May 21, 2026
Merged

chore(release): 0.9.5 hotfix -- __version__ sync + cli --help cp949 fix#23
ArkNill merged 1 commit into
mainfrom
release/0.9.5

Conversation

@ArkNill

@ArkNill ArkNill commented May 21, 2026

Copy link
Copy Markdown
Owner

Summary

Two bugs surfaced by dogfooding 0.9.4 on a Windows-Korean (cp949) host
immediately after PyPI publish. This release contains both fixes plus the
version bump.

Fixed

1. __version__ was stale at 0.9.2

Files: src/llm_relay/__init__.py, src/llm_relay/detect/__init__.py.

The 0.9.4 release bumped only pyproject.toml; the importable runtime
version stayed at the locally-tagged 0.9.2. llm-relay verify install
correctly flagged this with its version_consistency check on the freshly
installed wheel:

[warn   ] version_consistency: metadata version '0.9.4' != runtime __version__ '0.9.2' (stale install?)

Both __version__ constants now read 0.9.5 and the check returns pass
once installed.

2. UnicodeEncodeError on llm-relay --help under cp949

File: src/llm_relay/detect/cli.py (3 occurrences).

Em-dash characters ( — "—") in Click docstrings and click.echo
calls were unprintable on cp949 stdout (Korean Windows default), causing
llm-relay --help to crash before showing any subcommands. Replaced with
ASCII --.

This blocked the AGENT_SETUP.md playbook's Phase 0 on Windows-Korean
hosts — agents trying to enumerate available commands hit a stack trace.

Test plan

  • pytest — 593 pass / 0 fail
  • ruff check src/ tests/ — clean
  • NDA grep on diff — 0 hits
  • Repro confirmed pre-fix on 5090 desktop (Windows 11 + cp949 + Python 3.13.2)
  • verify install --format json on pre-fix wheel returned overall: fail with the two issues above; ASCII path now resolves both

Post-merge sequence (out of this PR)

  1. git tag v0.9.5 + push
  2. gh release create v0.9.5 with CHANGELOG body
  3. gh workflow run publish.yml -f confirm=publish (Trusted Publishing OIDC, no token)
  4. Re-verify verify install on the 5090 desktop after pip install --upgrade llm-relay

Two bugs surfaced by dogfooding 0.9.4 on a Windows-Korean (cp949) host
immediately after PyPI publish:

1. __version__ was stale at "0.9.2"
   - src/llm_relay/__init__.py and src/llm_relay/detect/__init__.py
     were never updated when pyproject.toml moved to 0.9.4.
   - `llm-relay verify install` correctly flagged this with the
     version_consistency check ("metadata 0.9.4 != runtime 0.9.2").
   - Both files now read "0.9.5".

2. UnicodeEncodeError on `llm-relay --help` under cp949
   - Three em-dash characters in Click docstrings / click.echo calls
     in src/llm_relay/detect/cli.py crashed --help on Korean Windows
     (`'cp949' codec can't encode character '—'`).
   - Replaced em-dash with ASCII `--`. No behavior change beyond
     making the command actually usable on Windows-Korean hosts.

Also bumps pyproject.toml version to 0.9.5 and adds a [0.9.5] section
to CHANGELOG describing the hotfix.

Full suite: 593 pass. Ruff clean. NDA grep on diff: 0 hits.
@ArkNill
ArkNill merged commit ab4eef3 into main May 21, 2026
6 checks passed
@ArkNill
ArkNill deleted the release/0.9.5 branch May 21, 2026 00:20
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