Repository navigation
Conversation
Detached from the caller's console and process group, and with this process's standard handles made non-inheritable first: attached, Studio died a second after it connected; inheriting the caller's output pipe, it held a shell that read the CLI's output until Studio exited. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while running the Windows checklist in
CLAUDE.mdon 3.1.0 (Windows 11, Studio 0.745).The bug
open --copy(andopen) on Windows:Studio connected (copy …)thenStudio disconnected (copy …)in the same second; Studio's own log stops mid-line with no shutdown, and its process is gone.cmd /c startwas spawned attached to the caller's console and process group, and Studio went with them when the CLI exited. 2.1.1 launched with Node'sdetached: trueand didn't do this.cmdand then Studio inherit the caller's output pipe. Any shell that reads the CLI's output (studio-sync open --copy | tail, an agent's tool call) waits on that pipe until the copy is closed.The fix
In
windows_launch:creation_flags(DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP), and before spawning, clearHANDLE_FLAG_INHERITon this process's standard handles (GetStdHandle/SetHandleInformationfrom kernel32, no new crate).Checked on Windows
open --copy: returns in ~9 s, the copy stays open and connected after the command ends.%LOCALAPPDATA%\Roblox\Plugins, skill), live sync including a CRLF script (waitin 0.3 s),build(finds rokit'srojo),snapshot --from <placeId>,close(kills Studio, deletes the file and.lock, moves the AutoRecovery file to backups) all work.cargo fmt --checkandcargo clippy --all-targetsare clean. I did not runcargo test.🤖 Generated with Claude Code