From d067c77813f9ce9fcc64b33e6b0284510ac02185 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 03:35:43 -0300 Subject: A REPL paste's Enter waits on the clock, not on stale core time sendToRepl timed the Enter's fallback from stepped_ns, which in an idle detached session is as old as the last frame: the wait was over before it began and the \r went out with the paste, which 3.13's REPL then reads as part of it (4 of 5 sends lost their Enter). The wait now starts from the host's clock and is checked against now_ns; the REPL's echo of the paste still sends it sooner, and the wake is scheduled for the deadline. fs.py sends five times after two idle seconds each in a real pty. Co-Authored-By: Claude Opus 5.5 --- test/fs.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/fs.py b/test/fs.py index 9336a53a..bac7020c 100644 --- a/test/fs.py +++ b/test/fs.py @@ -515,6 +515,14 @@ def python_repl_runs_one_line(binary): record = b'MX0 0 0 10 print(6*7)\n' client.rpc(118, struct.pack('