Skip to content

feat(seer): Populate SeerAgentRun.group from the client's group#117314

Merged
trevor-e merged 1 commit into
masterfrom
telkins/seer-agent-run-group
Jun 10, 2026
Merged

feat(seer): Populate SeerAgentRun.group from the client's group#117314
trevor-e merged 1 commit into
masterfrom
telkins/seer-agent-run-group

Conversation

@trevor-e

Copy link
Copy Markdown
Member

SeerAgentRun.group was declared but never written. start_run only passed project, and SeerAgentClient had no way to receive a group, so the mirror column was always NULL. Autofix communicated the issue to Seer solely through category_value and a hand-built metadata group_id.

SeerAgentClient now takes a typed group param (sibling of project) that populates the column on run creation.

Single source for group_id

start_run injects group_id into the Seer metadata payload from self.group, mirroring how project_id is injected from self.project. Autofix no longer hand-builds {"group_id": group.id} — it passes group=group once, which feeds both the column and the Seer metadata.

Explorer chat, night-shift triage (spans many candidate groups), and the read-only get_autofix_agent_state correctly leave the column NULL.

SeerAgentRun.group was declared but never written: start_run only passed
project, and the SeerAgentClient had no way to receive a group. Autofix
identified the issue to Seer solely via category_value and a hand-built
metadata group_id, leaving the mirror column always NULL.

Add a typed group param to SeerAgentClient (sibling of project) so the
column is populated on run creation, and source group_id in the Seer
metadata payload from that field instead of hand-threading it in autofix.

Co-Authored-By: Claude <noreply@anthropic.com>

@chromy chromy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 10, 2026
@trevor-e trevor-e marked this pull request as ready for review June 10, 2026 16:02
@trevor-e trevor-e requested a review from a team as a code owner June 10, 2026 16:02
@trevor-e

Copy link
Copy Markdown
Member Author

@sentry review

@trevor-e trevor-e added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Jun 10, 2026
@trevor-e trevor-e merged commit 0b7e908 into master Jun 10, 2026
81 of 84 checks passed
@trevor-e trevor-e deleted the telkins/seer-agent-run-group branch June 10, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants