You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 533cfe8
Browse filesBrowse the repository at this point in the historyBrowse files
fix: tidy the run signal-exit notice and the stdin source assertion
- Load `unsent-memory` alongside the 2s mirror drain on SIGINT/SIGTERM, so
only the local count runs after it.
- Assert the stdin guard and the `readRunStdin(` call separately instead of
pinning the newline and indent between them.
- Test `workspace list --json` through the yargs command, not only `runList`.
- Docs: a slow pipe reaching `run` through a socket (for example over `ssh`)
is subject to the same 3s wait.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011chv9Rmu7jQXokum1WNcs7
`run` reads piped input to the end, however long the command before the pipe takes. One exception: when `run` already has a message or `--command` and its stdin is a socket, which is what an agent's shell tool or a Node `spawn` hands a child, it waits only 3 seconds for the first byte and then continues without stdin. Set `ALTIMATE_RUN_STDIN_WAIT_MS` to change that wait, or to `0` to always wait. A caller that never writes to or closes stdin, and whose stdin is not a socket (for example a pipe on Windows), should redirect it from an empty source: `< /dev/null`, or `< NUL` in `cmd.exe`.
193
+
`run` reads piped input to the end, however long the command before the pipe takes. One exception: when `run` already has a message or `--command` and its stdin is a socket, which is what an agent's shell tool or a Node `spawn` hands a child, it waits only 3 seconds for the first byte and then continues without stdin. That can also catch a slow pipe that reaches `run` through a socket, such as `slow-cmd | ssh host altimate-code run "summarize"`. Set `ALTIMATE_RUN_STDIN_WAIT_MS` to change that wait, or to `0` to always wait. A caller that never writes to or closes stdin, and whose stdin is not a socket (for example a pipe on Windows), should redirect it from an empty source: `< /dev/null`, or `< NUL` in `cmd.exe`.
194
194
195
195
For CI pipelines and headless automation, see [CI & Automation](ci-headless.md).
0 commit comments