[PR #1407] [CLOSED] autocompaction #9922

Closed
opened 2026-02-16 18:14:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1407
Author: @lee101
Created: 7/29/2025
Status: Closed

Base: devHead: lee101/autocompact


📝 Commits (2)

  • 78d0b77 fx autocompaction
  • 6a4de40 closer threshold/per model, detect token overages and trigger compaction of just the end

📊 Changes

1 file changed (+195 additions, -0 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+195 -0)

📄 Description

noticed this kind of thing https://github.com/sst/opencode/issues/1092 where prompts are quickly too long, and this way it autocompacts if its over roughly 80k tokens


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1407 **Author:** [@lee101](https://github.com/lee101) **Created:** 7/29/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `lee101/autocompact` --- ### 📝 Commits (2) - [`78d0b77`](https://github.com/anomalyco/opencode/commit/78d0b77f924bdff41b1cb4676294e5e621b7390d) fx autocompaction - [`6a4de40`](https://github.com/anomalyco/opencode/commit/6a4de4007c738febf1e706c906f4a40f146893a8) closer threshold/per model, detect token overages and trigger compaction of just the end ### 📊 Changes **1 file changed** (+195 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+195 -0) </details> ### 📄 Description noticed this kind of thing https://github.com/sst/opencode/issues/1092 where prompts are quickly too long, and this way it autocompacts if its over roughly 80k tokens --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:23 -05:00
yindo closed this issue 2026-02-16 18:14:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9922