fix(runner): hide Windows background bridge consoles - #175
Open
realmroot[bot] wants to merge 1 commit into
Open
realmroot[bot] wants to merge 1 commit into
realmroot[bot] wants to merge 1 commit into
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
any-managed-agents | 67979d7 | Sep 13 2026, 01:46 PM |
realmroot
Bot
force-pushed
the
fix/windows-hide-background-probes
branch
from
September 13, 2026 13:35
90bfe5e to
8cb6294
Compare
Contributor
Author
|
Follow-up for the Windows cancellation review:
Fresh verification after the update:
Local host is still non-Windows, so live Windows GUI/process execution remains delegated to Windows CI. |
realmroot
Bot
force-pushed
the
fix/windows-hide-background-probes
branch
from
September 13, 2026 13:45
8cb6294 to
67979d7
Compare
Contributor
Author
|
Rejection follow-up addressed on final SHA What changed after review rejection:
Bounded local verification, run sequentially after the process-spike observation:
Affected Windows CI on final SHA:
The PR body now includes the concrete Windows reviewer journey and explicitly distinguishes automated OS/process tests from unperformed interactive GUI/no-window observation. |
This branch has not been deployed
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.
Summary
CREATE_NO_WINDOW/HideWindowwhile preserving Job Object cleanupprocesstree.Start, so existing visible-session CTRL_BREAK then Job Object cancellation semantics remain unchangedFixes #172.
Cancellation Semantics
Startis unchanged for interactive/runtime session work: it keepsCREATE_NEW_PROCESS_GROUP, does not setCREATE_NO_WINDOW, andStopstill attemptsGenerateConsoleCtrlEvent(CTRL_BREAK_EVENT, pid)before Job Object termination.StartBackgroundis only for hidden, non-interactive probes/bridge inventory children. BecauseCREATE_NO_WINDOWchildren do not share the caller console,Stopdoes not claim graceful CTRL_BREAK delivery for them; it cleans the process tree through the Windows Job Object.exec.CommandContext(node, -p, process.execPath)commands with hidden window attributes.Verification
Already-passing broader checks were reused after the resource spike observation; final local checks were bounded and sequential.
Actual local OS tests/checks on this darwin host:
rtk go test -p=1 ./internal/sys/processtree ./internal/runtimefromcmd/enbor-runner(62 passed in 2 packages)rtk git diff --checkrtk gofmt -l cmd/enbor-runner/internal/sys/processtree/process_windows_test.goWindows compile/link checks on this host:
rtk env GOOS=windows GOARCH=amd64 go test -c -o /tmp/enbor-processtree.test.exe ./internal/sys/processtreertk env GOOS=windows GOARCH=amd64 go test -c -o /tmp/enbor-runtime.test.exe ./internal/runtimeWindows behavior test added for CI/native Windows execution:
TestStopCloseTerminatesBackgroundWindowsProcessTreestarts a hidden background root process, waits for a ready file and descendant PID, opens a descendant process handle before cleanup, callsStop(0)andClose(), then asserts both the root process and descendant handle exit. The child is bounded (ping -n 30) and there is no recursive spawn.Windows Reviewer Journey
Stop/Close.Startpath and is not hidden by this PR.Limits
🤖 Created by Ravi Shah via Realmroot