Commit Graph

14 Commits

Author SHA1 Message Date
kshitijk4poor 24b33d42e0 fix(honcho): every honcho.json writer holds _refresh_lock and reads strictly
The CLI's _write_config took only the best-effort file lock, so an in-process
refresh thread could still interleave with a command's read-modify-write. The
dashboard's Honcho save (_write_provider_honcho) still seeded its whole-file
rewrite from a tolerant reader, so a honcho.json that exists but does not parse
was replaced by the active host's block alone from the UI - the same bug class
this PR closes on the CLI and refresh paths. `hermes profile create --clone`
swallowed the new ConfigWriteRefused as "plugin not installed".

One parametrized test covers the web writer for the corrupt and parseable cases.
2026-09-13 19:05:28 +05:30
Teknium 08bd8aea74 simplify(compat): web_routers — repoint 231 web_server.<name> seams to the owning module (105 direct imports, 113 late()/LateState() with module arg, 12 lazy imports + kanban plugin _ws_auth_ok) 2026-09-03 14:21:43 -07:00
Teknium ee7e86c1e3 refactor(hermes_cli/web_routers): unify secret persistence, JSON reads and error mapping in memory_providers 2026-09-02 23:59:01 -07:00
Teknium a8be68f985 refactor(hermes_cli/web_routers): memory_providers external-dependency runner — one _run helper (405-case fuzz parity) 2026-09-02 22:26:11 -07:00
Teknium 7d60d28f41 refactor(hermes_cli/web_routers): drop post-docstring blank lines 2026-09-02 22:20:21 -07:00
Teknium ec346c7521 refactor(hermes_cli/web_routers): AST-neutral packing of literal dict/list spans 2026-09-02 21:56:23 -07:00
Teknium 0cab29d3f4 refactor(hermes_cli/web_routers): AST-neutral statement packing (actions/audio/memory_providers/config_env) 2026-09-02 21:54:20 -07:00
Teknium 95589a420f refactor(hermes_cli/web_routers): reuse _common.scoped_to_thread for profile-scoped off-loop handlers 2026-09-02 21:48:42 -07:00
Teknium 9912d34a3f refactor(hermes_cli/web_routers): AST-neutral bracket packing (oauth/memory_providers/config_env/actions/audio) 2026-09-02 21:43:19 -07:00
Teknium d68f930182 refactor(hermes_cli/web_routers): memory_providers — unify JSON reads, memory-section access, external-check runner 2026-09-02 20:57:46 -07:00
Teknium 4fd970c62f refactor(web): absorb single-router web_server helpers into their routers (75 defs); drop dead imports 2026-09-02 13:33:22 -07:00
Teknium 8ac12223bb refactor(web): late() proxies replace per-handler lazy web_server imports in extracted routers 2026-09-02 13:32:45 -07:00
Teknium ba91166b1c refactor(web): hoist stdlib imports in extracted routers; drop unused web_server imports 2026-09-02 13:32:28 -07:00
Teknium 11bc6bbe11 refactor(web): extract memory-provider setup routes into web_routers/memory_providers.py 2026-09-02 13:30:51 -07:00