-
Notifications
You must be signed in to change notification settings - Fork 3.4k
add experimental.chat.messages.transform hook #5207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+33
−17
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
/review |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Collaborator
|
/review |
Contributor
|
lgtm |
rekram1-node
reviewed
Dec 8, 2025
rekram1-node
reviewed
Dec 8, 2025
…encode into chat-messages-transform-hook
Collaborator
|
/review |
Contributor
|
lgtm |
shuv1337
added a commit
to Latitudes-Dev/shuvcode
that referenced
this pull request
Dec 11, 2025
Merge origin/dev containing: - v1.0.150 release - fix: Writing to Bun.stderr causes CPU pinning to 100% (sst#5396) - feat: add caching for opencode binary in GitHub Actions (sst#5384) - add experimental.chat.messages.transform hook (sst#5207) This merge preserves all local fork customizations: - Night Owl theme and OpenCode theme - AsciiMark/AsciiLogo branding - Font/Theme pickers in header - Go-to-parent session navigation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a chat messages transform hook to allow plugins to alter chat messages.
We expose the MessageV2.WithParts through the new hook, but give deep copies of the chat history to avoid plugins altering the original messages
Previously, the chain would look something like this:
Now, with the new changes: