Skip to content

feat(agent): allow pinning messages to keep them after compaction - #9097

Closed
Killusions wants to merge 1 commit into
anomalyco:devfrom
Killusions:feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent
Closed

Killusions wants to merge 1 commit into
anomalyco:devfrom
Killusions:feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent

Conversation

@Killusions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch from d0cb0fb to 6cb9188 Compare January 19, 2026 11:58
@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch from 6cb9188 to 7579792 Compare January 26, 2026 12:50
@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch from 7579792 to 82c87b7 Compare January 30, 2026 13:01
@thdxr
thdxr force-pushed the dev branch 3 times, most recently from f1ae801 to 08fa7f7 Compare January 30, 2026 14:37
@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch 3 times, most recently from fd3899c to 2c51ea7 Compare February 27, 2026 12:15
@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch from 2c51ea7 to cdbeb4b Compare March 2, 2026 09:29
@Killusions
Killusions force-pushed the feat/allow-pinning-messages-to-keep-them-after-compaction-in-agent branch from cdbeb4b to a146871 Compare March 17, 2026 16:27
@rekram1-node

Copy link
Copy Markdown
Collaborator

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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.

[FEATURE]: Allow pinning important instructions/messages per session to keep them after compaction.

2 participants