Skip to content

fix: add synthetic user prompt after session compaction - #2659

Merged
thdxr merged 1 commit into
anomalyco:devfrom
jdiaz5513:glm45-compact-fix
Sep 18, 2025
Merged

thdxr merged 1 commit into
anomalyco:devfrom
jdiaz5513:glm45-compact-fix

Conversation

@jdiaz5513

Copy link
Copy Markdown
Contributor

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.

@thdxr
thdxr merged commit 71076d5 into anomalyco:dev Sep 18, 2025
yokowasis pushed a commit to yokowasis/opencode-sst that referenced this pull request Sep 18, 2025
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI_APICallError: The messages parameter is illegal. Please check the documentation. - Zhipu AI GLM-4.5

2 participants