mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 19:20:16 +00:00
7796f74ca3
Opus pre-release advisor caught a #2762 parity gap. api/streaming.py:5078 (_run_agent_streaming worker, background thread) correctly passes profile= to sync_session_usage post-#2827. But the SECOND production call site at api/routes.py:9007 (_handle_chat_sync, HTTP thread) does not. Safe TODAY (HTTP thread sets TLS correctly), but it's a defense-in-depth gap: anyone wrapping that handler in a worker pool later silently regresses the fix. Closes the parity gap so the threat-model invariant holds regardless of future threading changes.