mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 00:52:05 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user