From 5237a149ffc9f3aab8bb28f0fb6b51495053903f Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 14 Apr 2026 16:16:34 +0100 Subject: [PATCH] fix(plugins): drop stale provider hook dead code --- extensions/anthropic/register.runtime.ts | 14 -------------- extensions/kimi-coding/index.ts | 6 ------ 2 files changed, 20 deletions(-) diff --git a/extensions/anthropic/register.runtime.ts b/extensions/anthropic/register.runtime.ts index 11849ccae49..968f7f36aa2 100644 --- a/extensions/anthropic/register.runtime.ts +++ b/extensions/anthropic/register.runtime.ts @@ -52,13 +52,6 @@ const ANTHROPIC_MODERN_MODEL_PREFIXES = [ "claude-sonnet-4-5", "claude-haiku-4-5", ] as const; -const _ANTHROPIC_OAUTH_ALLOWLIST = [ - "anthropic/claude-sonnet-4-6", - "anthropic/claude-opus-4-6", - "anthropic/claude-opus-4-5", - "anthropic/claude-sonnet-4-5", - "anthropic/claude-haiku-4-5", -] as const; const ANTHROPIC_SETUP_TOKEN_NOTE_LINES = [ "Anthropic setup-token auth is supported in OpenClaw.", "OpenClaw prefers Claude CLI reuse when it is available on the host.", @@ -380,13 +373,6 @@ async function runAnthropicCliMigrationNonInteractive(ctx: { export function registerAnthropicPlugin(api: OpenClawPluginApi): void { const providerId = "anthropic"; const defaultAnthropicModel = "anthropic/claude-sonnet-4-6"; - const _anthropicOauthAllowlist = [ - "anthropic/claude-sonnet-4-6", - "anthropic/claude-opus-4-6", - "anthropic/claude-opus-4-5", - "anthropic/claude-sonnet-4-5", - "anthropic/claude-haiku-4-5", - ] as const; api.registerCliBackend(buildAnthropicCliBackend()); api.registerProvider({ id: providerId, diff --git a/extensions/kimi-coding/index.ts b/extensions/kimi-coding/index.ts index 40e2f6a9512..762d35d6666 100644 --- a/extensions/kimi-coding/index.ts +++ b/extensions/kimi-coding/index.ts @@ -24,12 +24,6 @@ function findExplicitProviderConfig( ); return isRecord(match?.[1]) ? match[1] : undefined; } - -function _buildKimiReplayPolicy() { - return { - preserveSignatures: false, - }; -} export default definePluginEntry({ id: PLUGIN_ID, name: "Kimi Provider",