[PR #5433] feat: add endpoints to delete and update message parts #11400

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

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

State: closed
Merged: Yes


Adds PUT and DELETE endpoints for message parts to enable custom compaction algorithms.

  • PUT /session/:sessionID/message/:messageID/part/:partID - update a part's metadata
  • DELETE /session/:sessionID/message/:messageID/part/:partID - delete a part

My use case is implementing a cli to delete wasteful tool calls from a session, custom compaction

I ran the script to re generate the SDK because the CI script that is supposed to do that was failing

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5433 **State:** closed **Merged:** Yes --- Adds PUT and DELETE endpoints for message parts to enable custom compaction algorithms. - `PUT /session/:sessionID/message/:messageID/part/:partID` - update a part's metadata - `DELETE /session/:sessionID/message/:messageID/part/:partID` - delete a part My use case is implementing a cli to delete wasteful tool calls from a session, custom compaction I ran the script to re generate the SDK because the CI script that is supposed to do that was failing
yindo added the pull-request label 2026-02-16 18:16:14 -05:00
yindo closed this issue 2026-02-16 18:16:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11400