fix: add compaction headroom for memory writes

This commit is contained in:
Peter Steinberger
2026-01-11 10:46:20 +00:00
parent 96e4fdb443
commit a3747b1ee3
6 changed files with 90 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ import {
import { stripHeartbeatToken } from "../heartbeat.js";
import type { OriginatingChannelType, TemplateContext } from "../templating.js";
import { normalizeVerboseLevel, type VerboseLevel } from "../thinking.js";
import { SILENT_REPLY_TOKEN } from "../tokens.js";
import { isSilentReplyText, SILENT_REPLY_TOKEN } from "../tokens.js";
import type { GetReplyOptions, ReplyPayload } from "../types.js";
import {
createAudioAsVoiceBuffer,
@@ -485,6 +485,7 @@ export async function runReplyAgent(params: {
}
text = stripped.text;
}
if (isSilentReplyText(text, SILENT_REPLY_TOKEN)) return;
await typingSignals.signalTextDelta(text);
await opts.onPartialReply?.({
text,