SIGN IN SIGN UP

fix(langchain): resolve race condition in `ShellSession.execute()` (#34535)

Addresses a flaky test

When executing `exit 1` as a startup command, the shell process
terminates immediately. The code then tries to write a marker command
(`printf '...'`) to stdin, but the pipe is already broken because the
shell has exited, causing `BrokenPipeError`.
M
Mason Daugherty committed
721bf15430ee231bfe50a8b7c6015d91a8d9a24a
Parent: dcfd9c0
Committed by GitHub <[email protected]> on 12/30/2025, 12:16:08 AM