From a944d0f51b9579b6b95d4e2195b78252907bf993 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Thu, 29 Oct 2026 20:06:46 -0600 Subject: [PATCH] test(viewer): the fake agent waits a whole second (macOS's bash 3.2 takes no fraction) The portable macOS job: `read -t 0.1` is "invalid timeout specification" in /bin/bash 3.2, so the fake agent never said ready. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp --- crates/ledger-gui/tests/dock.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ledger-gui/tests/dock.rs b/crates/ledger-gui/tests/dock.rs index 12738d0..067ed35 100644 --- a/crates/ledger-gui/tests/dock.rs +++ b/crates/ledger-gui/tests/dock.rs @@ -105,8 +105,10 @@ echo "fake-agent in $(basename "$(pwd)")" trap 'echo got-interrupt' INT trap 'echo "size $(stty size)"' WINCH echo ready +# A whole second: macOS's /bin/bash is 3.2, whose `read -t` takes no +# fraction (the portable job found it). while true; do - if read -r -t 0.1 line; then echo "you-said: $line"; fi + if read -r -t 1 line; then echo "you-said: $line"; fi done "#, )