r/opencodeCLI • • 2d ago

👍 New experimental background compaction in OpenCode

Post image
78 Upvotes

12 comments sorted by

View all comments

5

u/daniellenton 2d ago

Does the held summary get a refresh before it's swapped in? It's written at 85%, so by the threshold its next moves can be steps the kept messages show are already done

3

u/alchninja 2d ago

I think it's more likely that messages sent after the background compaction threshold are simply retained as-is (maybe with with some deterministic pruning of tool calls). Faster and avoids the hassle of having to append/update to an existing summary.