fix(sanitize): сохранять текст после закрытия тега - #734
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #711
konard
marked this pull request as ready for review
July 14, 2026 09:08
Collaborator
Author
Working session summaryИсправление готово и отправлено в PR: #734
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: (191.3K + 9.3M cached) input tokens, 14.3K output tokens, $11.822097 cost 🤖 Models used:
📎 Log file uploaded as Gist (2836KB)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.
Что исправлено
stripMarkupTagsбольше не принимает обычный текст после закрывающего>за продолжение имени тега. Например,<a>foo>barтеперь корректно превращается вfoo>bar, а не вbar.Расширенное поглощение фрагментов оставлено только для реально фрагментированных вложенных тегов, содержащих новый
<внутри текущего тега. Поэтому существующая защита от конструкций вроде<scrip<script>t>сохраняется.Как воспроизвести
До исправления:
После исправления оба вызова возвращают
foo>bar.Тесты
sanitizeForPromptиsanitizeTaskDescription.npm test -- --run src/utils/__tests__/sanitize.test.ts— 149/149.npm run build:sdk— успешно.npm run typecheck— успешно.npm run lint— успешно.npm run format:check— успешно.npm test: 3817/3821; четыре несвязанных теста agent/CLI были нестабильны под общей нагрузкой, после отдельного повторного запуска соответствующих файлов — 22/22.Fixes #711