Sitelet https://github.com/Ameyanagi/aibo/pull/27
Skip to content

Prevent Windows agent console flashes - #27

Merged
Ameyanagi merged 1 commit into
mainfrom
fix/windows-agent-console-flash
Aug 4, 2026
Merged

Ameyanagi merged 1 commit into
mainfrom
fix/windows-agent-console-flash

Conversation

@Ameyanagi

Copy link
Copy Markdown
Owner

Summary

  • launch every remaining Windows console helper with CREATE_NO_WINDOW
  • strengthen the agent PowerShell regression test to query the console subsystem directly
  • add a Windows regression test for the shared hidden-process constructor

Validation

  • cargo test --bin aibo --locked
  • cargo test -p aibo-tools --locked
  • cargo fmt --all
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 4, 2026 05:10

Copilot AI 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.

Pull request overview

This PR centralizes Windows child-process spawning behind a CREATE_NO_WINDOW constructor to prevent transient console windows (“console flashes”) when the GUI-subsystem binary launches console helpers, and strengthens regression coverage by asserting against the console subsystem directly.

Changes:

  • Added a Windows-only hidden_windows_command() helper that applies CREATE_NO_WINDOW in one place.
  • Updated Windows helper call sites (tasklist, taskkill, cmd) to use the hidden-process constructor.
  • Strengthened/added Windows regression tests to validate “no console” via GetConsoleWindow().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main.rs Adds hidden_windows_command() and a Windows regression test; updates Windows helper spawns to use CREATE_NO_WINDOW.
crates/aibo-tools/src/shell.rs Updates the Windows PowerShell regression test to query GetConsoleWindow() instead of MainWindowHandle.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ameyanagi
Ameyanagi merged commit 428fef6 into main Aug 4, 2026
15 checks passed
@Ameyanagi
Ameyanagi deleted the fix/windows-agent-console-flash branch August 4, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants