Files
genoffice/apps
konghaojie-k2 99d376b3c3 fix markdown/pdf ai panels surfacing a truncated reply as "no reply" (#184)
A BYOK reasoning model can spend the whole output budget on thinking and
close the turn with finish_reason=length and no prose at all. The loop
already reports that as `truncated`, and docs appends aiTruncatedNote to
the bubble, but markdown and pdf destructure only
{text, cancelled, turnLimit} — so the run rendered the bare "(no reply)"
(while an empty "(no reply)" turn also made the following turns look like
the assistant had stopped listening).

Probe against api.deepseek.com/v1 (max_tokens=50/3000, thinking on by
default): completion_tokens == reasoning_tokens, content deltas never
start, finish_reason=length — reasoning tokens are billed against
max_tokens, at ~129 tok/s (≈ the agent default cap of 8192 in 60s).

Both panels now take `truncated` and append the note exactly like docs;
aiTruncatedNote is added to all 19 locales of both apps, copied from
apps/docs/src/renderer/i18n/ai/*.ts so the wording stays uniform.
2026-09-03 14:51:12 +08:00
..
2026-09-03 00:12:17 +08:00
2026-09-03 00:12:17 +08:00
2026-09-03 00:12:17 +08:00
2026-09-03 00:12:17 +08:00