Skip to content

Extract Unix Python stdin protocol#121

Merged
t-kalinowski merged 1 commit into
mainfrom
extract-unix-python-stdin
Jun 18, 2026
Merged

Extract Unix Python stdin protocol#121
t-kalinowski merged 1 commit into
mainfrom
extract-unix-python-stdin

Conversation

@t-kalinowski

Copy link
Copy Markdown
Member

Summary

Extracts the Unix-specific Python stdin and PTY turn-input protocol from python_session.rs into python_session/unix_stdin.rs.

This makes the CPython callback facade easier to inspect while keeping the Unix stdin mechanics in one focused module.

User Facing Changes

No user-facing behavior changes are intended.

Internal Changes

  • Moves Unix turn input normalization, PTY feed demand handling, stdin discard after interrupts, protocol failure handling, and stdin read accounting into unix_stdin.
  • Keeps python_session.rs responsible for CPython callbacks, runtime setup, and cross-platform branching.
  • Leaves Windows turn-input handling unchanged.

Additional Notes

The split is intended to preserve existing worker protocol messages, PTY sequencing, prompt emission, and stdin-wait behavior.

@t-kalinowski t-kalinowski marked this pull request as ready for review June 18, 2026 19:42
@t-kalinowski t-kalinowski merged commit ae27402 into main Jun 18, 2026
5 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