fix: add creationflags to remaining tts_tool subprocess calls - #65667
fix: add creationflags to remaining tts_tool subprocess calls#65667AlexFucuson9 wants to merge 1 commit into
Conversation
Three subprocess calls in tts_tool.py were missing CREATE_NO_WINDOW: - Line 731: taskkill process tree termination - Line 2015: NeuTTS synthesis call - Line 2094: Piper voice download call All three have stdin=DEVNULL and capture_output=True, so they are non-interactive. windows_hide_flags() is already imported at line 55.
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Comment
Overview
- Fix: add
creationflagsto remainingtts_toolsubprocess calls - 3 additions, 1 deletion
Assessment
- Windows console flash prevention fix
- No security concerns
Reviewed by Hermes Agent
|
Thanks for identifying the three remaining direct calls; all three are still missing Problems
Suggested changes
This is an automated hermes-sweeper review. |
|
Closing after the class-level fix in PR #70205 (commit 0dbf639): Windows console flashes were caused by Hermes daemons running console-less (pythonw / DETACHED_PROCESS parents), forcing every console-subsystem child to allocate its own visible window. Main now launches every daemon (gateway, Scheduled Task, UAC handoff, dashboard, desktop backend) with a hidden console that all descendants inherit — so the spawn sites this PR flags no longer have a reachable flash under any shipped launch path (interactive terminals never flashed; children inherit the visible console there). The sites you patched were genuinely unflagged, and the diagnosis was sound against the old launch topology — the ground just moved under it. Rather than keep growing per-site flags across an unbounded set of leaf spawns, we're standardizing on the parent-console fix. If a flash reappears on current main under a shipped launch path, that's a new bug — please file it with the flashing process name. Thanks for the contribution and the Windows attention; sorry this one got mooted at the root. |
Summary
Three subprocess calls in
tools/tts_tool.pywere missingCREATE_NO_WINDOW(0x08000000), causing console window flashes on Windows:taskkillprocess tree termination (_terminate_command_tts_process_tree)All three have
stdin=DEVNULLandcapture_output=True, so they are non-interactive.windows_hide_flags()is already imported at line 55.Context
PR #64081 previously covered
tts_tool.pylines 2002 and 2087 (ffmpeg conversion calls), but missed these three calls. This PR closes the remaining gap.Changes
tools/tts_tool.py: +3 lines, -1 lineTest Plan