Add mode options to /compact (#921)

Co-authored-by: Amy Guan <amy@letta.com>
This commit is contained in:
amysguan
2026-02-11 19:18:44 -08:00
committed by GitHub
parent 9ea10bf2ff
commit 7f83035a09
2 changed files with 50 additions and 5 deletions

View File

@@ -366,7 +366,8 @@ export const commands: Record<string, Command> = {
},
},
"/compact": {
desc: "Summarize conversation history (compaction)",
desc: "Summarize conversation history (compaction) with optional mode",
args: "[all|sliding_window]",
handler: () => {
// Handled specially in App.tsx to access client and agent ID
return "Compacting conversation...";