[PR #5550] fix: rejoin system prompt after plugin hook to preserve caching #11472

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

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

State: closed
Merged: Yes


Summary

  • Fixes system prompt caching when plugins modify output.system

The caching logic in transform.ts expects exactly 2 system parts. If a plugin pushes additional parts, they won't be cached. This rejoins the array after the plugin hook to maintain the 2-part structure.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5550 **State:** closed **Merged:** Yes --- ## Summary - Fixes system prompt caching when plugins modify `output.system` The caching logic in `transform.ts` expects exactly 2 system parts. If a plugin pushes additional parts, they won't be cached. This rejoins the array after the plugin hook to maintain the 2-part structure.
yindo added the pull-request label 2026-02-16 18:16:18 -05:00
yindo closed this issue 2026-02-16 18:16:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11472