feat(cli): expand fast_provision experiment to images + docker + sandbox#3398
Draft
AhmedTMM wants to merge 1 commit intoOpenRouterTeam:mainfrom
Draft
feat(cli): expand fast_provision experiment to images + docker + sandbox#3398AhmedTMM wants to merge 1 commit intoOpenRouterTeam:mainfrom
AhmedTMM wants to merge 1 commit intoOpenRouterTeam:mainfrom
Conversation
Builds on the existing PostHog `fast_provision` flag (already wired via shared/feature-flags.ts). The `test` variant now bundles the full provisioning-speed stack rather than images alone: - images: pre-built DO marketplace images (cloud-side faster boot) - docker: Docker CE host image on Hetzner/GCP (cloud-side faster boot) - sandbox: local agents run in a Docker container (local-side faster boot) Users who explicitly pass --beta or --fast still take precedence and skip the experiment bucket. Exposure events are still captured for both variants so PostHog can compute conversion across the broader bundle. Bumps CLI to 1.0.39. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
The PostHog `fast_provision` flag is already wired via `shared/feature-flags.ts` and currently bundles `images` for the `test` variant. This PR expands the test variant to the full provisioning-speed stack:
Users who explicitly pass `--beta` or `--fast` still take precedence and skip the experiment bucket. `$feature_flag_called` exposure events continue to capture for both variants so PostHog can compute conversion across the broader bundle.
Heads-up: known sandbox gap
`pullAndStartContainer` in `packages/cli/src/local/local.ts:533` runs `docker run` with no volume mount. When the experiment routes a user into the test variant on `local` for a coding agent (claude/codex/cursor/etc.), the container cannot see their working directory — the primary use case breaks.
Two options before flipping the flag on at PostHog:
Either way, this PR ships the bundle change cleanly; the volume-mount fix is small enough to land separately or as a follow-up commit on this branch — your call.
Test plan
🤖 Generated with Claude Code