Skip to content

Fix Morph handling of OpenCode compaction events#17

Open
bhaktatejas922 wants to merge 1 commit intomainfrom
fix/issue-13-compact-event
Open

Fix Morph handling of OpenCode compaction events#17
bhaktatejas922 wants to merge 1 commit intomainfrom
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

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