Commit Graph

7 Commits

Author SHA1 Message Date
Teknium
5705b68f70 fix: memory-plugin and Qwen-CLI config JSON survives Windows BOM
Port from earendil-works/pi#8337 (UTF-8 BOM normalization in text inputs):
sibling sites the merged #81967 BOM sweep missed. json.loads hard-fails on
a leading U+FEFF and every one of these loaders swallows the exception and
silently falls back to defaults — a user who edited mem0.json, honcho.json,
hindsight/config.json, or supermemory.json in Notepad lost their whole
config with no error, and Qwen CLI OAuth creds saved with a BOM raised
qwen_auth_read_failed.

- plugins/memory/{honcho,mem0,hindsight,supermemory}: 13 read sites -> utf-8-sig
- hermes_cli/auth.py: _read_qwen_cli_tokens -> utf-8-sig
- tests: BOM regression tests per loader (sabotage-proven) + plain-UTF-8 guard
2026-09-15 03:38:29 -07:00
Teknium
66c09a1a7c refactor(hindsight): extract embedded-LLM wizard step, walrus prompt guards 2026-09-03 00:08:33 -07:00
Teknium
5ab5e1ac9a refactor(hindsight): setup wizard — inline template step, shared env path, suppress layer 2026-09-02 23:52:56 -07:00
Teknium
99b7bb9add refactor(memory,langfuse): compact literal/config builders and call-site formatting 2026-09-02 22:19:47 -07:00
Teknium
58277b0252 refactor(memory,langfuse): fold small helpers (read_file line parse, json hint merge, env-file parse, setup prompts) 2026-09-02 21:49:17 -07:00
Teknium
b5721f7cc4 refactor(memory): compact discovery/config-schema docs, fold CLI scan early-returns, dedupe hindsight setup/template request building 2026-09-02 21:28:43 -07:00
Teknium
3cd4d6d69a refactor(plugins/memory): hindsight — split settings/embedded/setup modules, unify config parsing, remove dead helpers 2026-09-02 13:30:09 -07:00