Skip to content

fix(windows): start children without a console window - #13

Merged
Snider merged 1 commit into
mainfrom
fix/windows-no-console-window
Nov 24, 2026
Merged

Snider merged 1 commit into
mainfrom
fix/windows-no-console-window

Conversation

@Snider

@Snider Snider commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

applyProcessGroup was a no-op on Windows. So every command a GUI app (built -H windowsgui) ran through go-process flashed up an empty black console window. Output is always piped back to the service, so the child never needs a console. This sets CREATE_NO_WINDOW and HideWindow.

Found by Manga Shelf (Snider/manga), which runs mangadex-dl for each download.

Checked: GOOS=windows go vet ./... passes, the Windows test binary compiles, and the macOS tests pass. The Windows-only test now asserts the flags. Not checked: this CI has no Windows runner, so it hasn't run on a real Windows machine.

🤖 Generated with Claude Code
Co-Authored-By: Virgil virgil@lethean.io

Summary by CodeRabbit

  • Bug Fixes
    • On Windows, child processes now run without opening a separate console window, reducing unwanted visual interruptions. This change applies to processes started by the application on Windows; behaviour on other platforms is unchanged.

applyProcessGroup was a no-op on Windows, so every command a GUI app
(-H windowsgui) ran through go-process flashed up an empty console window.
Output is always piped back to the service, so the child never needs one:
CREATE_NO_WINDOW + HideWindow. Found by Manga Shelf (Snider/manga), which
runs mangadex-dl for each download.

Co-Authored-By: Virgil <virgil@lethean.io>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

On Windows, applyProcessGroup now configures child processes to start without a console window. The test checks that SysProcAttr enables HideWindow and includes the createNoWindow flag.

Changes: Windows process setup

Layer / File(s) Summary
Configure child process window settings
go/platform_windows.go, go/platform_windows_test.go
applyProcessGroup sets HideWindow and the createNoWindow flag. The test verifies both settings.
Merge Risk: Minimal · up to f63cb

This change stops child processes from flashing a console window on Windows, which is a small and contained behavior change. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: Windows child processes now start without a console window. The raw summary confirms that applyProcessGroup on Windows now sets HideWindow and CREATE_NO_WINDOW, which …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Windows child processes now start without a console window. The raw summary confirms that applyProcessGroup on Windows now sets HideWindow and CREATE_NO_WINDOW, which matches the title. The title is short, specific and follows a conventional commit style. The 'fix(windows):' prefix fits the objective of stopping an empty console from flashing.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c8b119dc-069e-4d22-acc6-bb3437b5eb33
Commits

Reviewing files that changed from the base of the PR and between 52c3b8b and f63cb92.

Files selected for processing: 2

  • go/platform_windows.go
  • go/platform_windows_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Snider
Snider merged commit 16f4a72 into main Nov 24, 2026
5 checks passed
@Snider
Snider deleted the fix/windows-no-console-window branch November 24, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant