Protect fenced and inline Markdown examples while stripping real closed, mixed-spelling, and interrupted reasoning blocks; add regressions for literal tags and code inside reasoning.
A response part shaped {"text": None} was stringified, so a provider that
streams an empty text field injected the literal word "None" into the reply,
or "Nonehi" when a real part followed it.
Parts whose text is null now contribute nothing. A part with no text key
already behaved that way; this makes an explicit null match it. Empty strings
and numeric content are unchanged.
Two inputs lost text that should have been shown:
- a reply that names the tag in prose ("Use <think> to start a reasoning
block.") matched the unterminated-block rule, which deletes from the tag to
the end of the text, so only the words before it survived;
- a block opened with one spelling and closed with the other
("<think>...</thinking>") matched neither pattern, fell through to the same
rule, and took the answer after the closing tag with it.
The unterminated rule now applies only to a tag that starts a line, which is
what a truncated scratchpad actually looks like, and either spelling closes a
block. A closed block still disappears; a mid-sentence mention now survives.
Pointing DeepTutor at a local Ollama and getting it wrong produces
"Unable to reach the model provider. Please retry." in the UI and a bare
`httpcore.ConnectError: All connection attempts failed` in the log.
Neither says what to do, and the two ways this fails need opposite
fixes: nothing is listening on the address, or DeepTutor is inside a
container where `localhost` is the container rather than the machine
serving the model.
`unreachable_endpoint_hint` names which. It stays silent for a cloud
endpoint — there "please retry" really is the whole story — and for a
loopback address inside a container it points at
`host.docker.internal`, the answer CONTAINERIZATION.md already
documents but that nobody reads at the moment they need it. An address
that is already the host gateway gets the "start the server" advice
instead, not advice to use the gateway it is using.
Appended only when the round produced no output: an interrupted answer
is a different failure and the endpoint is demonstrably reachable.
Stability release after v1.3.0 covering safer RAG/KB routing, stronger
embedding validation, more reliable Docker/TutorBot restarts, Web UX
fixes, and Windows/encoding hardening. See assets/releases/ver1-3-1.md
for the full notes.
Made-with: Cursor