Files
ai-memory/hooks
AkitaOnRailsandClaude Opus 4.8 2be13836a3 fix(hooks): escape all JSON control characters in ai_memory_json_string (#732)
JSON forbids a raw control character (U+0000..U+001F) inside a string, but the
escaper covered only backslash, quote, tab and CR. A replayed tool result
carrying an ANSI colour escape (0x1b) reached stdout unescaped, so Claude Code
rejected the whole managed-workstream SessionStart packet as invalid JSON and
the session started with no context; any handoff summary with a control byte
failed the same way. Escape every other control byte as \u00XX with a linear
per-byte gsub pass, reusing #737's BusyBox replacement-doubling probe.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MDbhmszrjG9s5MrPrTuNtm
2026-09-15 11:39:52 -03:00
..