GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(windows): hide npm launcher proxy child by Ingwannu · Pull Request #1268 · lidge-jun/opencodex

Conversation

@Ingwannu

@Ingwannu Ingwannu commented Aug 8, 2026 •
edited by Wibias
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Summary

  • Set windowsHide: true on the final Node-to-Bun npm launcher spawn.
  • Prevent headless Windows starts and restarts from allocating a visible, closable console for the long-running proxy child.
  • Add a source-scoped regression for the exact Bun child spawn boundary.

Closes #1236

Verification

  • taskset -c 0-1 bun test tests/ocx-launcher-source.test.ts tests/ocx-launcher-runtime.test.ts tests/shutdown-launcher.test.ts — 13 passed and 2 platform skips.
  • taskset -c 0-1 bun run typecheck — passed.
  • taskset -c 0-1 bun run privacy:scan — passed.
  • The launcher integration checks cover signal forwarding, proxy teardown, and Codex config restoration after the spawn-option change.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Summary by CodeRabbit

  • Bug Fixes
    • Prevented an unnecessary console window from appearing when launching the application headlessly on Windows.
    • Preserved standard input, output, and error stream behavior for the long-running process.
  • Tests
    • Added coverage to verify the Windows launch behavior and inherited console streams.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Ingwannu
fix(windows): hide npm launcher proxy child
4c40c56
@coderabbitai

coderabbitai Bot commented Aug 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The npm launcher now sets windowsHide: true when it spawns Bun. A source-level test verifies that the final spawn preserves inherited stdio and enables Windows console suppression.

Changes

Windows launcher behavior

Layer / File(s) Summary
Configure and validate hidden Bun spawning
bin/ocx.mjs, tests/ocx-launcher-source.test.ts
The Bun child spawn now sets windowsHide: true while retaining inherited stdio. The source-level test verifies both spawn options.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • lidge-jun/opencodex#568: Updates and tests the ocx launcher child-process spawn behavior.
  • lidge-jun/opencodex#861: Modifies the same launcher and source test around Bun child-process behavior.
  • lidge-jun/opencodex#887: Modifies the same launcher and source test around Bun runtime launching.

Suggested reviewers: lidge-jun, wibias

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes implement issue #1236 by adding windowsHide: true to the Bun spawn and adding a regression test for the required behavior.
Out of Scope Changes check ✅ Passed The changes are limited to the npm launcher and its regression test, with no unrelated code or scope expansion.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the Windows fix to hide the npm launcher proxy child, matching the main change.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/fix-1236-windows-launcher-hide

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Ingwannu Ingwannu mentioned this pull request Aug 8, 2026
[Bug][Windows] Visible console window pops up when the proxy starts/restarts from a headless parent (npm launcher spawn missing windowsHide) #1236
Closed
2 tasks done
@Ingwannu
Ingwannu requested review from Wibias and lidge-jun August 8, 2026 06:41
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the bug Something isn't working label Aug 8, 2026
This was referenced Aug 8, 2026
[Bug][Windows] Transient PowerShell console popup from proxy-internal identity lookup #1278
Closed
fix(windows): eliminate console windows from proxy-internal identity & process lookups #1279
Closed
@lidge-jun

lidge-jun commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Landed on dev as dd02029, rebased onto the current head with your authorship preserved.

Independent security review passed clean: the child handle is still retained, signal forwarding and exit/error handling are unchanged, and stdio stays inherited — windowsHide only suppresses the console allocation. Full suite green on the rebased head (10189 pass, 0 fail).

Thanks — the test distinguishing this long-running spawn from the helper spawns is what made the scope obvious.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun lidge-jun closed this Aug 9, 2026
@Wibias
Wibias deleted the agent/fix-1236-windows-launcher-hide branch August 9, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Wibias Wibias Awaiting requested review from Wibias

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Ingwannu @lidge-jun
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.