diff options
| author | Dax Raad <[email protected]> | 2025-09-13 05:53:03 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-13 05:53:03 -0400 |
| commit | eb24d2f8474c22ee3cb4d02ea40df8132728d8ca (patch) | |
| tree | 09dbf53198afa46ea1d656e3c0d693da215c6537 | |
| parent | 9bb25a9260329c429acf704ddb4b57da3042383d (diff) | |
| download | opencode-eb24d2f8474c22ee3cb4d02ea40df8132728d8ca.tar.gz opencode-eb24d2f8474c22ee3cb4d02ea40df8132728d8ca.zip | |
ignore: fix
| -rw-r--r-- | packages/opencode/src/session/compaction.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/session/compaction.ts b/packages/opencode/src/session/compaction.ts index 3a216255e..6039ed263 100644 --- a/packages/opencode/src/session/compaction.ts +++ b/packages/opencode/src/session/compaction.ts @@ -25,7 +25,7 @@ export namespace SessionCompaction { const count = input.tokens.input + input.tokens.cache.read + input.tokens.output const output = Math.min(input.model.limit.output, SessionPrompt.OUTPUT_TOKEN_MAX) || SessionPrompt.OUTPUT_TOKEN_MAX const usable = input.model.limit.context - output - return count > usable / 2 + return count > usable } export async function run(input: { sessionID: string; providerID: string; modelID: string }) { |
