Skip to content

[FEATURE]: Add a config option to hide the compaction divider/marker in the TUI #45389

Open

Description

@sergioorestes

Feature hasn't been suggested before.

  • 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.

Activity

  1. mikelalo-ai commented on Oct 5, 2026

    @mikelalo-ai

    +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!

  2. opencodejr commented on Oct 28, 2026

    @opencodejr

    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:

    If you're on v1 (opencode --version shows 0.x or 1.x), note that v1 only gets critical fixes, so any change like this would land in v2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions