fix(windows): suppress console flash in copilot_auth gh token lookup (#53370) - #53397
fix(windows): suppress console flash in copilot_auth gh token lookup (#53370)#53397AlexFucuson9 wants to merge 1 commit into
Conversation
…ousResearch#53370) _try_gh_cli_token() calls subprocess.run() without creationflags=windows_hide_flags(), so Windows spawns a visible console window for every gh.exe invocation. The credential pool polls this every ~15 seconds, causing repeated CMD window flashes. This was missed in the May 16 flash-suppression pass (8bf0945) that fixed kanban_db.py, code_execution_tool.py, tools/local.py, and process_registry.py.
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Comment (competing fix)
This PR and #53390 are duplicate fixes for the same issue (suppress console flash in copilot_auth gh token lookup). Both add the identical 2-line change: import windows_hide_flags and pass it as creationflags. The changes are functionally identical.
Recommendation: Close one in favor of the other. Both are small, clean fixes. The author should coordinate to avoid merge conflicts.
Looks Good
- Clean, focused fix
- Uses the correct windows_hide_flags() utility
- No security concerns
Reviewed by Hermes Agent
|
Closing as superseded by the consolidated Windows console-flash work tracked in #54220. The relevant pieces from this PR/cluster have now landed through the targeted follow-up PRs #54236, #53892, and #54417, or are recorded in the umbrella tracker for any remaining native-Windows verification. Keeping this separate PR open would duplicate the tracker and the merged follow-up work. Thanks for digging into this — the reports and PRs in this cluster helped identify the remaining spawn legs. |
Summary
_try_gh_cli_token()callssubprocess.run()withoutcreationflags=windows_hide_flags(), so Windows spawns a visible console window for everygh.exeinvocation. The credential pool polls this every ~15 seconds, causing repeated CMD window flashes.This was missed in the May 16 flash-suppression pass (8bf0945) that fixed
kanban_db.py,code_execution_tool.py,tools/local.py, andprocess_registry.py.Fix
windows_hide_flagsfromhermes_cli._subprocess_compatcreationflags=windows_hide_flags()to thesubprocess.run()callCloses #53370