fix(seer): Resolve UUID run_id in OrganizationSeerAgentUpdateEndpoint#118616
Merged
Conversation
The explorer-update endpoint forwarded run_id directly to Seer's /v1/automation/explorer/update as-is. After #117265 and #117780, the frontend sends a UUID (sentry_run_id) instead of the numeric seer_run_state_id, causing Seer to reject the request with an int_parsing error. Apply resolve_seer_run() to translate numeric IDs or UUIDs to the underlying seer_run_state_id before forwarding, mirroring the fix already applied to the chat endpoint's GET and POST (continue) paths. Refs #117265, #117780 Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 165140d. Configure here.
A mutating update should reject runs that aren't ready, not silently return poll-style 200 session bodies. Mirrors the continue path in the chat endpoint. Addresses Cursor Bugbot review comment on #118616. Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
srest2021
approved these changes
Jun 27, 2026
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.

What
After #117265 and #117780, the Seer Explorer frontend started sending
sentry_run_id(a UUID) instead of the numericseer_run_state_idfor run identification. The chat endpoint's GET (poll) and POST (continue) paths were updated to resolve either form viaresolve_seer_run(). The update endpoint (/seer/explorer-update/{run_id}/) was missed, so Seer's Pydantic model rejects UUID run IDs with:Fix
Apply
resolve_seer_run()toOrganizationSeerAgentUpdateEndpoint.post(), translating UUIDs (or numeric IDs) toseer_run_state_idbefore forwarding to Seer's/v1/automation/explorer/update. Mirrors the fix already applied to the chat endpoint.run_idtype hint widened tostr(the URL pattern already captured it as[^/]+)resolved.seer_run_state_id(int) used in the Seer request bodytest_explorer_update_with_uuid_run_idcovering the UUID path end-to-endrun_idassertion from"123"→123(now correctly an int after resolution)Reported by Sofia Rest. Refs #117265, #117780.
View Session in Sentry