anomalyco / anomalyco/opencode
/compact can keep completed work in Next Move after preserved-tail turns
@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
- Compact a session whose summary lists
run testsunderNext Move. - Run the tests successfully in one of the preserved recent turns.
- Run
/compactagain. - Observe that
run testscan remain underNext Move.
Screenshot and/or share link
N/A
Operating System
macOS
Terminal
iTerm2 / zsh
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.