mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
5ebfbbf8d7
* fix(plugins): resolve per-agent config through SDK * test(codex): preserve agent runtime exports * test(telegram): make default owner explicit * refactor(plugins): use lightweight agent scope runtime * fix(codex): preserve multi-agent execution ownership * chore(plugin-sdk): record approved agent scope exports * fix(codex): keep scoped sandbox ownership authoritative * fix(codex): preserve agent scope in native side actions * fix(ci): avoid counting node check as environment variable
14 lines
533 B
TypeScript
14 lines
533 B
TypeScript
// Telegram helper module supports agent config behavior.
|
|
import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime";
|
|
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
|
|
|
|
type ReasoningDefault = "on" | "stream" | "off";
|
|
|
|
export function resolveTelegramConfigReasoningDefault(
|
|
cfg: OpenClawConfig,
|
|
agentId: string,
|
|
): ReasoningDefault {
|
|
const agentDefault = resolveAgentConfig(cfg, agentId)?.reasoningDefault;
|
|
return agentDefault ?? cfg.agents?.defaults?.reasoningDefault ?? "off";
|
|
}
|