earendil-works/pi · error · Error
Summarization failed: ${response.errorMessage || "Unknown er
Error message
Summarization failed: ${response.errorMessage || "Unknown error"} What it means
Error "Summarization failed: ${response.errorMessage || "Unknown error"}" thrown in earendil-works/pi.
Source
Thrown at packages/coding-agent/src/core/compaction/compaction.ts:703
apiKey,
headers,
env,
signal,
thinkingLevel,
sessionId,
);
const response = await completeSummarization(
model,
buildSummarizationContext(promptText),
completionOptions,
streamFn,
retry,
callbacks,
);
if (response.stopReason === "error") {
throw new Error(`Summarization failed: ${response.errorMessage || "Unknown error"}`);
}
if (response.content.some((block) => block.type === "toolCall")) {
throw new Error("Summarization attempted to call a tool");
}
const textContent = contentText(response.content);
return { text: textContent, usage: response.usage };
}
// ============================================================================
// Compaction Preparation (for extensions)
// ============================================================================
export interface CompactionPreparation {
/** UUID of first entry to keep */
firstKeptEntryId: string;
/** Messages that will be summarized and discarded */View on GitHub (pinned to 4af9d21d3b)
When it happens
Trigger: Thrown at packages/coding-agent/src/core/compaction/compaction.ts:703 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24).
Data as JSON: /api/errors/6c8aa7e94e1e49c5.
Report an issue: GitHub.