fix(switchboard): disable the pi-harness flag on the headless (cloud) path#832
Merged
Conversation
A global property on all events differentiating where the run executes: the experimental headless flag (headless-DONOTUSE-EXPERIMENTAL) is a cloud run, everything else is local. Defaults to 'local' in the analytics tag bag; runNonInteractive upgrades it to 'cloud' on the headless path only (not --ci). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
6e68f5a to
8e23117
Compare
8e23117 to
c37ab44
Compare
The headless flag is on process.argv at launch, before the analytics singleton initializes, so read it there instead of upgrading the tag later in the runner. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c37ab44 to
b1552e9
Compare
Resolve cloud vs local once from argv at launch in @env, alongside IS_PRODUCTION_BUILD, so any module reads it directly instead of re-deriving it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
b1552e9 to
4a8a645
Compare
Read the top-level RUN_SURFACE constant directly and decline all three pi flags when it is 'cloud' (use-pi-harness + pi-model in flagRunnerOverride, pi-effort in modelCapabilities); local and --ci runs keep pi. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4a8a645 to
d9d3a85
Compare
rafaeelaudibert
approved these changes
Jul 8, 2026
rafaeelaudibert
left a comment
Member
There was a problem hiding this comment.
It's a bit confusing we're calling it headless in some places and cloud in others, but I guess I helped cause this problem so I don't know if I can ask you to change this now 😆
Collaborator
Author
Merge activity
|
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.

Disables the experimental pi-harness flag on the headless-DONOTUSE-EXPERIMENTAL (cloud) path;
--ciand local runs are unaffected.