anomalyco / anomalyco/opencode

/compact can keep completed work in Next Move after preserved-tail turns

Open
#38,530 1 comment 1 reaction 1 assignee View on GitHub

@jlongster is already working on this.

Since Jul 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

A repeated /compact can preserve stale work under Next Move when the previous summary lists an action and the recent preserved tail shows that action was completed. The tail remains in the session but is excluded from the summarizer history, so it cannot reconcile the previous summary.

Expected: completed work is removed from Next Move. The recent tail should remain preserved and should only be supplied as a small, sanitized reconciliation audit.

Replaces #28063, which was closed by inactivity. PR #46364 contains the current regression coverage and bounded tail-audit implementation, replacing the auto-closed #28067.

Plugins

None

OpenCode version

Current dev (9f69463f1d)

Steps to reproduce
  1. Compact a session whose summary lists run tests under Next Move.
  2. Run the tests successfully in one of the preserved recent turns.
  3. Run /compact again.
  4. Observe that run tests can remain under Next Move.
Screenshot and/or share link

N/A

Operating System

macOS

Terminal

iTerm2 / zsh

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.