fix: stop marking Claude CLI runs as host-managed

Stop injecting CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST into Claude CLI runs and strip inherited/backend overrides before spawn.\n\nAlso repairs the Zalo setup allowlist prompt wiring needed by the current main check gate.\n\nThanks @Alex-Alaniz.
This commit is contained in:
Alex Alaniz
2026-04-10 04:14:15 -04:00
committed by GitHub
parent e3e2a19ab7
commit 6bd64ca4a7
10 changed files with 16 additions and 22 deletions

View File

@@ -234,6 +234,12 @@ export async function executePreparedCliRun(
);
}
Object.assign(next, context.preparedBackend.env);
// Never mark Claude CLI as host-managed. That marker routes runs into
// Anthropic's separate host-managed usage tier instead of normal CLI
// subscription behavior.
delete next["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST"];
return next;
})();
if (logOutputText) {