Conversation
When an AI agent is detected, astro dev and astro preview auto-background on macOS and Linux only. On Windows the server stays in the foreground so the agent can manage the process directly; --background remains the explicit opt-in. See withastro/astro#18029.
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Preview deployment ✅ Deployment complete!
|
ArmandPhilippot
left a comment
There was a problem hiding this comment.
Thanks Matthew, I left some suggestions for the Build with AI guide. Mostly nitpicks, so approving anyway.
| If you are not using an AI coding agent, the server starts in the foreground process and logs to the terminal. | ||
|
|
There was a problem hiding this comment.
Only if you apply my last suggestion:
There was a problem hiding this comment.
Just a reminder you forgot this suggestion.
I know the diff looks weird because this line haven't been updated... But we now say that on l367, so we don't want to duplicate the info.
After that, this PR is ready to go with the next release!
|
And I opened #14574 to fix the deploy preview, following the error message suggestion: https://github.com/withastro/docs/actions/runs/35225652603/job/105216447524 Edit: fix merged! If you update your branch this should work now! |
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Description (required)
Backgrounding on Windows does not work because the agent kills the process anyways. So don't attempt to background and allow the agent to manager the server itself.
References
For withastro/astro#18029