Allow --foreground flag with --from-config
#2649
Merged
+11
−3
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.
The
--foregroundflag is an execution-related flag that controls HOW to run the server (foreground vs detached), not a configuration flag that controls WHAT to run. TherunFromConfigFilefunction already respects this flag, so it should be allowed alongside--from-config.This change modifies the validation logic to use an allowlist of execution-related flags (
--foreground,--debug) that can be used with--from-config, while still preventing actual configuration flags from being mixed with--from-config.Fixes #2643
Generated with Claude Code