mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 00:40:13 +08:00
* fix(book): reject incomplete interactive HTML Normalize wrapped HTML and require complete document and script boundaries so truncated output follows the existing retry/error path instead of being persisted as READY. * fix(book): end interactive html at its real </html> and name truncation Find the document end with the HTML parser instead of the last </html> or the first code fence: script bodies stay raw text, so a fence in <pre>, an end tag in a script string or prose after the page no longer moves the end. A reply whose fence never closes is accepted when the document is complete, and a cut-off document now says it was probably cut off. --------- Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com> Co-authored-by: zszz3 <91608029+zszz3@users.noreply.github.com>