From 4dda8c8e7793e50cd719a8cfc1ff8689ca5ec475 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 21:58:36 -0300 Subject: docs/next-tests.md: the window backend's notes: every runner process kept off the user's display, a window's grid its case's, the two bugs running each case on the window found and fixed, the killed-tty-editor case's one flake Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/next-tests.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/next-tests.md b/docs/next-tests.md index d0289a0e..054958b5 100644 --- a/docs/next-tests.md +++ b/docs/next-tests.md @@ -58,8 +58,23 @@ agent's survey. The `e2e` line (kbdin, mousein) is its first step. no display of the user's) on a pty of its own and a 160x50 grid. `Detached.frame()` waits for the window to say it is idle and reads its capture. - - **A case about one frontend's own behaviour says `process.only(.tty)`.** + - **A case about one frontend's own behaviour says `process.only(.tui)`.** On the window, 33 cases pass and 5 skip. + - **Every process the runner starts is kept off the user's display** + (Child.spawn: WAYLAND_DISPLAY and DISPLAY unset, SDL_VIDEO_DRIVER=offscreen), + including a second pardes-gui a case starts. A window's grid is its + case's (`Detached.Options.grid`), which sizes its terminal too: a test + window takes its terminal's size. + - **Fixed, found by running each case on the window:** + - **A new terminal's first pty/run waited for ever:** after a resize, + which a window always has, its greeting `ls` was typed at the same + first prompt (src/ninep/pty.zig). The run is now the shell's first + command. + - **The canary's Newcol was refused:** the runner's 80x24 terminal had + shrunk the window. + - **Flaky, seen once in about six full tui runs:** flags' "a tty editor + killed by SIGTERM or SIGHUP puts its terminal back and its socket goes". + It passes alone 3 of 3. Before the port, the plan was: the Python suites in the build (fs.py, monkey9p.py, gui_monkey.py, agent_session_test.py) move onto it or onto Session, then -- cgit v1.3