Files
add-and-commit/test
06e788f69a fix: neutralize bidi and control chars in action logs (#763)
* fix: neutralize bidi and control chars in action logs

Prevent Trojan Source-style filename spoofing when git status paths are printed via log(), and sanitize conflicted paths in pull errors.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: guard neutralizeForLog against circular references

Track visited arrays/objects with a WeakSet so log() returns a marker instead of overflowing on cyclic values.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-09 00:51:33 +02:00
..