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
{{ message }}
Repository navigation
Add a way to delete message parts and messages in the sdk #3033
My use case is writing a plugin that removes tool parts from plan messages, this way I can switch from GPT5 to Sonnet after a plan message without getting the model confused by all the tool calls in context
ChatGPT already does this (it exposes previous message reasoning via an on demand tool), follow up messages discard all the reasoning parts and only keep the final message in context. Codex may do the same too.
Activity
rekram1-node commentedon Oct 8, 2025
makes sense, related: #2941
I think anthropic likes to have the CoT at least until a loop is completed but i think openai does what u said above
remorses commentedon Jan 24, 2026
This is now possible with the new v2 /update endpoints.