[GH-ISSUE #4278] In opencode, context compression cannot be invoked automatically. #1884

Closed
opened 2026-11-04 01:55:01 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @bai-yongfei on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4278

prompt (341477 tokens) leaves no room to answer in the context (262144); requests are never truncated

Originally created by @bai-yongfei on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4278 prompt (341477 tokens) leaves no room to answer in the context (262144); requests are never truncated
bsakaguchi 2026-11-04 01:55:01 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Add the Strata version (Settings > About, or strata --version).
  • Add your graphics card with its VRAM, your RAM and your operating system.

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6433053043 --> @github-actions[bot] commented on GitHub (Oct 27, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Add the Strata version (Settings > About, or `strata --version`). - [ ] Add your graphics card with its VRAM, your RAM and your operating system. Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@dandandelion commented on GitHub (Oct 27, 2026):

Happens to pi also. Just configure your opencode and set maximum output to a realistic amount like 64k or 82k and always reserve around that amount

<!-- gh-comment-id:6433206866 --> @dandandelion commented on GitHub (Oct 27, 2026): Happens to `pi` also. Just configure your opencode and set maximum output to a realistic amount like 64k or 82k and always reserve around that amount
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Strata does not cut a prompt that is too long; the client has to compact before the window is full. Run strata connect opencode --write (or strata connect opencode to print it): it writes limit.context, limit.input and limit.output for the model. Without limit.input, OpenCode never compacts. Add the same three numbers to your opencode.jsonc if you keep the file by hand.

<!-- gh-comment-id:6491972331 --> @Niko1221 commented on GitHub (Oct 29, 2026): Strata does not cut a prompt that is too long; the client has to compact before the window is full. Run `strata connect opencode --write` (or `strata connect opencode` to print it): it writes `limit.context`, `limit.input` and `limit.output` for the model. Without `limit.input`, OpenCode never compacts. Add the same three numbers to your `opencode.jsonc` if you keep the file by hand.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6553363700 --> @github-actions[bot] commented on GitHub (Nov 1, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1884
No description provided.