Files
openclaw/extensions/telegram/src/agent-config.ts
Peter Steinberger 5ebfbbf8d7 fix(plugins): honor per-agent runtime config (#124978)
* 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
2026-08-17 01:53:08 -07:00

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";
}