diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 09:41:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 09:41:32 -0300 |
| commit | 0fb10f2748bc1593b9c0dda0e74b53cb66a69a95 (patch) | |
| tree | 4cd15cc3ca1b9eb17c66a518d18b8126fb1c2aaf /test/process/tty_boot.zig | |
| parent | aa3ff349f840f568ea0f052c1f051cdc0dbb18c1 (diff) | |
| download | pardes-0fb10f2748bc1593b9c0dda0e74b53cb66a69a95.tar.gz pardes-0fb10f2748bc1593b9c0dda0e74b53cb66a69a95.zip | |
exec, replica: a line run again in its directory's finished command pane waits for the session's order from the first line of that branch, at a stop may_wait lists (`run a command`), as a new command pane's run waits at `open a terminal` (agent T23's find: the no-pdf soak, seed 3 rtt 80, had one client key stop at `spawn`, which may_wait does not list, so the run failed); NOT AN ORDERING FAULT: the speculation was refused and rolled back as it should be (the reused pane's emulator writes refused by feedOutput, `a terminal's output`, and the spawn effect stopped by its host entry, a keeps_stopping one, which as the last poison names the stop), but it ran the reused pane's whole rerun first (its command line freed and set, its last run's errors taken out of the live messages, its diff output dropped, its mode, its /log notes), all of it rolled back, and named the stop by whichever refusal came last; a new pane's run (panes.newCommand) has always stopped at its first line; THE FIX: exec.runCommand's reuse branch asks `authorityOnly("run a command")` before it changes anything, and may_wait lists the stop on a new `On.command` (a pane in a directory with a finished command pane), which the walk stands in none of: the soak judges it by name, and the new test by its row; (a far client reaches that branch only where its speculation passes missingDir: a session whose host has no spawn entry, or a directory that is no local one, `/virtual/...`; elsewhere the directory's `kind` stops it first, as `Exec *`'s row says); RUN (TEST FIRST): replica.zig "a far client's line run again in its directory's finished command pane waits for the session's order, at a stop may_wait lists: ..." runs `Exec true` at the session (a command pane, exited and at its end of file), joins a client, and has the client run `Exec true` from the file's pane: asks one stop, at a name may_wait lists, then the session's order runs it again in that pane and the client agrees: fails on M2 (stopped at `a terminal's output`), passes now; a user could hit it as a far client rerunning a build from a finished command pane: the soak's failure only (the input waited a round trip either way, and nothing it changed outlived the rollback); NEW HOT PATHS: none (one flag read in a branch that starts a process); GATES: shell-test 1379/1382 (3 skipped: +2, this test and the preview one before it), the far-client tests 25/25 (the every-word-and-key walk among them, no row stale); load 4.7 to 6.8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test/process/tty_boot.zig')
0 files changed, 0 insertions, 0 deletions
