revert(windows): roll back terminal-popup PRs #53791 #53810 #53829 - #53853
Merged
Conversation
Contributor
|
Contributor
🔎 Lint report:
|
| Rule | Count |
|---|---|
unresolved-attribute |
1 |
First entries
tools/environments/local.py:758: [unresolved-attribute] unresolved-attribute: Unresolved attribute `_hermes_pgid` on type `Popen[str]`
✅ Fixed issues (10):
| Rule | Count |
|---|---|
unresolved-attribute |
4 |
unresolved-import |
3 |
unresolved-reference |
2 |
invalid-argument-type |
1 |
First entries
tests/test_no_visible_console_spawns.py:24: [unresolved-import] unresolved-import: Cannot resolve imported module `pytest`
plugins/memory/mem0/_setup.py:527: [unresolved-reference] unresolved-reference: Name `windows_hide_flags` used when not defined
tests/scripts/test_windows_footgun_subprocess_rule.py:30: [unresolved-attribute] unresolved-attribute: Attribute `exec_module` is not defined on `None` in union `Loader | None`
tests/scripts/test_windows_footgun_subprocess_rule.py:26: [invalid-argument-type] invalid-argument-type: Argument to function `module_from_spec` is incorrect: Expected `ModuleSpec`, found `ModuleSpec | None`
tests/scripts/test_windows_footgun_subprocess_rule.py:15: [unresolved-import] unresolved-import: Cannot resolve imported module `pytest`
tests/hermes_cli/test_gateway.py:892: [unresolved-import] unresolved-import: Cannot resolve imported module `psutil`
tests/test_hermes_bootstrap.py:248: [unresolved-attribute] unresolved-attribute: Unresolved attribute `_syscmd_ver` on type `<module 'platform'>`.
plugins/platforms/photon/cli.py:398: [unresolved-reference] unresolved-reference: Name `windows_hide_flags` used when not defined
tests/test_hermes_bootstrap.py:245: [unresolved-attribute] unresolved-attribute: Module `platform` has no member `_syscmd_ver`
tests/scripts/test_windows_footgun_subprocess_rule.py:30: [unresolved-attribute] unresolved-attribute: Attribute `loader` is not defined on `None` in union `ModuleSpec | None`
Unchanged: 6061 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
19 tasks
1 task
lpaiu-cs
added a commit
to lpaiu-cs/hermes-agent
that referenced
this pull request
Jun 28, 2026
…ch#53853 revert The first cut routed these probes through _subprocess_compat.run/popen (the NousResearch#53810 chokepoint), but NousResearch#53853 reverted NousResearch#53791/NousResearch#53810/NousResearch#53829 — so those calls would now AttributeError on main (the wrappers are gone; windows_hide_flags() survived). Switch the two sites to pass creationflags=windows_hide_flags() directly, the same surviving-helper approach NousResearch#53892 took post-revert. Also drop the now-moot footgun changes: the console-spawn rule was reverted, so adding tui_gateway to its --all roots no longer buys anything (and would only surface unrelated, hasattr-guarded signal handlers in entry.py). Net change is now just the two gateway probe sites + the test, which asserts the no-window flag is passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Closed
2 tasks
pai-scaffolde
pushed a commit
to pai-scaffolde/hermes-agent
that referenced
this pull request
Jun 28, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 2ecca1e. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 5db1430. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit ef17cd2.
3 tasks
waefrebeorn
pushed a commit
to waefrebeorn/slermes
that referenced
this pull request
Jul 2, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit bc1c8f2. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 40591a4. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit c2eab69.
Jasper6439
pushed a commit
to Jasper6439/hermes-agent
that referenced
this pull request
Jul 5, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 2ecca1e. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 5db1430. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit ef17cd2.
habarmc1223-sudo
pushed a commit
to habarmc1223-sudo/hermes-agent-fluxmem
that referenced
this pull request
Jul 8, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 710ac05. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 3db485a. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit 80b090d.
santhreal
pushed a commit
to santhreal/hermes-agent
that referenced
this pull request
Jul 13, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 12aa1c3. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit ec5d0c1. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit d0ffccd.
13 tasks
Gravezzz
pushed a commit
to Gravezzz/hermes-agent
that referenced
this pull request
Jul 21, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 2ecca1e. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 5db1430. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit ef17cd2.
leewenjie
pushed a commit
to leewenjie/hermes-agent
that referenced
this pull request
Aug 7, 2026
…Research#53810 NousResearch#53829 (NousResearch#53853) * Revert "fix(windows): capture is not a no-window boundary; route flashing spawns through chokepoint (NousResearch#53829)" This reverts commit 2ecca1e. * Revert "fix(windows): stop terminal-window popups from background spawns (NousResearch#53810)" This reverts commit 5db1430. * Revert "fix(windows): stop subprocess console-window popups + add CI guard (NousResearch#53791)" This reverts commit ef17cd2.
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
Reverts the four Windows terminal-popup PRs. They never fixed the reported symptom (
hermes update→ gateway restart still flashes and flurries on Windows), so we're resetting to baseline and will fix from a real Windows reproduction instead of more Linux-reasoned guesses.Why they failed: all four chased the wrong layer —
subprocess.*call sites reasoned about on Linux — while the actual flash lives elsewhere in the spawn chain (e.g. the gateway-restart watcher launched viasys.executable,.bat/VBS launchers, the uvpython.exere-exec, or the Electron desktop relaunch). The AST footgun checker is a call-site denylist that structurally cannot see those, so CI went green while the popup persisted. None of the four were ever run on native Windows.Reverts
ef17cd204)_subprocess_compat.run/popenwrappers +FreeConsolecatch-all +test_no_visible_console_spawns.py(5db1430af)2ecca1e7d)Kept (unrelated, not popup work):
dbbf102b8(strip VIRTUAL_ENV/CONDA_PREFIX from terminal env), #53616 (route build output to update.log). The pre-existingcheck-windows-footguns.pyrules (os.kill / signal / etc.) and its lint job are untouched — only the subprocess rule added in #53791 is removed.Validation
git revertx3check-windows-footguns.py --all(original rules)_subprocess_compat.pyhermes_bootstrap.pyFreeConsole/detach_orphan_consoleremovedNext (not in this PR)
Capture the flashing window's actual process on Windows (
cmd.exe/conhost.exe/python.exe/powershell) duringhermes update→ restart, identify the exact spawn leg, fix that, and verify the flurry is gone on Windows before merging.Infographic