Bug Report: Tool permission stream closed before response received
Description
When the Claude Code CLI requests user permission, the input stream closes if the user waits roughly 60 seconds before responding. After that the entire task fails even though the CLI never exited voluntarily.
From our testing, the CLI is still running, but the transport closes its input and ends the run once the permission wait hits the hard-coded timeout. We need permission prompts to remain pending indefinitely (or at least for many minutes) so a user can come back and approve later.
Impact
Long-running permission dialogs become unusable—any delay beyond ~60 seconds aborts the run. This makes it impossible to hold a prompt while user context switching, causing lost work.
Configuration Attempts
We tried setting CLAUDE_CODE_STREAM_CLOSE_TIMEOUT but it didn't affect this behavior. Is there a supported way to configure or disable this timeout?