openclaw/src/utils/account-id.ts
Peter Steinberger 0291105913 fix: thread accountId through subagent announce delivery
Co-authored-by: Adam Holt <adam91holt@users.noreply.github.com>
2026-01-17 02:45:18 +00:00

6 lines
189 B
TypeScript

export function normalizeAccountId(value?: string): string | undefined {
if (typeof value !== "string") return undefined;
const trimmed = value.trim();
return trimmed || undefined;
}