docs(coding-agent): add /compact, /autocompact commands and Context Compaction section

- Add /compact and /autocompact slash command documentation
- Add Context Compaction section explaining how it works, manual/auto modes, configuration
- Update /autocompact output to match thinking level toggle style (dimmed text)
- Remove Planned Features section (auto-compaction now implemented)
This commit is contained in:
Mario Zechner 2025-12-04 02:56:03 +01:00
parent 233917c6d1
commit a57768b91b
2 changed files with 81 additions and 14 deletions

View file

@ -1867,10 +1867,10 @@ export class TuiRenderer {
this.settingsManager.setCompactionEnabled(newState);
this.footer.setAutoCompactEnabled(newState);
this.showSuccess(
`✓ Auto-compact ${newState ? "enabled" : "disabled"}`,
newState ? "Context will be compacted automatically when nearing limits" : "Use /compact to manually compact",
);
// Show brief notification (same style as thinking level toggle)
this.chatContainer.addChild(new Spacer(1));
this.chatContainer.addChild(new Text(theme.fg("dim", `Auto-compaction: ${newState ? "on" : "off"}`), 1, 0));
this.ui.requestRender();
}
private updatePendingMessagesDisplay(): void {