[PR #2659] fix: add synthetic user prompt after session compaction #10396

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

Original Pull Request: https://github.com/anomalyco/opencode/pull/2659

State: closed
Merged: Yes


The GLM 4.5 family of models seem to have trouble parsing completion requests that don't have at least one user role message in it.

This follows up the assistant summary message created after session overflow with a brief user message prompting the model to continue.

Resolves #2557.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2659 **State:** closed **Merged:** Yes --- The GLM 4.5 family of models seem to have trouble parsing completion requests that don't have at least one `user` role message in it. This follows up the `assistant` summary message created after session overflow with a brief `user` message prompting the model to continue. Resolves #2557.
yindo added the pull-request label 2026-02-16 18:15:02 -05:00
yindo closed this issue 2026-02-16 18:15:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10396