The session context usage indicator already shows how full the context window is, but there's no way to trigger compaction from the UI without using the command palette (/compact).
Adding a small compact icon button next to the context usage progress circle lets users one-click compact. It calls the existing POST /api/session/:sessionID/compact endpoint and needs no new API work.
I have a working branch with the change: ohsalmeron/opencode:context-compact
The session context usage indicator already shows how full the context window is, but there's no way to trigger compaction from the UI without using the command palette (
/compact).Adding a small compact icon button next to the context usage progress circle lets users one-click compact. It calls the existing
POST /api/session/:sessionID/compactendpoint and needs no new API work.I have a working branch with the change:
ohsalmeron/opencode:context-compact