fix: prevent subagent log file truncation causing null-byte corruption
Subagent processes called initApiLog()/initErrorLog() which truncated the shared log files to zero bytes. When the parent process resumed writing at its old file offset, the OS filled the gap with null bytes (POSIX sparse file behavior), corrupting ~124KB of the api.log. Skip log initialization in subagent processes (MC_SUBAGENT_DEPTH > 0) since they share the same log files as the parent.
xonecas2026-03-17
913e461023bb9e564dfff00bc904abceaae1600b
parent ed0231b