GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — feat(core): allow per-model compaction buffer by PzaThief · Pull Request #56443 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This works as described, but one generated file needs updating before it's ready. I checked it with the core config, compaction and shared-schema tests and the schema model tests (all pass) and with type checks of packages/core and packages/schema (pass). I also read through the settings merge: Provider.mergeOverlay merges provider and model settings deeply, so a model { buffer } keeps the provider's type, and the order model → provider → top-level compaction.buffer holds. Using the session model's buffer for the "is it due" check and the compaction model's buffer for the summary budget is consistent, since each is measured against that model's own window.
Public API:
settings.compaction.buffer (non-negative integer) to providers and models. Existing configs still validate.Provider.Compaction / ProviderCompaction changes from { type: "summary" } | { type: "native" } to { type?: "summary" | "native"; buffer?: number }. Configs are backwards compatible, and a missing type still means summary. TypeScript code that read compaction.type as always set now has to handle undefined.Concern: packages/protocol/openapi.json is stale, so bun run check:generated in packages/protocol fails with this change but passes on the base.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Tested this branch locally against head 926ae54 (Windows, Bun 1.4.0):
The model-level One rebase note: current |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[FEATURE]: per-model compaction threshold (reserved/buffer)
There was an error while loading. Please reload this page.