Skip to content

Conversation

@ChrisJBurns
Copy link
Collaborator

@ChrisJBurns ChrisJBurns commented Nov 18, 2025

The --foreground flag is an execution-related flag that controls HOW to run the server (foreground vs detached), not a configuration flag that controls WHAT to run. The runFromConfigFile function 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

The --foreground flag is an execution-related flag that controls HOW
to run the server (foreground vs detached), not a configuration flag
that controls WHAT to run. The runFromConfigFile function 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

Co-authored-by: Chris Burns <ChrisJBurns@users.noreply.github.com>
@ChrisJBurns ChrisJBurns changed the title Allow --foreground flag with --from-config Allow --foreground flag with --from-config Nov 18, 2025
@codecov
Copy link

codecov bot commented Nov 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.29%. Comparing base (768f506) to head (ae4ffa2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2649   +/-   ##
=======================================
  Coverage   55.29%   55.29%           
=======================================
  Files         315      315           
  Lines       30299    30299           
=======================================
  Hits        16754    16754           
  Misses      12076    12076           
  Partials     1469     1469           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChrisJBurns ChrisJBurns marked this pull request as draft November 18, 2025 22:48
@ChrisJBurns ChrisJBurns marked this pull request as ready for review November 21, 2025 20:29
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Nov 21, 2025
@ChrisJBurns ChrisJBurns merged commit c8c90f0 into main Nov 21, 2025
30 checks passed
@ChrisJBurns ChrisJBurns deleted the claude/issue-2643-20251118-2153 branch November 21, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support --foreground flag and --from-file flags

3 participants