Skip to content

fix(session): reconcile compaction summary with preserved tail#28067

Open
samiralibabic wants to merge 1 commit into
anomalyco:devfrom
samiralibabic:fix/session-compact-tail-reconcile
Open

fix(session): reconcile compaction summary with preserved tail#28067
samiralibabic wants to merge 1 commit into
anomalyco:devfrom
samiralibabic:fix/session-compact-tail-reconcile

Conversation

@samiralibabic
Copy link
Copy Markdown

Issue for this PR

Closes #28063

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes stale compaction summaries when recent preserved turns complete work that the previous summary still listed as next steps.

The compaction prompt now gets a small recent-tail reconciliation view, so it can remove completed items from Next Steps without changing the preserved-tail behavior.

How did you verify your code works?

  • bun test packages/opencode/test/session/compaction.test.ts
  • bun typecheck

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/compact summary can show stale Next Steps because preserved recent tail is excluded from summary reconciliation

1 participant