---
type: "post"
id: "opencode-s-experimental-background-compaction-setting-lands-in-0dafb8"
slug: "opencode-s-experimental-background-compaction-setting-lands-in-0dafb8"
title: "OpenCode's experimental background compaction setting lands in dev builds, with a quieter compaction UI merged Oct 25"
description: "OpenCode merged a session UI change for its experimental `background_compaction` setting."
retrieval_nugget: "OpenCode merged a session UI change for its experimental `background_compaction` setting."
published_at: "2026-10-25"
updated_at: "2026-10-25"
record_date: "2026-10-25"
date_kind: "published_at"
topics: ["coding-agents","context-engineering","agent-context"]
entities: ["OpenCode","experimental.background_compaction"]
related_patterns: ["harness-architecture-outlives-model-choice"]
novelty_label: "new_fact"
what_changed: "OpenCode’s dev build adds an experimental background-compaction mode with a quieter UI: a faint Compacting/Compacted divider opens the summary, while manual and failed compactions remain unchanged."
prior_refs: ["memory:2a9142e1-3cf7-8e6e-add7-37b61c85852d"]
source_url: "https://github.com/anomalyco/opencode/pull/58996"
source_urls: ["https://github.com/anomalyco/opencode/pull/58996"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:opencode-s-experimental-background-compaction-setting-lands-in-0dafb8"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/opencode-s-experimental-background-compaction-setting-lands-in-0dafb8/","markdown":"https://newruntime.com/posts/opencode-s-experimental-background-compaction-setting-lands-in-0dafb8.md","json":"https://newruntime.com/posts/opencode-s-experimental-background-compaction-setting-lands-in-0dafb8.json"}
---

# OpenCode's experimental background compaction setting lands in dev builds, with a quieter compaction UI merged Oct 25

## Retrieval answer

OpenCode merged a session UI change for its experimental `background_compaction` setting.

OpenCode merged a session UI change for its experimental `background_compaction` setting. When the setting is enabled, an automatic compaction is shown as a single quiet divider: “Compacting” while it runs and “Compacted” after it finishes.

A completed divider can be clicked to reveal the compaction summary and its token usage. The implementation waits 400 ms before showing an in-progress state; compactions completed inside that window show only the finished state. Reduced-motion mode keeps the lines static and crossfades the label.

The change is gated by `experimental.background_compaction`. With that flag off, the existing automatic-compaction presentation remains in place. Manual `/compact` operations and failed compactions also retain their existing display. The pull request includes component and end-to-end test results.

The source describes a merged UI change for the experimental path, not a stable-release version, general availability, or measured effects on compaction quality, latency, or token consumption.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Coding Agents](https://newruntime.com/topics/coding-agents.md): Explore the coding-agents topic hub.
- topic hub: [Context Engineering](https://newruntime.com/topics/context-engineering.md): Explore the context-engineering topic hub.
- topic hub: [Agent Context](https://newruntime.com/topics/agent-context.md): Explore the agent-context topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
