Uploaded August 2026 | Updated November 2026, 1 day ago
Give an AI agent a tool that deletes files and it will delete files. AI SDK 7 adds tool approval, so the run pauses and asks you first.
In this video I build that in Nuxt. A chat app, a delete tool, and an approval card that stops the stream until you click approve or deny. Then I break it twice: reload the page mid-approval and lose the run, and look at where the approval decision actually comes from.
Covered along the way: the new Vue `useChat` composable in `@ai-sdk/vue`, why `needsApproval` on the tool is deprecated in v7, Nuxt UI's chat components, and what tool approval does not protect you from.
We also look at ACP and Kiro-CLI!
Check out my last video on introducing Nuxt 4.5
youtube.com/watch?v=Bty-hzN8l84
Follow me on socials!
X: https://x.com/ErikCH
LinkedIn: linkedin.com/in/erikhanchett
Bluesky : https://bsky.app/profile/erikch.bsky.social
Website: programwitherik.com
https://www.kiro.dev - my favorite harness!
Blog post dev.to/aws/how-to-build-an-ai-agent-that-asks-permission-first-nuxt-ai-sdk-7-n42
Repo - github.com/ErikCH/ai-sdk-7-nuxt-agents
Join my newsletter and get updated when I release cool stuff - programwitherik.com/newsletter
- AI SDK 7 announcement: vercel.com/blog/ai-sdk-7
- AI SDK 7 changelog: vercel.com/changelog/ai-sdk-7
- Nuxt UI chat components: ui.nuxt.com/docs/components/chat
- Nuxt 4.5 release notes: nuxt.com/blog/v4-5
0:00 What am I doing?
0:59 Code time!
02:34 More code!
05:18 ACP with Kiro CLI (Don't skip this! So cool!)
08:49 Leave a comment if you got this far please please please!
Give an AI agent a tool that deletes files and it will delete files. AI SDK 7 adds tool approval, so the run pauses and asks you first.
In this video I build that in Nuxt. A chat app, a delete tool, and an approval card that stops the stream until you click approve or deny. Then I break it twice: reload the page mid-approval and lose the run, and look at where the approval decision actually comes from.
Covered along the way: the new Vue `useChat` composable in `@ai-sdk/vue`, why `needsApproval` on the tool is deprecated in v7, Nuxt UI's chat components, and what tool approval does not protect you from.
We also look at ACP and Kiro-CLI!
Check out my last video on introducing Nuxt 4.5
youtube.com/watch?v=Bty-hzN8l84
Follow me on socials!
X: https://x.com/ErikCH
LinkedIn: linkedin.com/in/erikhanchett
Bluesky : https://bsky.app/profile/erikch.bsky.social
Website: programwitherik.com
https://www.kiro.dev - my favorite harness!
Blog post dev.to/aws/how-to-build-an-ai-agent-that-asks-permission-first-nuxt-ai-sdk-7-n42
Repo - github.com/ErikCH/ai-sdk-7-nuxt-agents
Join my newsletter and get updated when I release cool stuff - programwitherik.com/newsletter
- AI SDK 7 announcement: vercel.com/blog/ai-sdk-7
- AI SDK 7 changelog: vercel.com/changelog/ai-sdk-7
- Nuxt UI chat components: ui.nuxt.com/docs/components/chat
- Nuxt 4.5 release notes: nuxt.com/blog/v4-5
0:00 What am I doing?
0:59 Code time!
02:34 More code!
05:18 ACP with Kiro CLI (Don't skip this! So cool!)
08:49 Leave a comment if you got this far please please please!










