Repository navigation
Remove the Claude Code mock CLI traffic experiment - #1993
Merged
Merged
Conversation
Delete the claudeCodeMockCliTraffic experiment, the loopback proxy that rewrote Claude Code API traffic, the runtime option that carried it across the server/daemon/bridge boundary, and the Settings toggle. Bump the host daemon protocol version because the runtime options schema lost a field. Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
SawyerHood
force-pushed
the
bb/inspect-codebase-for-issues-thr_n7p7tpqgaj
branch
from
August 20, 2026 03:36
68385f1 to
f5fbed7
Compare
SawyerHood
added a commit
that referenced
this pull request
Aug 20, 2026
…obile (#1995) ## What was wrong #1993 removed the `claudeCodeMockCliTraffic` experiment key from `@bb/domain` while #1988 (the mobile app) was in flight. After both merged, `main` fails `@bb/mobile` typecheck: `apps/mobile/src/screens/settings/ExperimentsSettingsScreen.tsx` still lists the key, and `apps/mobile/e2e/scripts/phase7-settings-reset.js` still PUTs it to `/api/v1/settings/experiments` (the experiments record is exhaustive under zod 4, so the reset would 400 and the nightly Mobile E2E would fail). ## What changed - Removed the row from the mobile Experiments screen. - Removed the key from the e2e settings-reset payload. ## How you verified - `pnpm exec turbo run typecheck lint test --filter=@bb/mobile` on `main` + this change: all green (119 test files). Typecheck fails on `main` without it. - `git grep claudeCodeMockCliTraffic` leaves only historical migration/test references. > AGENT GENERATED: by Claude Opus 5 Co-authored-by: Claude <[email protected]>
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.
What was wrong
The `claudeCodeMockCliTraffic` experiment started a loopback HTTP proxy per Claude Code session and rewrote the user-agent and billing headers of the SDK's API traffic. The experiment is a dev-only tool, it is off by default, and it has no product use. It still cost a field on the shared `ProviderExecutionContext`, a wire field on runtime options, a Settings toggle, and a daemon stderr hook.
What changed
Stored `claudeCodeMockCliTraffic` rows in `system_experiments` are ignored by the key/value reader, so no migration is needed.
How you verified
Fixes #