From 29db125b9b0eeffaebaf7b9aba76b1211ed9ab71 Mon Sep 17 00:00:00 2001 From: Arnold Wender Date: Wed, 22 Apr 2026 10:42:55 +0200 Subject: [PATCH] fix(closet_llm): replace non-ASCII symbols in progress output (#1034) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GBK consoles (Windows PowerShell/CMD default) cannot encode U+2713 (✓), U+2717 (✗), and U+2014 (—). The same class of UnicodeEncodeError fixed in miner.py via #681 affects closet_llm.py and cli.py. Replace with ASCII equivalents: [OK], [FAIL], [!], and hyphen. --- mempalace/closet_llm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mempalace/closet_llm.py b/mempalace/closet_llm.py index a85d517..801f711 100644 --- a/mempalace/closet_llm.py +++ b/mempalace/closet_llm.py @@ -264,7 +264,7 @@ def regenerate_closets( f"Regenerating closets for {len(sources)} source files via {cfg.endpoint} ({cfg.model})..." ) if dry_run: - print("DRY RUN — no changes will be written") + print("DRY RUN - no changes will be written") processed = 0 failed = 0 @@ -286,7 +286,7 @@ def regenerate_closets( parsed, usage = _call_llm(cfg, source, w, r, content) if not parsed: failed += 1 - print(f" [{i}/{len(sources)}] ✗ {os.path.basename(source)} — LLM failed") + print(f" [{i}/{len(sources)}] [FAIL] {os.path.basename(source)} - LLM failed") continue if usage: @@ -323,7 +323,7 @@ def regenerate_closets( processed += 1 n_topics = len(parsed.get("topics", [])) - print(f" [{i}/{len(sources)}] ✓ {os.path.basename(source)} — {n_topics} topics") + print(f" [{i}/{len(sources)}] [OK] {os.path.basename(source)} - {n_topics} topics") print(f"\nDone. {processed} regenerated, {failed} failed.") if total_input or total_output: