diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 04:54:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 04:54:48 -0300 |
| commit | 2488df529cde2994c37f385cefca4db1837ed9a3 (patch) | |
| tree | 1ce74ed008f98efde5a5a79f24b2e91ae0f0b998 /test/fs.py | |
| parent | e7aaeca8e12887e2b90aae257c41efce6847c26d (diff) | |
| download | pardes-2488df529cde2994c37f385cefca4db1837ed9a3.tar.gz pardes-2488df529cde2994c37f385cefca4db1837ed9a3.zip | |
/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 <[email protected]>
Diffstat (limited to 'test/fs.py')
| -rw-r--r-- | test/fs.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |
