test: speed up mcp channel server imports · openclaw/openclaw@4de6296
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { z } from "zod"; |
2 | | -import { normalizeOptionalString as toText } from "../shared/string-coerce.js"; |
3 | | -import { normalizeMessageChannel } from "../utils/message-channel.js"; |
| 2 | +import { |
| 3 | +normalizeOptionalLowercaseString, |
| 4 | +normalizeOptionalString as toText, |
| 5 | +} from "../shared/string-coerce.js"; |
4 | 6 | |
5 | 7 | export type ClaudeChannelMode = "off" | "on" | "auto"; |
6 | 8 | |
@@ -160,7 +162,7 @@ export function summarizeStructuredResult(
|
160 | 162 | } |
161 | 163 | |
162 | 164 | function resolveConversationChannel(row: SessionRow): string | undefined { |
163 | | -return normalizeMessageChannel( |
| 165 | +return normalizeOptionalLowercaseString( |
164 | 166 | toText(row.deliveryContext?.channel) ?? |
165 | 167 | toText(row.lastChannel) ?? |
166 | 168 | toText(row.channel) ?? |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。