refactor(messages): centralize per-agent prefixes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { resolveResponsePrefix } from "../agents/identity.js";
|
||||
import { resolveEffectiveMessagesConfig } from "../agents/identity.js";
|
||||
import {
|
||||
DEFAULT_HEARTBEAT_ACK_MAX_CHARS,
|
||||
DEFAULT_HEARTBEAT_EVERY,
|
||||
@@ -269,7 +269,10 @@ export async function runHeartbeatOnce(opts: {
|
||||
const ackMaxChars = resolveHeartbeatAckMaxChars(cfg);
|
||||
const normalized = normalizeHeartbeatReply(
|
||||
replyPayload,
|
||||
resolveResponsePrefix(cfg, resolveAgentIdFromSessionKey(sessionKey)),
|
||||
resolveEffectiveMessagesConfig(
|
||||
cfg,
|
||||
resolveAgentIdFromSessionKey(sessionKey),
|
||||
).responsePrefix,
|
||||
ackMaxChars,
|
||||
);
|
||||
if (normalized.shouldSkip && !normalized.hasMedia) {
|
||||
|
||||
Reference in New Issue
Block a user