Skip to content

fix(windows): route background agent auth checks through aoprocess to suppress console window flashes#3006

Open
sriram687 wants to merge 1 commit into
AgentWrapper:mainfrom
sriram687:terminal-flash
Open

fix(windows): route background agent auth checks through aoprocess to suppress console window flashes#3006
sriram687 wants to merge 1 commit into
AgentWrapper:mainfrom
sriram687:terminal-flash

Conversation

@sriram687

Copy link
Copy Markdown

Description

This PR addresses a Windows-specific user experience issue where brief command prompt window flashes would appear on the user's desktop whenever the local daemon ran background status/auth probes for registered agent CLIs.

Root Cause

Several agent adapters (specifically authprobe.go, claudecode.go, codex.go, copilot/auth.go, kilocode/auth.go, and opencode.go) were calling the standard Go library exec.CommandContext(...) directly to probe status. On Windows, executing shell commands from a background/GUI application (like the AO daemon or the Electron wrapper) without specifying console window creation flags forces Windows to draw and temporarily flash a console window.

Solution

We swapped direct standard library exec.CommandContext(...) usage for the project's native aoprocess.CommandContext(...) helper (from backend/internal/process). The aoprocess package properly configures Windows execution flags (windows.CREATE_NO_WINDOW and HideWindow: true) to ensure all background child processes run completely invisibly.

Changes

The following files were updated to import aoprocess and call aoprocess.CommandContext(...) for background probes:

  • backend/internal/adapters/agent/authprobe/authprobe.go
  • backend/internal/adapters/agent/claudecode/claudecode.go
  • backend/internal/adapters/agent/codex/codex.go
  • backend/internal/adapters/agent/copilot/auth.go
  • backend/internal/adapters/agent/kilocode/auth.go
  • backend/internal/adapters/agent/opencode/opencode.go

Verification

Screenshot 2026-07-23 134010

Copilot AI review requested due to automatic review settings July 23, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@somewherelostt

Copy link
Copy Markdown
Collaborator

Thanks for contributing to Agent Orchestrator.

This PR is being picked up by the current external contributor on-call pair:

If someone is already working on this, please continue as usual.
The on-call pair is added for visibility, tracking, and support, not to take over the work.
If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @Pulkit7070 here.

For faster context or live questions, you can also join the AO Discord.

Join the session here:
https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

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.

5 participants