Skip to content

fix(gemini): keep every system message in the system instruction - #154

Merged
hung12ct merged 1 commit into
mainfrom
fix/gemini-multiple-system-messages
Nov 2, 2026
Merged

hung12ct merged 1 commit into
mainfrom
fix/gemini-multiple-system-messages

Conversation

@hung12ct

@hung12ct hung12ct commented Nov 2, 2026

Copy link
Copy Markdown
Owner
  • The adapter overwrote systemInstruction per system message, so only the last survived. The loop's soft-landing hint is appended as a trailing system message, so on Gemini it replaced the whole system prompt near the iteration cap.
  • Each system message now becomes its own part of the single system instruction, in order.

Only the last system message was kept, so a trailing loop hint replaced the system prompt.
@hung12ct
hung12ct merged commit f774cfc into main Nov 2, 2026
2 checks passed
@hung12ct
hung12ct deleted the fix/gemini-multiple-system-messages branch November 2, 2026 11:31
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.

1 participant