You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Add a config option to hide the compaction divider/marker in the TUI #45389
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When auto-compaction runs, the TUI renders a "Session compacted" divider in the message stream. As far as I can tell there's no config option to suppress it — I checked the full config schema and tui.json for something like a locale override or an env var that would hide the label, and found nothing.
This gets noisy fast when running against local/self-hosted models (llama.cpp, Ollama via @ai-sdk/openai-compatible), where compaction tends to fire much more often than it does against large cloud models — every compaction adds a visible divider that clutters the session view. It's a separate concern from the compaction reliability issues already tracked for local backends (#22792, #15533, #27924), but it compounds them: when compaction already fires more often and sometimes loops, having no way to quiet the visual noise makes it worse to work through.
Proposed solution: a config option under the existing compaction schema block (e.g. compaction.hideMarker, boolean, default false) that suppresses rendering of the divider while leaving the compaction event itself — summary generation, token accounting — unaffected.
Alternatives considered:
Patching the bundled opencode binary to no-op the divider render — works, but doesn't survive opencode upgrade and would need a custom reapplication script on every update, which isn't something most users want to maintain.
Living with the divider — acceptable, just noisy, especially in longer local-model sessions.
+1 for this. When compacting often in a long session, the full summary block plus the "Session compacted" divider get injected straight into the transcript; it is noisy and pushes prior context out of view. A config option such as compaction.hideMarker (or keeping the summary collapsed in the sidebar / only in the session list) would be much appreciated. Thanks!
Thanks for the request, @sergioorestes! You're asking for an option to hide the compaction divider in the TUI while compaction itself keeps running as normal. That would help in local-model sessions, where compaction runs often and the dividers pile up.
In the current v2 TUI, the divider (Compaction · N in · M out) and the summary below it are always shown, and no setting turns them off. A plugin can't hide them yet either, because plugins can't change how timeline messages are drawn. Maintainers will consider adding an option.
Activity
mikelalo-ai commentedon Oct 5, 2026
+1 for this. When compacting often in a long session, the full summary block plus the "Session compacted" divider get injected straight into the transcript; it is noisy and pushes prior context out of view. A config option such as
compaction.hideMarker(or keeping the summary collapsed in the sidebar / only in the session list) would be much appreciated. Thanks!opencodejr commentedon Oct 28, 2026
Thanks for the request, @sergioorestes! You're asking for an option to hide the compaction divider in the TUI while compaction itself keeps running as normal. That would help in local-model sessions, where compaction runs often and the dividers pile up.
In the current v2 TUI, the divider (
Compaction · N in · M out) and the summary below it are always shown, and no setting turns them off. A plugin can't hide them yet either, because plugins can't change how timeline messages are drawn. Maintainers will consider adding an option.Related issues and PRs:
experimental.background_compactionon, automatic compaction now shows as a single faint dividerIf you're on v1 (
opencode --versionshows 0.x or 1.x), note that v1 only gets critical fixes, so any change like this would land in v2.