Repository navigation
refactor: drop ANTHROPIC_* env compat and rename vendor wire names - #426
Merged
Merged
Conversation
De-brand layer 2 completion (issue #419): no compatibility keeps. - ANTHROPIC_API_KEY/BASE_URL/AUTH_TOKEN/MODEL env reads removed — FUSION_CLIENT_KEY / FUSION_BASE_URL / FUSION_MODEL are the only env credentials; tests rewritten to the new semantics - delete the FUSION_* -> ANTHROPIC_* SDK-compat mapping in cli.tsx and the /doctor env-conflict detector (no ANTHROPIC_* reader remains) - delete the FUSION_ALLOW_ANTHROPIC_TOKEN_LOCAL opt-in (cloud auth is gone; #221 test now asserts the token is NOT read) - services/api/claude.ts -> services/api/messages.ts - billing attribution header x-anthropic-billing-header -> x-fusion-billing-header (emission); transcript parsing accepts both names for our own historical sessions. Engine-side strip rename = upstream fusion-mlx issue - anthropic_beta -> fusion_beta, anthropic_internal -> fusion_internal (zero consumers anywhere; engine ignores unknown request fields) - drop x-anthropic-additional-protection header (Anthropic-API-only) Deferred (noted in #419): claude-* model-id strings (external model identifiers + legacy migration data, not branding), fastMode claude_code_penguin endpoint (dead feature, needs product call), Foundry provider status branch. bun test 1884 pass / 0 fail; typecheck, lint (33 = baseline), validator ERROR 0, build green. Co-Authored-By: Claude Code <[email protected]>
Closed
12 tasks
This was referenced Dec 1, 2026
Merged
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.
De-brand layer 2 completion (issue #419): drops all ANTHROPIC_* compatibility keeps. No vendor env vars, no vendor wire names emitted.
Changes
ANTHROPIC_API_KEY/BASE_URL/AUTH_TOKEN/MODELreads removed (16 runtime files).FUSION_CLIENT_KEY/FUSION_BASE_URL/FUSION_MODELare the only env credentials. TheFUSION_* -> ANTHROPIC_*SDK-compat mapping block incli.tsxand the/doctorenv-conflict detector are deleted (no reader remains). TheFUSION_ALLOW_ANTHROPIC_TOKEN_LOCALcloud-token opt-in is deleted (P1: auth chain puts cloud ANTHROPIC_AUTH_TOKEN ahead of local gateway key (live 401 repro) + key has three names — fix precedence, unify naming #221 test now asserts the token is NOT read).services/api/claude.ts→services/api/messages.ts.x-anthropic-billing-header→x-fusion-billing-header(emission side; transcript parsing accepts both names for our own historical sessions).anthropic_beta→fusion_beta,anthropic_internal→fusion_internal(zero consumers anywhere).x-anthropic-additional-protectionheader dropped (Anthropic-API-only).Coordination
anthropic_adapter.py); an upstream issue should switch the strip pattern tox-fusion-billing-header(keep the old pattern one release to consume in-flight sessions).Deferred (commented in #419)
claude-*model-id strings — external model identifiers + legacy migration data, not brandingclaude_code_penguinendpoint — dead feature, needs a product call on deleting the featureTest plan
bun run typecheckcleanbun test: 1884 pass, 0 fail (9 tests rewritten to new semantics, 1 obsolete test file deleted)bun run lint: 33 warnings = baselinebun run buildgreen🤖 Generated with Claude Code