talon-agent 5.20.0 → 5.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "talon-agent",
3
- "version": "5.20.0",
3
+ "version": "5.20.1",
4
4
  "description": "Multi-frontend AI agent with full tool access, streaming, cron jobs, and plugin system",
5
5
  "author": "The Falconry",
6
6
  "license": "Apache-2.0",
@@ -309,8 +309,14 @@ export class Gateway {
309
309
  const where = agentContext ? rawChatId : "chat-free";
310
310
  const t0 = Date.now();
311
311
  try {
312
+ // An agent context first tries the agent-only actions; if the action
313
+ // isn't one of those it may still be a chat-free action (mesh, send_via,
314
+ // backup, whatsapp_account), which a sub-agent is offered and must be
315
+ // able to reach. Without this fall-through those calls returned null and
316
+ // dropped into chat routing, failing with "No active chat context".
312
317
  const result = agentContext
313
- ? await handleAgentContextAction(body, rawChatId)
318
+ ? ((await handleAgentContextAction(body, rawChatId)) ??
319
+ (isChatFreeAction(action) ? await handleChatFreeAction(body) : null))
314
320
  : await handleChatFreeAction(body);
315
321
  if (result) {
316
322
  logDebug("gateway", `${action} ${where} ${Date.now() - t0}ms`);