fix(agents): avoid cli facade load in flush gate · openclaw/openclaw@56fc17b
obviyus
·
2026-05-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,6 @@ import type { ReplyPayload } from "../auto-reply/reply-payload.js";
|
2 | 2 | import { SILENT_REPLY_TOKEN } from "../auto-reply/tokens.js"; |
3 | 3 | import { formatErrorMessage } from "../infra/errors.js"; |
4 | 4 | import { createSubsystemLogger } from "../logging/subsystem.js"; |
5 | | -import { isClaudeCliProvider } from "../plugin-sdk/anthropic-cli.js"; |
6 | 5 | import { buildAgentHookContextChannelFields } from "../plugins/hook-agent-context.js"; |
7 | 6 | import { resolveBlockMessage } from "../plugins/hook-decision-types.js"; |
8 | 7 | import { getGlobalHookRunner } from "../plugins/hook-runner-global.js"; |
@@ -46,6 +45,10 @@ export function restoreCliRunnerTestDeps(): void {
|
46 | 45 | cliRunnerDeps.claudeCliSessionTranscriptHasContent = claudeCliSessionTranscriptHasContentImpl; |
47 | 46 | } |
48 | 47 | |
| 48 | +function isClaudeCliProvider(provider: string): boolean { |
| 49 | +return provider.trim().toLowerCase() === "claude-cli"; |
| 50 | +} |
| 51 | + |
49 | 52 | export async function isCliBindingFlushed( |
50 | 53 | sessionId: string | undefined, |
51 | 54 | provider: string | undefined, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。