https://gitlab.synchro.net/main/sbbs/-/commit/d816d5817dcc15790b22422e
Modified Files:
exec/chat_llm.js src/sbbs3/chat.cpp
Log Message:
Multinode chat: LLM guru replies no longer stall input
In multinode chat, an LLM guru's reply was held back 100 ms per
character after the LLM had already answered: a 154-character reply
took about 22 seconds to appear, during which the user's typing was not processed. The delay came from the pattern-file (guru.dat) guru, whose
answers are instant.
Now:
- The reply is held only for the part of a typing time (120 ms per
character, about 100 wpm, at most 10 seconds) that the LLM did not
already use. A slow answer appears as soon as it arrives.
- A key typed while the reply is pending abandons it: chat_llm.js closes
the LLM request (Ollama then stops generating), nothing from the turn
is remembered, and the key starts the user's next line.
- A key typed during the typing-time hold shows the reply at once.
The abort is opt-in per turn (ctx.abort_on_input), set only by the
multinode chat dispatch, and covers every LLM request made during the
turn. An aborted request is not treated as an endpoint failure, so it
does not trigger failover to endpoint_fallback.
Fixes #1407
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net