Repository navigation
fix(server-utils): Record Vercel AI system instructions from message objects - #26181
Merged
Merged
Conversation
…objects Closes: #26079 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fa69f7b. Configure here.
Contributor
size-limit report 📦Compared: a970ffe (PR test merge using develop at 24aed1b) Against: 24aed1b (develop) · base run #65247 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 6 not successful, 50 successful. See the run.
Successful checks
|
andreiborza
marked this pull request as ready for review
November 6, 2026 14:43
andreiborza
requested review from
a team,
isaacs,
mydea and
nicohrubec
and removed request for
a team
November 6, 2026 14:43
nicohrubec
approved these changes
Nov 6, 2026
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
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.

What
Vercel AI spans now record
gen_ai.system_instructionswhen the system prompt is a message object or an array of messages.Why
The AI SDK accepts these forms, and they are the documented way to set provider options such as Anthropic prompt caching. The spans lost the system prompt for these calls.
Closes: #26079