hermes-agent/tests/honcho_plugin
Erosika ecfc427b28 fix(honcho): skip memory calls while the oauth grant is dead
reauth_required() existed but nothing called it, so after a grant died
every dialectic fire and sync flush still sent a Honcho API call that
401ed. dialectic_query and _flush_session now check the dead-grant flag
first and skip the call: dialectic raises HonchoAuthError (exempt from
cadence backoff), sync returns False with the failure recorded so the
one-time notice still fires.

The check compares the on-disk refresh-token digest, so a re-login flips
it back with no network call and the next cadence resumes immediately.
Transient auth errors keep the existing force-refresh-and-retry path.

Four new tests: a dead grant issues no dialectic or sync call, and a
re-login resumes both without waiting.
2026-08-08 14:40:46 +05:30
..
__init__.py
…
conftest.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_async_memory.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_auth_recovery.py fix(honcho): skip memory calls while the oauth grant is dead 2026-08-08 14:40:46 +05:30
test_cli.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_client.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_empty_profile_hint.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_network_isolation.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_oauth.py fix(honcho): recover memory from mid-session oauth 401s and tell the user once 2026-08-08 14:40:46 +05:30
test_oauth_flow.py fix(honcho): network-hermetic unit tests + lazy async writer start 2026-07-29 18:55:10 -07:00
test_pin_peer_name.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_query_rewrite.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_session.py refactor(memory): single shared trivial-prompt classifier + gate tests 2026-08-03 17:53:55 +05:30