Files
hermes-agent/agent
yoniebans d7564d6e01 fix(persistence): the title thread and each session authority work through their own store reference
A handle refuses any use after close, and two callers kept using the handle they were given after its owner closed it.

The model-title thread already held its own reference on the profile's store but still wrote the title through the caller's handle, so a caller that closed its handle while the model was answering lost the model title. The thread now writes through the reference it holds, which it releases when it ends.

A session authority already held its own reference until it retires but read and wrote through the runner's cached handle, which the gateway's stop closes. Startup recovery can still read through the authority when the stop lands while the start is finishing; that read now goes through the authority's reference, so it reopens the store with main's warning instead of failing.

Two tests read a handle after closing it: the prompt-cancel case now reads its ledger inside the block that holds the handle, and the cron cleanup case records the holder inside the patched close.
2026-11-17 17:51:22 +01:00
..
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:28:23 +02:00
2026-10-20 21:04:30 -04:00
2026-10-21 23:05:11 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-20 22:18:49 -04:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-21 23:05:11 -04:00