Skip to content

Conversation

@kashishhora
Copy link
Member

Summary

Modified

  • captureException now returns undefined type for non-Error objects (instead of "UnknownErrorType")
  • unwrapErrorCauses returns undefined type for non-Error causes in error chains
  • captureCallToolResultError returns undefined type when SDK converts errors to CallToolResult format

Fixed

  • Updated test assertions to expect undefined instead of "UnknownErrorType" for non-Error values
  • Updated SDK version-dependent tests to include undefined in valid type values

Test Plan

  • All 253 tests pass
  • TypeScript type checking passes
  • ESLint passes

@kashishhora kashishhora requested a review from naji247 November 24, 2025 21:11
@kashishhora kashishhora merged commit aa62bf2 into main Nov 24, 2025
8 checks passed
@kashishhora kashishhora deleted the fix/undefined-error-type branch November 24, 2025 22:35
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.

3 participants