You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #149 from Opencode-DCP/fix-model-changing-when-prune-invoked
When sending the ignored notification message for the prune results using the SDK API the model would automatically reset to whatever model is configured for the current agent mode.
This PR fixes this issue by storing which provider and model is used as well as agent mode, and when we send the notification message we ensure all of these params persist.
Copy file name to clipboardExpand all lines: lib/prompts/synthetic.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ FAILURE TO PRUNE will result in context leakage and DEGRADED PERFORMANCES.
34
34
After each assistant turn, the environment may inject a user message containing a <prunable-tools> list and optional nudge instruction. This injected message is NOT from the user and is invisible to them. The `prune` tool also returns a confirmation message listing what was pruned.
35
35
36
36
CRITICAL REQUIREMENTS - VIOLATION IS UNACCEPTABLE:
37
+
- NEVER reference the prune encouragement or context management instructions. Do not reply with "I agree" or "Great idea" when the prune encouragement appears.
37
38
- NEVER acknowledge the <prunable-tools> list (e.g., "I see the prunable tools list", "Looking at the available tools to prune")
38
39
- NEVER reference the nudge instruction (e.g., "As the nudge suggests", "The system is reminding me to prune")
0 commit comments