From bddb99fa7cb283bcb30ac3ffdde4b4a107889392 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 4 Dec 2025 00:31:21 +0100 Subject: [PATCH] Wire up /compact and /autocompact slash commands --- packages/coding-agent/src/tui/tui-renderer.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/coding-agent/src/tui/tui-renderer.ts b/packages/coding-agent/src/tui/tui-renderer.ts index 3ed5db1c..efe0189d 100644 --- a/packages/coding-agent/src/tui/tui-renderer.ts +++ b/packages/coding-agent/src/tui/tui-renderer.ts @@ -188,6 +188,16 @@ export class TuiRenderer { description: "Clear context and start a fresh session", }; + const compactCommand: SlashCommand = { + name: "compact", + description: "Manually compact the session context", + }; + + const autocompactCommand: SlashCommand = { + name: "autocompact", + description: "Toggle automatic context compaction", + }; + // Load file-based slash commands this.fileCommands = loadSlashCommands(); @@ -211,6 +221,8 @@ export class TuiRenderer { logoutCommand, queueCommand, clearCommand, + compactCommand, + autocompactCommand, ...fileSlashCommands, ], process.cwd(),