Files
DeepSeek-Reasonix/internal/platform/terminal/busy_windows_test.go
T
yhh 83bdeb81f0 feat(studio): the workbench gets a terminal of your own, as the Terminal board draws it
A fourth kind of tab opens a real shell (ConPTY on Windows, a pty elsewhere) in
the project folder, outside the model's permissions and sandbox and with the
host's provider keys left out of its environment. The kernel keeps each shell's
output, so a tab left or a window reloaded comes back as it was; a tab is named
for the command submitted while the shell is busy and carries a blue dot, and
closing a busy one asks first.

Also: the composer's note stack no longer clips to a few pixels when it holds
two notes, which left the second one overlapping the input.
2026-11-06 04:44:41 -08:00

24 lines
624 B
Go

//go:build windows
package terminal
import "testing"
func TestBusyOnReadsTheConsoleNotTheParentChain(t *testing.T) {
const console = 77
tree := []proc{
{10, "bash.exe", console}, {11, "bash.exe", console}, {12, "conhost.exe", 0},
{20, "sleep.exe", 99},
}
if busyOn(10, tree) {
t.Fatal("a bash behind its launcher reported busy while idle, or another console's process was counted")
}
tree = append(tree, proc{21, "sleep.exe", console})
if !busyOn(10, tree) {
t.Fatal("a command attached to the shell's console did not report busy")
}
if busyOn(99, tree) {
t.Fatal("an unknown root reported busy")
}
}