Option to disable auto-compaction and keep full conversation visible on screen

Resolved 💬 3 comments Opened Apr 4, 2026 by jagmeet-singh-sumo Closed May 14, 2026

Problem

When the context window fills up, Claude Code automatically compacts the conversation. This causes two issues:

  1. Older messages visually disappear from the terminal screen — there is no way to keep the full conversation visible without using Ctrl+o[ every time.
  2. Auto-compaction cannot be disabled — there is no setting to let the user control when compaction happens. Users who prefer to manage compaction manually (via /compact) have no way to prevent the automatic trigger.

Requested Features

  1. A setting to keep the full conversation visible on screen even after compaction (e.g. "preserveScrollback": true in settings.json). The compressed messages can still be removed from the context window, but the visual output in the terminal should remain intact.
  1. A setting to disable automatic compaction (e.g. "autoCompact": false in settings.json). Let users decide when to compact using /compact instead of having it triggered automatically. If the context is full and compaction is off, warn the user instead of auto-compacting.

Current Workarounds

  • Ctrl+o[ dumps history to scrollback, but requires manual action every time
  • Terminal scrollback works but is unreliable with long sessions
  • No workaround exists for disabling auto-compaction

Environment

  • Claude Code CLI (latest)
  • macOS / iTerm2 & Terminal.app

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗