Uh oh!
There was an error while loading. Please reload this page.
fix(compaction): reserve full output budget - #32844
Conversation
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
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:
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. |
Issue for this PR
Closes#32656
Type of change
What does this PR do?
For models with
limit.input, compaction reserved at most 20K tokens for the next response even when the model output budget was larger. This PR reserves the full configured/model output budget and adds a boundary test for a 200K input / 32K output model.How did you verify your code works?
npx --yes bun@1.3.14 --cwd packages/opencode test test/session/compaction.test.tsScreenshots / recordings
Not a UI change.
Checklist