fix: route native status to active agent

This commit is contained in:
Peter Steinberger committed 2026-01-20 19:04:31 +00:00
1 parent 5c4079f66c
commit 243a8b019e
4 files changed
+61 -12

No files matched your search

+4 -1
View File
@@ -29,8 +29,11 @@ export async function getReplyFromConfig(
configOverride?: ClawdbotConfig,
): Promise<ReplyPayload | ReplyPayload[] | undefined> {
const cfg = configOverride ?? loadConfig();
const targetSessionKey =
ctx.CommandSource === "native" ? ctx.CommandTargetSessionKey?.trim() : undefined;
const agentSessionKey = targetSessionKey || ctx.SessionKey;
const agentId = resolveSessionAgentId({
sessionKey: ctx.SessionKey,
sessionKey: agentSessionKey,
config: cfg,
});
const agentCfg = cfg.agents?.defaults;