Skip to content

Use vercelRunOutcome in Vercel AI SDK Core framework guide#3443

Merged
rainbowFi merged 1 commit into
mainfrom
fix/ait-1034-vercel-run-outcome
Jun 26, 2026
Merged

Use vercelRunOutcome in Vercel AI SDK Core framework guide#3443
rainbowFi merged 1 commit into
mainfrom
fix/ait-1034-vercel-run-outcome

Conversation

@rainbowFi

@rainbowFi rainbowFi commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes AIT-1034.

The Vercel AI SDK Core framework guide piped the model stream and called run.end({ reason }) directly, skipping vercelRunOutcome. This diverged from the getting started guide and the 0.2.0 blog post, both of which route the pipe result through vercelRunOutcome before ending the run.

Changes

  • Updated the before/after contrast snippet and the full agent route to use vercelRunOutcome.
  • Added vercelRunOutcome to the import.
  • Updated the "three pieces" explanation to describe the outcome handling, linking the vercelRunOutcome reference.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 16a9c4d9-02b3-4171-80d2-bab951613c9b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ait-1034-vercel-run-outcome

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rainbowFi rainbowFi requested a review from VeskeR June 24, 2026 16:05
@rainbowFi rainbowFi enabled auto-merge (rebase) June 26, 2026 13:13
The agent route snippets piped the stream and called run.end({ reason })
directly, skipping vercelRunOutcome. This diverged from the getting started
guide and the 0.2.0 blog post, and dropped tool-call suspension and the
finishReason rejection guard. Align both snippets and the explanation with
the canonical pattern.

Fixes AIT-1034
@rainbowFi rainbowFi force-pushed the fix/ait-1034-vercel-run-outcome branch from df50012 to e33ff54 Compare June 26, 2026 13:14
@rainbowFi rainbowFi merged commit e858242 into main Jun 26, 2026
7 checks passed
@rainbowFi rainbowFi deleted the fix/ait-1034-vercel-run-outcome branch June 26, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants