Skip to content

fix(whatsapp): silent Node spawn on Windows via windows_detach_popen_kwargs (salvage #60647) - #60924

Merged
teknium1 merged 1 commit into
mainfrom
salvage-60647
Jul 8, 2026
Merged

fix(whatsapp): silent Node spawn on Windows via windows_detach_popen_kwargs (salvage #60647)#60924
teknium1 merged 1 commit into
mainfrom
salvage-60647

Conversation

@teknium1

@teknium1 teknium1 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Salvage of #60647 by @kyssta-exe — the WhatsApp bridge no longer spawns Node.js with a visible console window on Windows. Fixes #60508.

Root cause: the bridge connect() used bare start_new_session=True, the exact anti-pattern windows_detach_popen_kwargs() (hermes_cli/_subprocess_compat.py) exists to replace — on Windows that spawns a flashing console subject to CTRL-event kill loops.

Changes

  • plugins/platforms/whatsapp/adapter.py: swap start_new_session=True for **windows_detach_popen_kwargs() at the Node spawn. Windows gets detached creationflags; POSIX behavior is byte-identical (the helper returns start_new_session=True there).

Validation

Result
WhatsApp-related targeted tests pass
POSIX semantics unchanged (helper returns same kwarg)

Supersedes duplicate PRs #60516, #60605, #59285, #29807 targeting the same symptom — this variant is minimal and reuses the sanctioned shared helper. Contributor commit cherry-picked (re-attributed from the generic "Hermes Agent" identity to @kyssta-exe); rebase-merge.

Infographic

whatsapp-windows-detach

@alt-glitch alt-glitch added type/bug Something isn't working comp/plugins Plugin system and bundled plugins platform/whatsapp WhatsApp Business adapter platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows P3 Low — cosmetic, nice to have labels Jul 8, 2026
@teknium1
teknium1 merged commit e10c8eb into main Jul 8, 2026
31 checks passed
@teknium1
teknium1 deleted the salvage-60647 branch July 8, 2026 14:49

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Verdict: Comment (2-line fix — Windows silent Node spawn fix)

Scope

Windows-specific fix for silent Node spawn using windows_detach_popen_kwargs. Salvage of #60647.

Observations

  • Minimal OS-specific fix — well-scoped.
  • Uses the established windows_detach_popen_kwargs pattern.

Recommendation

Appropriate for salvage. Human reviewer familiar with Windows behavior should confirm.


Reviewed by Hermes Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have platform/whatsapp WhatsApp Business adapter platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: WhatsApp bridge spawn flashes a console window and crash-loops with STATUS_CONTROL_C_EXIT on native Windows

4 participants