agentMessages.map((m, index) check m.id.startsWith("assistant") but "assistant" lie to m.role
change check m.id.startsWith("assistant") => m.role.startsWith("assistant") in app.tsx
if (isToolUIPart(part) && m.id.startsWith("assistant") ) =>>>> if ( isToolUIPart(part) && m.role.startsWith("assistant") )

Otherwise, it will prevent the Approve button from appearing when accessing the tools- function.