Merge pull request #578 from p6l-richard/feature/identity-based-message-prefix

fix(messages): derive messagePrefix from identity.name
This commit is contained in:
Peter Steinberger authored and GitHub committed 2026-01-09 15:40:52 +00:00
commit 1eecce9a15
19 files changed
+236 -20

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import { resolveResponsePrefix } from "../agents/identity.js";
import {
DEFAULT_HEARTBEAT_ACK_MAX_CHARS,
DEFAULT_HEARTBEAT_EVERY,
@@ -268,7 +269,7 @@ export async function runHeartbeatOnce(opts: {
const ackMaxChars = resolveHeartbeatAckMaxChars(cfg);
const normalized = normalizeHeartbeatReply(
replyPayload,
cfg.messages?.responsePrefix,
resolveResponsePrefix(cfg, resolveAgentIdFromSessionKey(sessionKey)),
ackMaxChars,
);
if (normalized.shouldSkip && !normalized.hasMedia) {