Skip to content

fix(pi): stop session when stdin pipe breaks to prevent hung turns#6

Merged
bscholar-tt merged 1 commit into
mainfrom
bscholar/lint
May 28, 2026
Merged

fix(pi): stop session when stdin pipe breaks to prevent hung turns#6
bscholar-tt merged 1 commit into
mainfrom
bscholar/lint

Conversation

@bscholar-tt
Copy link
Copy Markdown
Owner

Previously the stdin writer fiber silently ignored errors, so if the pipe to Pi broke the prompt was lost and the turn hung indefinitely waiting for an agent_end that would never arrive. Mirror the stdout reader's ensuring pattern to stop the session on stdin failure.

What Changed

Why

UI Changes

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Previously the stdin writer fiber silently ignored errors, so if the
pipe to Pi broke the prompt was lost and the turn hung indefinitely
waiting for an agent_end that would never arrive. Mirror the stdout
reader's ensuring pattern to stop the session on stdin failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bscholar-tt bscholar-tt merged commit fa54115 into main May 28, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant