mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
Clarify basic projection budget logging
This commit is contained in:
@@ -397,6 +397,9 @@ export function runBasicCompaction(options: {
|
||||
policyIntent: "basic_compaction_projection",
|
||||
estimateMessageTokens: options.estimateMessageTokens,
|
||||
});
|
||||
// This final projection owns the hard output budget. Unlike the earlier
|
||||
// basic candidate passes, it may drop the original first-user message when
|
||||
// preserving the latest typed prompt and coherent tool closures requires it.
|
||||
if (budgeted.status === "failed") {
|
||||
options.logger?.debug("Basic compaction returned best-effort projection", {
|
||||
budgetWarnings: budgeted.warnings.map((warning) => warning.code),
|
||||
@@ -428,6 +431,7 @@ export function runBasicCompaction(options: {
|
||||
messagesRemoved: options.context.messages.length - resultMessages.length,
|
||||
tokensBefore: beforeTokens,
|
||||
tokensAfter: afterTokens,
|
||||
budgetStatus: budgeted.status,
|
||||
budgetActions: budgeted.actions.length,
|
||||
budgetWarnings: budgeted.warnings.map((warning) => warning.code),
|
||||
targetTokens,
|
||||
|
||||
Reference in New Issue
Block a user