hermes-agent/website/docs/user-guide/features
Teknium dd7921d514
fix(honcho): isolate session routing for multi-user gateway (#1500)
Salvaged from PR #1470 by adavyas.

Core fix: Honcho tool calls in a multi-session gateway could route to
the wrong session because honcho_tools.py relied on process-global
state. Now threads session context through the call chain:
  AIAgent._invoke_tool() → handle_function_call() → registry.dispatch()
  → handler **kw → _resolve_session_context()

Changes:
- Add _resolve_session_context() to prefer per-call context over globals
- Plumb honcho_manager + honcho_session_key through handle_function_call
- Add sync_honcho=False to run_conversation() for synthetic flush turns
- Pass honcho_session_key through gateway memory flush lifecycle
- Harden gateway PID detection when /proc cmdline is unreadable
- Make interrupt test scripts import-safe for pytest-xdist
- Wrap BibTeX examples in Jekyll raw blocks for docs build
- Fix thread-order-dependent assertion in client lifecycle test
- Expand Honcho docs: session isolation, lifecycle, routing internals

Dropped from original PR:
- Indentation change in _create_request_openai_client that would move
  client creation inside the lock (causes unnecessary contention)

Co-authored-by: adavyas <adavyas@users.noreply.github.com>
2026-03-16 00:23:47 -07:00
..
_category_.json feat: add documentation website (Docusaurus) 2026-03-05 05:24:55 -08:00
acp.md docs: add ACP and internal systems implementation guides 2026-03-14 00:29:48 -07:00
batch-processing.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
browser.md docs: expand Docusaurus coverage across CLI, tools, skills, and skins (#1232) 2026-03-13 21:34:41 -07:00
checkpoints.md feat: filesystem checkpoints and /rollback command 2026-03-10 00:49:15 -07:00
code-execution.md docs: add 11 new pages + expand 4 existing pages (26 → 37 total) 2026-03-05 07:28:41 -08:00
context-files.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
cron.md docs: clarify gateway service scopes (#1378) 2026-03-14 21:17:41 -07:00
delegation.md feat: add direct endpoint overrides for auxiliary and delegation 2026-03-14 21:11:37 -07:00
fallback-providers.md docs: fallback providers + /background command documentation 2026-03-15 06:24:28 -07:00
honcho.md fix(honcho): isolate session routing for multi-user gateway (#1500) 2026-03-16 00:23:47 -07:00
hooks.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
image-generation.md docs: add 11 new pages + expand 4 existing pages (26 → 37 total) 2026-03-05 07:28:41 -08:00
mcp.md docs(mcp): add comprehensive Hermes MCP docs 2026-03-14 06:36:01 -07:00
memory.md docs(honcho): rewrite Honcho Memory docs as full feature documentation 2026-03-10 16:49:14 -04:00
personality.md docs(soul): add comprehensive SOUL.md guide 2026-03-14 09:37:26 -07:00
provider-routing.md docs: fallback providers + /background command documentation 2026-03-15 06:24:28 -07:00
rl-training.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
skills.md docs: stabilize website diagrams 2026-03-14 22:49:57 -07:00
skins.md docs: expand Docusaurus coverage across CLI, tools, skills, and skins (#1232) 2026-03-13 21:34:41 -07:00
tools.md feat: add multi-skill cron editing and docs 2026-03-14 19:18:10 -07:00
tts.md fix: restore local STT fallback for gateway voice notes 2026-03-15 21:51:40 -07:00
vision.md docs: add Vision & Image Paste guide with platform compatibility 2026-03-05 23:51:46 -08:00
voice-mode.md docs: complete voice mode docs 2026-03-14 19:29:01 -07:00