-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(ai-generations): Add generations table #102389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ai-generations): Add generations table #102389
Conversation
| )?.content; | ||
| return typeof lastUserMessage === 'string' | ||
| ? lastUserMessage | ||
| : lastUserMessage[0].text.toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Unsafe Type Handling in getLastUserMessage
The getLastUserMessage function makes an unsafe assumption that if lastUserMessage isn't a string, it's an array with a text property at its first element. This can cause runtime errors if lastUserMessage is null, undefined, an empty array, or if lastUserMessage[0] lacks text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a try catch around it
| DrawerUrlParams.SELECTED_SPAN, | ||
| parseAsString.withOptions({history: 'replace'}) | ||
| ); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚢
<img width="1205" height="305" alt="Screenshot 2025-10-30 at 12 47 31" src="https://github.com/user-attachments/assets/3b601055-3848-44e8-b669-a5f7458c144f" /> - closes [TET-1286: AI Generations Page - Table](https://linear.app/getsentry/issue/TET-1286/ai-generations-page-table) - closes [TET-1287: AI Generations Page - Input/Output Columns](https://linear.app/getsentry/issue/TET-1287/ai-generations-page-inputoutput-columns)
Uh oh!
There was an error while loading. Please reload this page.