fix: recover from compaction overflow

This commit is contained in:
Peter Steinberger
2026-01-13 08:02:58 +00:00
parent 365cbe8d50
commit 9faa95d558
5 changed files with 87 additions and 5 deletions

View File

@@ -370,8 +370,8 @@ export function formatAssistantErrorText(
// Check for context overflow (413) errors
if (isContextOverflowError(raw)) {
return (
"Context overflow: the conversation history is too large. " +
"Use /new or /reset to start a fresh session."
"Context overflow: prompt too large for the model. " +
"Try again with less input or a larger-context model."
);
}