Skip to content

Conversation

@nearestnabors
Copy link
Contributor

@nearestnabors nearestnabors commented Jan 22, 2026

Preview: https://docs-git-mastra-tutorial-update-arcade-ai.vercel.app/en/get-started/agent-frameworks/vercelai

Summary

  • Updates Mastra tutorial workflow to use proper auth error handling with arcade.auth.start()
  • Changes workflow to send email digest as a DM instead of posting to #general channel
  • Uses Slack_WhoAmI to dynamically get user's Slack ID for DM
  • Passes authRequired/authUrl through workflow steps to handle OAuth flows
  • Uses ARCADE_USER_ID environment variable with sensible defaults
  • Updates documentation to explain workflow auth handling patterns
  • Adds key takeaway about workflows needing explicit auth handling

Test plan

  • Verify tutorial code samples compile without errors
  • Test workflow execution in Mastra Studio
  • Confirm email digest is sent as DM to user, not to #general

🤖 Generated with Claude Code


Note

Consolidates Mastra docs into a single, end‑to‑end tutorial that includes a working agent and workflow with explicit OAuth handling and Slack DM via Slack_WhoAmI, plus guidance like tool output truncation and Zod conversion.

  • Adds comprehensive mastra/page.mdx with agent, workflow, auth flow (arcade.auth.start()), and examples; removes old Mastra pages
  • Updates redirects in next.config.ts to point legacy Mastra paths to the new consolidated page
  • Tweaks CSS so only h3 headings are numbered in Steps; keeps nested list spacing fix
  • Updates agent-frameworks/_meta.tsx label to "Vercel AI SDK"
  • Regenerates public/llms.txt content and metadata

Written by Cursor Bugbot for commit 8ebed03. This will update automatically on new commits. Configure here.

nearestnabors and others added 3 commits January 22, 2026 18:06
- Consolidate multi-page tutorial into single comprehensive page
- Add tool configuration with MCP servers and individual tools
- Include output truncation to prevent token overflow
- Add email digest workflow example
- Update Steps component CSS to not number nested h4-h6 headings
- Add callout linking to multi-user auth guide
- Update redirects to point old pages to new single page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add auth error handling with arcade.auth.start() in workflow steps
- Pass authRequired/authUrl through workflow steps
- Use Slack_WhoAmI to get user's Slack ID
- Send digest as DM instead of posting to #general channel
- Use defaultUserId from ARCADE_USER_ID env var
- Update documentation to explain workflow auth handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 22, 2026 7:48pm

Request Review

@nearestnabors nearestnabors enabled auto-merge (squash) January 22, 2026 19:14
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style Review

Found 9 style suggestion(s).

Powered by Vale + Claude

github-actions[bot]

This comment was marked as resolved.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions[bot]

This comment was marked as resolved.

github-actions[bot]

This comment was marked as duplicate.

cursor[bot]

This comment was marked as outdated.

- Changed workflow default userId from empty string to 'default-user' to match agent behavior
- Fixed Gmail tool name from 'Gmail.ListEmails' (dot) to 'Gmail_ListEmails' (underscore) to match tool configuration
@cursor
Copy link

cursor bot commented Jan 22, 2026

Bugbot Autofix resolved 2 of the 2 bugs found in the latest run.

  • ✅ Fixed: Inconsistent default userId values between agent and workflow
    • Changed workflow default userId from empty string to 'default-user' to match agent behavior in both tutorial and complete code sections.
  • ✅ Fixed: Inconsistent tool name format uses dot vs underscore
    • Changed tool name from 'Gmail.ListEmails' to 'Gmail_ListEmails' to match the tool configuration format in both tutorial and complete code sections.

github-actions[bot]

This comment was marked as duplicate.

nearestnabors and others added 5 commits January 22, 2026 19:26
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

nearestnabors and others added 2 commits January 22, 2026 19:27
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions[bot]

This comment was marked as duplicate.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

github-actions[bot]

This comment was marked as duplicate.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON. A Cloud Agent has been kicked off to fix the reported issue.

@cursor
Copy link

cursor bot commented Jan 22, 2026

Bugbot Autofix resolved the bug found in the latest run.

  • ✅ Fixed: Redundant key takeaways convey same information
    • Removed the redundant bullet point at line 608 that duplicated the agent vs workflow information already provided in line 604.

@nearestnabors nearestnabors merged commit cad6d71 into main Jan 22, 2026
8 checks passed
@torresmateo
Copy link
Collaborator

nits:

  • if possible add bun to the list of runtimes/package managers?
  • have the selection of the runtime be sticky (so that I only need to pick it once)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants