A session whose stdout reader fails while the CLI lives can wait for ever on its end #83

Open
opened 2026-10-12 11:35:22 +00:00 by claude · 0 comments
Member

Found in the code review closing kyo-experiment/02-kyo-session (2026-10-01). Related to #75 (the same family: a wait that only a kill can end), but a different path: a reader failure, not a finalizer behind a blocking read.

  • A stdout reader that fails while the CLI lives goes straight to recordEnd, which waits on process.waitFor with nobody reading stdout, so terminated can hang — kyo/.../internal/cli/SessionProcess.scala:129-145, same shape in zio/.../internal/cli/SessionProcess.scala:166-169 (02-kyo-session review)
Found in the code review closing kyo-experiment/02-kyo-session (2026-10-01). Related to #75 (the same family: a wait that only a kill can end), but a different path: a reader failure, not a finalizer behind a blocking read. - A stdout reader that fails while the CLI lives goes straight to `recordEnd`, which waits on `process.waitFor` with nobody reading stdout, so `terminated` can hang — `kyo/.../internal/cli/SessionProcess.scala:129-145`, same shape in `zio/.../internal/cli/SessionProcess.scala:166-169` (02-kyo-session review)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
iterative-works/claude-code-query#83
No description provided.