René's URL Explorer Experiment


Title: ERROR api.chat DataStream onError triggered: TypeError: Cannot read properties of undefined (reading 'typeName') · Issue #69 · codinit-dev/codinit-dev · GitHub

Open Graph Title: ERROR api.chat DataStream onError triggered: TypeError: Cannot read properties of undefined (reading 'typeName') · Issue #69 · codinit-dev/codinit-dev

X Title: ERROR api.chat DataStream onError triggered: TypeError: Cannot read properties of undefined (reading 'typeName') · Issue #69 · codinit-dev/codinit-dev

Description: What happened? while rendering response, browser reports error Error Details: Custom error: Cannot read properties of undefined (reading 'typeName') How to reproduce http://localhost:5173/chat/1 enter a request/prompt wait for response.....

Open Graph Description: What happened? while rendering response, browser reports error Error Details: Custom error: Cannot read properties of undefined (reading 'typeName') How to reproduce http://localhost:5173/chat/1 en...

X Description: What happened? while rendering response, browser reports error Error Details: Custom error: Cannot read properties of undefined (reading 'typeName') How to reproduce http://localhost:5173/c...

Opengraph URL: https://github.com/codinit-dev/codinit-dev/issues/69

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ERROR api.chat DataStream onError triggered: TypeError: Cannot read properties of undefined (reading 'typeName')","articleBody":"### What happened?\n\nwhile rendering response, browser reports error \nError Details: Custom error: Cannot read properties of undefined (reading 'typeName')\n\n### How to reproduce\n\n1. http://localhost:5173/chat/1\n2. enter a request/prompt\n3. wait for response... interupted by reported error\n\n### Environment\n\nchrome\nwindows\nollama: local http://127.0.0.1:11434/\nversion 1.2.3\n\n### Extra info\n\naccording to copilot there's an error with the following\n\nThe error is in zod-to-json-schema when it tries to parse tool definitions. The issue is that one of the tool schemas passed to [streamText](vscode-file://vscode-app/c:/Users/antho/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/workbench.html) is invalid or not a proper Zod schema.\n\nThe error happens in prepareToolsAndToolChoice when the AI SDK tries to convert tool schemas. Let me check how tools are being provided to streamText:\n\nThe issue is on line 224: [const builtInTools = builtInToolService.toolsWithoutExecute;]\n\nThe problem is that [toolsWithoutExecute] is returning tool objects that don't have valid Zod schemas. Let me check the BuiltInToolService to see the tool definitions:\n\nThe JSON has valid parameter schemas. But the issue is that when these are loaded, they're just plain JSON objects, not Zod schemas. The AI SDK expects Zod schemas, not plain JSON schemas.\n\nThe fix is to not pass tools if they don't have valid Zod schemas, or to validate them first. Let me add a check:\n\nThe issue was that the built-in tools defined in the JSON file have JSON schemas (not Zod schemas), and when the AI SDK tries to convert them to JSON schema for tool validation, it fails because the structure isn't compatible.\n\nThe fix disables the built-in tools that are loaded from JSON since they're not proper Zod schemas. The actual tool execution is still handled through the [processToolInvocations] method on the server side, so functionality isn't lost.\n\n_stream-text.ts_\n  if (Object.keys(builtInTools).length \u003e 0) {\n\nremove... allTools ={ ...allTools, ...builtInTools };\nremove... logger.info(`Added ${Object.keys(...\n\nadd...    logger.info(`Filtering built-in tools - checking for valid schemas`);\nadd...    const validBuiltInTools: Record\u003cstring, any\u003e = {};\nadd...    \nadd...    for (const [toolName, toolDef] of Object.entries(builtInTools)) {\nadd...      // Only include tools that have proper definitions (not just JSON schemas)\nadd...      // Built-in tools from JSON don't have Zod validation, so we skip them for now\nadd...      // and rely on MCP and server-side tool processing instead\nadd...      logger.debug(`Skipping built-in tool ${toolName} - JSON schemas not compatible with AI SDK tool format`);\nadd...    }\nadd...    \nadd...    if (Object.keys(validBuiltInTools).length \u003e 0) {\nadd...      allTools = { ...allTools, ...validBuiltInTools };\nadd...      logger.info(`Added ${Object.keys(validBuiltInTools).length} valid built-in tools`);\nadd...    } else {\nadd...      logger.info(`No valid built-in tools with proper schemas found for this model`);\nadd...    }\nadd...  }","author":{"url":"https://github.com/ambbone","@type":"Person","name":"ambbone"},"datePublished":"2026-01-15T22:11:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/69/codinit-dev/issues/69"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:743c006e-fcea-40b2-3f06-ffd7f991cb20
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB5B8:E0442:6F9791:9214D5:698EB0CF
html-safe-noncef1382f1a497acb980cb855b9c4e55308f63a1aea81b39b980d31abcd0d9feadc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUI4OkUwNDQyOjZGOTc5MTo5MjE0RDU6Njk4RUIwQ0YiLCJ2aXNpdG9yX2lkIjoiMzc3MTE0Mjk4MDI5Mjc1MTU2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb701c429abe9c1314c3cd26e3ca45b614a526ff472498c44c8066978aab297d0
hovercard-subject-tagissue:3819401815
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codinit-dev/codinit-dev/69/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0aac162c9fc79ca2c64a34fd05fada5169da22758095768e2ede0abd92bb6edd/codinit-dev/codinit-dev/issues/69
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0aac162c9fc79ca2c64a34fd05fada5169da22758095768e2ede0abd92bb6edd/codinit-dev/codinit-dev/issues/69
og:image:altWhat happened? while rendering response, browser reports error Error Details: Custom error: Cannot read properties of undefined (reading 'typeName') How to reproduce http://localhost:5173/chat/1 en...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameambbone
hostnamegithub.com
expected-hostnamegithub.com
Nonecb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba
turbo-cache-controlno-preview
go-importgithub.com/codinit-dev/codinit-dev git https://github.com/codinit-dev/codinit-dev.git
octolytics-dimension-user_id216432367
octolytics-dimension-user_logincodinit-dev
octolytics-dimension-repository_id1069539460
octolytics-dimension-repository_nwocodinit-dev/codinit-dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1069539460
octolytics-dimension-repository_network_root_nwocodinit-dev/codinit-dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6b91a7e6e46287d26887e3fb7a4161657bab8f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/codinit-dev/codinit-dev/issues/69#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodinit-dev%2Fcodinit-dev%2Fissues%2F69
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodinit-dev%2Fcodinit-dev%2Fissues%2F69
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=codinit-dev%2Fcodinit-dev
Reloadhttps://github.com/codinit-dev/codinit-dev/issues/69
Reloadhttps://github.com/codinit-dev/codinit-dev/issues/69
Reloadhttps://github.com/codinit-dev/codinit-dev/issues/69
codinit-dev https://github.com/codinit-dev
codinit-devhttps://github.com/codinit-dev/codinit-dev
Please reload this pagehttps://github.com/codinit-dev/codinit-dev/issues/69
Notifications https://github.com/login?return_to=%2Fcodinit-dev%2Fcodinit-dev
Fork 73 https://github.com/login?return_to=%2Fcodinit-dev%2Fcodinit-dev
Star 197 https://github.com/login?return_to=%2Fcodinit-dev%2Fcodinit-dev
Code https://github.com/codinit-dev/codinit-dev
Issues 5 https://github.com/codinit-dev/codinit-dev/issues
Pull requests 5 https://github.com/codinit-dev/codinit-dev/pulls
Discussions https://github.com/codinit-dev/codinit-dev/discussions
Actions https://github.com/codinit-dev/codinit-dev/actions
Security 0 https://github.com/codinit-dev/codinit-dev/security
Insights https://github.com/codinit-dev/codinit-dev/pulse
Code https://github.com/codinit-dev/codinit-dev
Issues https://github.com/codinit-dev/codinit-dev/issues
Pull requests https://github.com/codinit-dev/codinit-dev/pulls
Discussions https://github.com/codinit-dev/codinit-dev/discussions
Actions https://github.com/codinit-dev/codinit-dev/actions
Security https://github.com/codinit-dev/codinit-dev/security
Insights https://github.com/codinit-dev/codinit-dev/pulse
New issuehttps://github.com/login?return_to=https://github.com/codinit-dev/codinit-dev/issues/69
New issuehttps://github.com/login?return_to=https://github.com/codinit-dev/codinit-dev/issues/69
Taskhttps://github.com/codinit-dev/codinit-dev/issues?q=type:"Task"
#71https://github.com/codinit-dev/codinit-dev/pull/71
ERROR api.chat DataStream onError triggered: TypeError: Cannot read properties of undefined (reading 'typeName')https://github.com/codinit-dev/codinit-dev/issues/69#top
#71https://github.com/codinit-dev/codinit-dev/pull/71
https://github.com/Gerome-Elassaad
bugSomething isn't workinghttps://github.com/codinit-dev/codinit-dev/issues?q=state%3Aopen%20label%3A%22bug%22
good first issueGood for newcomershttps://github.com/codinit-dev/codinit-dev/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/ambbone
https://github.com/ambbone
ambbonehttps://github.com/ambbone
on Jan 15, 2026https://github.com/codinit-dev/codinit-dev/issues/69#issue-3819401815
http://localhost:5173/chat/1http://localhost:5173/chat/1
http://127.0.0.1:11434/http://127.0.0.1:11434/
Gerome-Elassaadhttps://github.com/Gerome-Elassaad
bugSomething isn't workinghttps://github.com/codinit-dev/codinit-dev/issues?q=state%3Aopen%20label%3A%22bug%22
good first issueGood for newcomershttps://github.com/codinit-dev/codinit-dev/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
Taskhttps://github.com/codinit-dev/codinit-dev/issues?q=type:"Task"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.