Skip to content

Fix Morph handling of OpenCode compaction events#17

Merged
bhaktatejas922 merged 1 commit into
mainfrom
fix/issue-13-compact-event
Jun 1, 2026
Merged

Fix Morph handling of OpenCode compaction events#17
bhaktatejas922 merged 1 commit into
mainfrom
fix/issue-13-compact-event

Conversation

@bhaktatejas922

Copy link
Copy Markdown
Contributor

Closes #13.

Summary

  • Treat OpenCode native compaction as the persisted compaction path in current 1.14.x releases.
  • Arm Morph compression from experimental.session.compacting, then compress OpenCode's selected history to one summary in the following experimental.chat.messages.transform call.
  • Preserve OpenCode's default compaction prompt anchoring by appending Morph context instead of replacing output.prompt.
  • Add logs/toast text and README guidance so users can verify why OpenCode native compaction still appears after the Morph toast, including behavior with 1M context windows.

Tests

  • bun test
  • bun run build
  • bun run typecheck
  • bun run ci
  • git diff --check

@bhaktatejas922 bhaktatejas922 merged commit dbc6d62 into main Jun 1, 2026
1 check passed
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.

Does it even compact with 1M context window models?

1 participant