Skip to content

fix(switchboard): disable the pi-harness flag on the headless (cloud) path#832

Merged
gewenyu99 merged 6 commits into
mainfrom
fix/disable-pi-in-headless
Jul 8, 2026
Merged

fix(switchboard): disable the pi-harness flag on the headless (cloud) path#832
gewenyu99 merged 6 commits into
mainfrom
fix/disable-pi-in-headless

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

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

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>

gewenyu99 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

🧙 Wizard CI

Run 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:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci mcp-analytics
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/cicd-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-nested-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-single-stage-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-gitlab-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-pnpm-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-raw-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-ssh-vps-node-raw
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@gewenyu99 gewenyu99 changed the base branch from main to graphite-base/832 July 8, 2026 14:02
@gewenyu99 gewenyu99 force-pushed the fix/disable-pi-in-headless branch from 6e68f5a to 8e23117 Compare July 8, 2026 14:02
@gewenyu99 gewenyu99 changed the base branch from graphite-base/832 to feat/analytics-run-surface July 8, 2026 14:02
@gewenyu99 gewenyu99 force-pushed the fix/disable-pi-in-headless branch from 8e23117 to c37ab44 Compare July 8, 2026 14:05
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>
@gewenyu99 gewenyu99 force-pushed the fix/disable-pi-in-headless branch from c37ab44 to b1552e9 Compare July 8, 2026 14:22
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>
@gewenyu99 gewenyu99 force-pushed the fix/disable-pi-in-headless branch from b1552e9 to 4a8a645 Compare July 8, 2026 14:38
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>
@gewenyu99 gewenyu99 force-pushed the fix/disable-pi-in-headless branch from 4a8a645 to d9d3a85 Compare July 8, 2026 14:46
@gewenyu99 gewenyu99 marked this pull request as ready for review July 8, 2026 14:49
@gewenyu99 gewenyu99 requested review from a team and rafaeelaudibert July 8, 2026 14:51

@rafaeelaudibert rafaeelaudibert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 😆

@edwinyjlim edwinyjlim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i love switchboard

gewenyu99 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

Merge activity

@gewenyu99 gewenyu99 changed the base branch from feat/analytics-run-surface to graphite-base/832 July 8, 2026 15:57
@gewenyu99 gewenyu99 changed the base branch from graphite-base/832 to main July 8, 2026 16:27
@gewenyu99 gewenyu99 merged commit f28f3f0 into main Jul 8, 2026
17 checks passed
@gewenyu99 gewenyu99 deleted the fix/disable-pi-in-headless branch July 8, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants