Repository navigation
ref(ai-monitoring): Always return conversation details envelope - #121143
Merged
Merged
Conversation
Drop apiVersion gating so GET ai-conversations/<id>/ always returns
{conversationId, title, spans} instead of a bare span list.
vgrozdanic
marked this pull request as ready for review
August 4, 2026 09:47
vgrozdanic
enabled auto-merge (squash)
August 4, 2026 09:48
jared-outpost Bot
added a commit
to getsentry/cli
that referenced
this pull request
Aug 5, 2026
…1365) ## Summary `sentry conversation view` was failing with a Zod validation error after the conversation details API started always returning an envelope object instead of a bare span array ([getsentry/sentry#121143](getsentry/sentry#121143)). ## Problem ``` Error: Unexpected response format from /organizations/sentry/ai-conversations/<id>/ Expected array, received object ``` Reproduction: https://sentry.sentry.io/explore/conversations/project_metadata_summary-317e47d These endpoints are `PRIVATE` and are not published in `@sentry/api` / sentry-api-schema, so the CLI owns local Zod schemas for them. ## Changes - Accept the `{ conversationId, title, spans }` details envelope and extract `spans` for transcript building - Surface `title` in human/JSON transcript output when present - Update API and formatter tests for the new shape (including a regression that rejects the old bare-array response) ## Testing - Unit tests: `conversations` API, `conversation view` command, conversation formatters - Manual: `pnpm run cli -- conversation view sentry/project_metadata_summary-317e47d` (no longer errors); conversation with spans renders title + transcript header Made with [Cursor](https://cursor.com) --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
BYK
pushed a commit
to getsentry/toolkit
that referenced
this pull request
Sep 23, 2026
…1365) ## Summary `sentry conversation view` was failing with a Zod validation error after the conversation details API started always returning an envelope object instead of a bare span array ([getsentry/sentry#121143](getsentry/sentry#121143)). ## Problem ``` Error: Unexpected response format from /organizations/sentry/ai-conversations/<id>/ Expected array, received object ``` Reproduction: https://sentry.sentry.io/explore/conversations/project_metadata_summary-317e47d These endpoints are `PRIVATE` and are not published in `@sentry/api` / sentry-api-schema, so the CLI owns local Zod schemas for them. ## Changes - Accept the `{ conversationId, title, spans }` details envelope and extract `spans` for transcript building - Surface `title` in human/JSON transcript output when present - Update API and formatter tests for the new shape (including a regression that rejects the old bare-array response) ## Testing - Unit tests: `conversations` API, `conversation view` command, conversation formatters - Manual: `pnpm run cli -- conversation view sentry/project_metadata_summary-317e47d` (no longer errors); conversation with spans renders title + transcript header Made with [Cursor](https://cursor.com) --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
BYK
pushed a commit
to getsentry/toolkit
that referenced
this pull request
Sep 30, 2026
…1365) ## Summary `sentry conversation view` was failing with a Zod validation error after the conversation details API started always returning an envelope object instead of a bare span array ([getsentry/sentry#121143](getsentry/sentry#121143)). ## Problem ``` Error: Unexpected response format from /organizations/sentry/ai-conversations/<id>/ Expected array, received object ``` Reproduction: https://sentry.sentry.io/explore/conversations/project_metadata_summary-317e47d These endpoints are `PRIVATE` and are not published in `@sentry/api` / sentry-api-schema, so the CLI owns local Zod schemas for them. ## Changes - Accept the `{ conversationId, title, spans }` details envelope and extract `spans` for transcript building - Surface `title` in human/JSON transcript output when present - Update API and formatter tests for the new shape (including a regression that rejects the old bare-array response) ## Testing - Unit tests: `conversations` API, `conversation view` command, conversation formatters - Manual: `pnpm run cli -- conversation view sentry/project_metadata_summary-317e47d` (no longer errors); conversation with spans renders title + transcript header Made with [Cursor](https://cursor.com) --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…etsentry#1365) ## Summary `sentry conversation view` was failing with a Zod validation error after the conversation details API started always returning an envelope object instead of a bare span array ([getsentry/sentry#121143](getsentry/sentry#121143)). ## Problem ``` Error: Unexpected response format from /organizations/sentry/ai-conversations/<id>/ Expected array, received object ``` Reproduction: https://sentry.sentry.io/explore/conversations/project_metadata_summary-317e47d These endpoints are `PRIVATE` and are not published in `@sentry/api` / sentry-api-schema, so the CLI owns local Zod schemas for them. ## Changes - Accept the `{ conversationId, title, spans }` details envelope and extract `spans` for transcript building - Surface `title` in human/JSON transcript output when present - Update API and formatter tests for the new shape (including a regression that rejects the old bare-array response) ## Testing - Unit tests: `conversations` API, `conversation view` command, conversation formatters - Manual: `pnpm run cli -- conversation view sentry/project_metadata_summary-317e47d` (no longer errors); conversation with spans renders title + transcript header Made with [Cursor](https://cursor.com) --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before #120746 we had no way of easily extending API response for conversation details, but now we do.
apiVersionwas just a temporary hack to update all the known clients to the new conversation response. Those clients are now updated, and we can stop returning old response from the API endpoint.