Skip to content

fix(seer): Propagate viewer_context on explorer run polling#114281

Merged
trevor-e merged 1 commit intomasterfrom
telkins/fix/explorer-client-viewer-context-polling
Apr 29, 2026
Merged

fix(seer): Propagate viewer_context on explorer run polling#114281
trevor-e merged 1 commit intomasterfrom
telkins/fix/explorer-client-viewer-context-polling

Conversation

@trevor-e
Copy link
Copy Markdown
Member

SeerExplorerClient builds a SeerViewerContext at construction and
threads it through start_run, continue_run, get_runs, and
push_changes. The polling path (get_run, and the push_changes
PR-creation poll) was the odd one out — it called fetch_run_status /
poll_until_done without passing viewer_context, so the explicit
context was silently dropped on every poll. This caused
viewer_context.missing (point='seer_rpc_out') warnings whenever the
caller (e.g. a Celery task) had no ambient viewer context set, like
night-shift triage.

Add an optional viewer_context kwarg to fetch_run_status and
poll_until_done and pass self.viewer_context from the three client
callsites, matching the existing pattern in the rest of the client.

SeerExplorerClient builds a SeerViewerContext at construction and threads
it through start_run, continue_run, get_runs, and push_changes — but the
polling path (get_run, and the push_changes PR-creation poll) called
fetch_run_status / poll_until_done without passing viewer_context. The
explicit context was silently dropped on every poll, causing
viewer_context.missing warnings at the seer_rpc_out chokepoint whenever
the caller (e.g. a Celery task) had no ambient viewer context set.

Add an optional viewer_context kwarg to fetch_run_status and
poll_until_done and pass self.viewer_context from the three client
callsites, matching the existing pattern in the rest of the client.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 29, 2026
@trevor-e trevor-e marked this pull request as ready for review April 29, 2026 15:25
@trevor-e trevor-e requested a review from a team as a code owner April 29, 2026 15:25
@trevor-e trevor-e merged commit c893e8e into master Apr 29, 2026
60 checks passed
@trevor-e trevor-e deleted the telkins/fix/explorer-client-viewer-context-polling branch April 29, 2026 15:27
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants