mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-02 13:39:41 +02:00
The AI idle checker was passing the prompt (including up to 16KB of terminal buffer) as a command-line argument to bash -c, which exceeded the Linux argument size limit causing "spawn E2BIG" errors. Now writes the prompt to a temp file and pipes it to claude via stdin, avoiding the argument size limit entirely. Temp file is cleaned up both in the normal case (by the shell command) and on cancellation/timeout. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>