fix(telegram): безопасно разбивать длинные HTML-ответы - #731
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #708
konard
marked this pull request as ready for review
July 14, 2026 07:37
Collaborator
Author
Working session summaryЗадача #708 решена: PR #731 готов к ревью.
This summary was automatically extracted from the AI working session output. |
Collaborator
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (160.3K + 5.7M cached) input tokens, 14.8K output tokens, $7.972882 cost 🤖 Models used:
📎 Log file uploaded as Gist (2110KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Collaborator
Author
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Auto-merged by hive-mind with --auto-merge flag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что исправлено
.slice();.gitkeep.Воспроизведение
До исправления длинный ответ вида
**word word ...**превращался в один<b>...</b>, после чего разрезался внутри тега. Первый кусок оставался без</b>, второй начинался с лишнего закрывающего тега, и Telegram мог вернутьcan't parse entities.Проверка
Добавлены регрессионные тесты для:
sendMessageи гостевогоanswerGuestQuery.Локально выполнены:
npm run build:sdknpm run typechecknpm run lintnpm run format:checknpm test -- --run src/telegram/__tests__/html-splitter.test.ts src/telegram/__tests__/bot-bridge-html-split.test.ts— 8 тестовnpm test— 3811 тестов прошли; один несвязанный тестManagedAgentServiceодин раз достиг существующего лимита 10 с под общей нагрузкой и успешно прошёл при отдельном повторе (8,9 с)npm run build:backendnpm run build:webВерсия не менялась: release-please формирует patch-релиз из
fix:-коммита согласноCONTRIBUTING.md.Fixes #708