Background dev server#1362
Merged
Merged
Conversation
Closed
Contributor
Author
|
I'm doing a call for consensus on this change. |
ematipico
reviewed
May 27, 2026
ematipico
left a comment
Member
There was a problem hiding this comment.
A couple of things we should address imho:
- telemetry
- log rotation missing from PR
--background->background(it's not a subcommand, given the PR)
| ### Response Shape | ||
|
|
||
| ```json | ||
| {"ok": true} |
Member
There was a problem hiding this comment.
Is false for when the endpoint isn't healthy?
| # Adoption strategy | ||
|
|
||
| - **Fully opt-in.** Without `--background`, `astro dev` behaves exactly as it does today, unless an AI agent is detected, in which case background mode is enabled automatically. | ||
| - **Not a breaking change.** The new subcommands and flags are additions to the CLI. The `/_astro/status` endpoint is a new route in the dev server that does not conflict with user routes (it uses the `/_astro/` prefix already reserved by Astro). The lock file adds duplicate server detection to foreground mode, but this is a guard against a common mistake, not a behavior change. |
Member
There was a problem hiding this comment.
Just for the sake of completeness: we should say that this endpoint doesn't exist in production. You never know!
Contributor
Author
There was a problem hiding this comment.
added a note on this.
Contributor
Author
Went back and forth on this and landed on what the stage 1 said, which was that |
florian-lefebvre
approved these changes
Jun 5, 2026
ematipico
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Background process management for
astro dev, enabling AI coding agents to reliably start, monitor, query and stop the dev server.Links