hermes-agent/plugins/memory
Erosika 671f9cbafa fix(honcho): propagate contextvars to all plugin background threads
Profile isolation is a ContextVar; plain threading.Thread targets start
with an empty context, so the plugin's nine daemon threads (session
init, prewarm, first-turn base/prefetch, prefetch, sync, memwrite,
async writer, context prefetch) resolved ambient state — config path,
active host, hermes home, oauth token paths — against the DEFAULT
profile whenever they ran under a routed profile's turn.

Adds spawn_context_thread(), which copies the caller's context at spawn
time so the thread sees the profile scope it was created under, and
routes every plugin thread spawn through it. Defense-in-depth under the
bound-config work: even ambient resolution on these threads now lands
on the right profile.

The copy_context approach follows the gateway's own
_run_in_executor_with_context pattern; #81401 applied it to the init
thread, this extends it to all nine spawns.

Co-authored-by: angel12 <angel12@users.noreply.github.com>
2026-08-13 23:43:15 +05:30
..
byterover fix: add explicit UTF-8 encoding to all subprocess text=True calls (#53428) 2026-07-24 11:45:57 -07:00
hindsight fix: security + efficiency review fixes for salvaged PR #74379 2026-08-13 23:15:25 +05:30
holographic fix(memory): resolve dim=1 float32/float64 blob ambiguity 2026-08-02 22:33:13 +05:30
honcho fix(honcho): propagate contextvars to all plugin background threads 2026-08-13 23:43:15 +05:30
mem0 fix(secrets): scope memory plugin credential reads (hindsight/honcho/supermemory/mem0/retaindb) 2026-08-02 10:04:48 -07:00
openviking refactor(openviking): reuse _headers() and _status_code_from_error() 2026-08-13 15:06:22 +05:30
retaindb test(retaindb): guard scoped secret config resolution 2026-08-03 20:35:47 +05:30
supermemory fix(secrets): scope memory plugin credential reads (hindsight/honcho/supermemory/mem0/retaindb) 2026-08-02 10:04:48 -07:00
__init__.py fix(windows): sweep remaining bare read_text/write_text sites + linter rule 2026-07-24 17:10:39 -07:00
config_schema.py revert(memory): drop the provider actions extension point 2026-07-10 15:41:52 -04:00
query_rewrite.py fix(honcho): enforce recall latency and budget contracts 2026-07-16 12:48:48 -07:00