Skip to content

ref(seer): Migrate issue-view titles to one-shot - #128451

Open
sehr-m wants to merge 4 commits into
masterfrom
sehrm/migrate-issue-view-title-oneshot
Open

sehr-m wants to merge 4 commits into
masterfrom
sehrm/migrate-issue-view-title-oneshot

Conversation

@sehr-m

@sehr-m sehr-m commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Migrate issue-view title generation off the soon-to-be-deprecated /v1/llm/generate endpoint as part of consolidating all LLM prompts and model selection in Seer. Depends on the merged Seer one-shot handler in https://github.com/getsentry/seer/pull/8963.

Summary

  • call the named issue_view_title one-shot with only the query and viewer identity
  • remove prompt construction, model selection, query truncation, and legacy response handling from Sentry
  • validate the structured title returned by Seer while preserving existing endpoint behavior
  • cover the signed one-shot request end to end through Sentry's HTTP transport, including payload, timeout, and viewer context
  • remove the issue-view caller from the S030 legacy API allowlist
  • decouple the S030 regression tests from a real migrating caller so the allowlist can continue shrinking

Validation

  • .venv/bin/pytest -svv --create-db tests/sentry/seer/endpoints/test_issue_view_title_generate.py (11 passed)
  • .venv/bin/pytest -q tests/tools/test_flake8_plugin.py -k S030 (7 passed)
  • SENTRY_MYPY_PRE_PUSH=1 .venv/bin/prek run -q mypy --files src/sentry/seer/endpoints/issue_view_title_generate.py --stage pre-push
  • .venv/bin/prek run -q
  • repository commit hooks
  • pre-push mypy checks

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 21, 2026
@sehr-m
sehr-m marked this pull request as ready for review October 21, 2026 22:02
@sehr-m
sehr-m requested review from a team as code owners October 21, 2026 22:02

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bcda113. Configure here.

Comment thread tools/flake8_plugin.py Outdated

This branch was successfully deployed

1 active (outdated) deployment
Preview — bcda113b Deployed Oct 21, 2026 by vercel[bot]
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