Files
hermes-agent/acp_adapter
teknium1 a23984887a fix: ACP set_model no longer runs queued prompts inside the RPC (review follow-up)
set_session_model's `finally` awaited _drain_queued_prompts, so a prompt queued
during a failed (or slow) switch_model ran a whole agent turn inside the
session/set_model request; the client received the RequestError only after
that turn ended, and the drained turn streamed with no open prompt request.
Schedule the drain via _schedule_soon so it runs right after the response is
queued, on both the success and the error path.
2026-09-20 12:55:37 -07:00
..