From 2488df529cde2994c37f385cefca4db1837ed9a3 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 04:54:48 -0300 Subject: /index names a command's pane kind cmd, not term: a script picking a terminal by kind no longer picks a pane with no shell A command pane runs one line and takes no typing; a script choosing `$2=="term"` to type into got one. Its kind is now cmd; a shell's stays term. Co-Authored-By: Claude Opus 5.5 --- test/fs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/fs.py b/test/fs.py index 483ef320..f24e2550 100644 --- a/test/fs.py +++ b/test/fs.py @@ -393,7 +393,8 @@ def discovery(binary, embedded=False): while client.read('/log').decode().count('\nexit ') <= seen: assert time.monotonic() < deadline, 'diff -u never ended' time.sleep(.05) - ran = [row.split()[0] for row in client.read('/index').decode().splitlines() if row.split()[1] == 'term'] + # A command's pane is kind cmd, not term: no shell to type into. + ran = [row.split()[0] for row in client.read('/index').decode().splitlines() if row.split()[1] == 'cmd'] shown = client.read(f'/pane/{ran[-1]}/body').decode() assert '+++ diff-new.txt' in shown and '\t' not in shown, shown client.write(f'/pane/{ran[-1]}/look', b'+TWO\n') -- cgit v1.3