Keep dev and preview servers in the foreground for Windows agents #18029

Open
renovate-bot opened 12:33pm on September 16, 2026 wants to merge 51 Ξ” into withastro/astro main from
triage-18019

Pull Request Overview

  • Opened on September 16, 2026
  • Status Open
  • Commit count 8 with first commit September 16, 2026

Total Delta

51 Total Diff Delta

Open Days

Open 2 weekdays

Test Delta

11 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 3 commits before pull request opened for review
 
0.0 days Awaiting first review
 
2.4 days Revising work with 5 commits in response to 0 reviews that left 3 comments

Total time for pull request still awaiting merge: 2.4 business days

Author avatar

Keep dev and preview servers in the foreground for Windows agents

Changes


  • Fixes #18019 by keeping astro dev and astro preview in the foreground when Astro detects an AI agent on Windows.

  • Windows Job Objects can terminate detached descendants when the agent command exits. Agents can manage the foreground process directly, while --background remains available as an explicit opt-in. Other platforms are unchanged.

Testing


  • Adds coverage for disabling agent-inferred backgrounding on Windows while preserving it on macOS and Linux.

Docs


  • No docs update is needed because the existing --background interface is unchanged.

Comments Threads Pending Resolution

Resolved Comment Threads

No resolved comments have been left on this PR.