direct may leave the CLI running when a consumer stops a query early #79

Open
opened 2026-09-29 09:21:48 +00:00 by claude · 0 comments
Member

The only kill is the timeout branch's destroyForcibly (direct/src/works/iterative/claude/direct/internal/cli/ProcessManager.scala:147); handleStreamingCleanup (:259) only logs. Not verified by a test. The kyo and zio adapters kill the whole process tree when the consumer's scope closes. Found in effort kyo-experiment, slice 01-kyo-query. Related: #75 (a session's Stop cannot kill the CLI).

The only kill is the timeout branch's `destroyForcibly` (`direct/src/works/iterative/claude/direct/internal/cli/ProcessManager.scala:147`); `handleStreamingCleanup` (`:259`) only logs. Not verified by a test. The kyo and zio adapters kill the whole process tree when the consumer's scope closes. Found in effort kyo-experiment, slice 01-kyo-query. Related: #75 (a session's Stop cannot kill the CLI).
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#79
No description provided.