Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/compress/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function createCompressMessageTool(ctx: ToolContext): ReturnType<typeof t
for (const entry of input.content) {
if (entry.summary.length > maxSummaryLengthHard) {
throw new Error(
`Summary too long (${entry.summary.length} chars, hard ceiling ${maxSummaryLengthHard}). Aim for <=${ctx.config.compress.maxSummaryLength}; exceed only when strictly necessary. Rewrite more concisely.`,
`Summary too long (${entry.summary.length} chars; limit ${maxSummaryLengthHard}). Rewrite to under ${maxSummaryLengthHard} chars — keep only the most essential details (conclusions, file paths, decisions, exact values) and drop verbose narration or raw dumps.`,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/compress/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function createCompressRangeTool(ctx: ToolContext): ReturnType<typeof too
for (const entry of input.content) {
if (entry.summary.length > maxSummaryLengthHard) {
throw new Error(
`Summary too long (${entry.summary.length} chars, hard ceiling ${maxSummaryLengthHard}). Aim for <=${ctx.config.compress.maxSummaryLength}; exceed only when strictly necessary. Rewrite more concisely.`,
`Summary too long (${entry.summary.length} chars; limit ${maxSummaryLengthHard}). Rewrite to under ${maxSummaryLengthHard} chars — keep only the most essential details (conclusions, file paths, decisions, exact values) and drop verbose narration or raw dumps.`,
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const defaultConfig: PluginConfig = {
protectTags: false,
protectUserMessages: false,
maxSummaryLength: 200,
maxSummaryLengthHard: 800,
maxSummaryLengthHard: 3000,
minCompressRange: 2000,
},
strategies: {
Expand Down
Loading