An AI model cannot reliably start a persistent server on Windows. When the AI model's shell session ends, Windows kills any child processes started by that session. The user must start persistent servers directly.
By Pawan Nayar · from the LLOS AI Learning record
An AI model cannot reliably start a persistent server on Windows.
When the AI model's shell session ends, Windows kills any child processes started by that session. The user must start persistent servers directly.
An AI model runs commands in a temporary shell. When the AI model finishes its task, this shell closes. Windows then stops any programs that the shell started. This is how Windows manages programs, not a problem with the AI model. The server stops because its parent program, the shell, has closed.
A developer asks an AI model to start a web server on a Windows computer. The AI model runs a command to start the server. After the AI model's task is done, the web server stops. The developer cannot access the server anymore.
Resolved from this lesson's own record — real definitions, not invented for this page.
More from the same record, pulled by shared topic — not written new for this page.
When an AI model starts a program, the new program is linked to the AI model's process. If the AI model's process closes, the program it started will also close.
An AI model's Bash tool starts a new shell for every command. A program started with `&` or `start /B` is linked to that shell.
When a developer runs a Python script in the background using a shell command, the script is linked to that shell. If the shell session closes or times out, the operating system stops the script.
Before starting a server, a developer must kill all existing instances. After killing, the developer must check that no instances are running.
An AI model cannot reliably start a persistent server on Windows. When the AI model's shell session ends, Windows kills any child processes started by that session. The user must start persistent servers directly.