mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-15 11:57:12 +00:00
0e8d92cf5f
On Windows where claude.cmd emits GBK/cp936 bytes, the claude-cli subprocess decoding raised UnicodeDecodeError and crashed extraction. Both claude-cli subprocess.run sites (_call_claude_cli and the claude-cli branch of _call_llm) now pass errors="replace", so incidental non-UTF8 console chatter decodes to replacement chars instead of crashing — the structured JSON payload (ASCII/UTF-8 on stdout) is unaffected. capture_output=True means the single errors= covers both stdout and stderr. Ported from PR #1507 by @nuthalapativarun (dropped an unrelated .gitignore change). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>