fix: clean agents lint warnings

This commit is contained in:
Peter Steinberger
2026-01-07 10:13:03 +01:00
parent 7973fd4caf
commit 94d3a9742b
3 changed files with 3 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
- Tools: unify reaction removal semantics across Discord/Slack/Telegram/WhatsApp and allow WhatsApp reaction routing across accounts.
- Gateway/CLI: add daemon runtime selection (Node recommended; Bun optional) and document WhatsApp/Baileys Bun WebSocket instability on reconnect.
- CLI: add `clawdbot docs` live docs search with pretty output.
- CLI: add `clawdbot agents` (list/add/delete) with wizarded workspace/setup, provider login, and full prune on delete.
- Agent: treat compaction retry AbortError as a fallback trigger without swallowing non-abort errors. Thanks @erikpr1994 for PR #341.
- Agent: deliver final replies for non-streaming models when block chunking is enabled. Thank you @mneves75 for PR #369!
- Sub-agents: allow `sessions_spawn` model overrides and error on invalid models. Thanks @azade-c for PR #298.

View File

@@ -218,7 +218,7 @@ export function pruneAgentConfig(
removedAllow: number;
} {
const id = normalizeAgentId(agentId);
const agents = { ...(cfg.routing?.agents ?? {}) };
const agents = { ...cfg.routing?.agents };
delete agents[id];
const nextAgents = Object.keys(agents).length > 0 ? agents : undefined;

View File

@@ -618,7 +618,7 @@ export async function setupProviders(
accounts: {
...next.whatsapp?.accounts,
[whatsappAccountId]: {
...(next.whatsapp?.accounts?.[whatsappAccountId] ?? {}),
...next.whatsapp?.accounts?.[whatsappAccountId],
enabled:
next.whatsapp?.accounts?.[whatsappAccountId]?.enabled ?? true,
},