[PR #9097] feat(agent): allow pinning messages to keep them after compaction #12980

Open
opened 2026-02-16 18:17:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9097

State: open
Merged: No


What does this PR do?

To enable "Ralph loop" and similar long-running use-cases while still getting the benefits of compaction, there should be a built-in way to pin certain messages (similar to Agents.md instructions but per-session) so they are re-inserted after compaction.

How did you verify your code works?

Manually tested with exotic pinned messages and prompting after compaction

Closes #8932

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9097 **State:** open **Merged:** No --- ### What does this PR do? To enable "Ralph loop" and similar long-running use-cases while still getting the benefits of compaction, there should be a built-in way to pin certain messages (similar to Agents.md instructions but per-session) so they are re-inserted after compaction. ### How did you verify your code works? Manually tested with exotic pinned messages and prompting after compaction Closes #8932
yindo added the pull-request label 2026-02-16 18:17:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12980