Phase 8: mark manual compaction from /compact input — SPEC §8 input hook.
Sets pendingCompactionSource before expansion when user text starts with /compact. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,3 +10,10 @@ export function createCompactionRuntime(): CompactionRuntime {
|
||||
pendingCompactionSource: null,
|
||||
};
|
||||
}
|
||||
|
||||
/** Input hook before expansion: user `/compact` marks manual source (SPEC §8). */
|
||||
export function markManualCompactionFromInput(text: string, runtime: CompactionRuntime): void {
|
||||
if (text.startsWith("/compact")) {
|
||||
runtime.pendingCompactionSource = "manual";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user