Skip to content

fix(issues): Improve issue view title generation prompt#114391

Merged
scttcper merged 2 commits intomasterfrom
scttcper/issue-view-title-generate
Apr 30, 2026
Merged

fix(issues): Improve issue view title generation prompt#114391
scttcper merged 2 commits intomasterfrom
scttcper/issue-view-title-generate

Conversation

@scttcper
Copy link
Copy Markdown
Member

@scttcper scttcper commented Apr 29, 2026

Previously, it would title is:unresolved oauth as "Unresolved" instead of "OAuth Issues". Reworked it to prefer specific query subjects (free text, tags) over generic state filters like is:unresolved.

Added a light prompt injection guard
Serialized request shape

Use a DRF serializer for input validation instead of manual checks.
Rework the system prompt to prefer specific query terms over generic
state filters and add a prompt injection guard. Add structured logging
with query_length on error paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 29, 2026
@scttcper scttcper marked this pull request as ready for review April 30, 2026 15:29
@scttcper scttcper requested a review from a team as a code owner April 30, 2026 15:29
@scttcper scttcper requested a review from a team April 30, 2026 15:30
@scttcper scttcper changed the title ref(seer): Improve issue view title generation prompt and validation fix(issues): Improve issue view title generation prompt and validation Apr 30, 2026
@scttcper scttcper changed the title fix(issues): Improve issue view title generation prompt and validation fix(issues): Improve issue view title generation prompt Apr 30, 2026
@scttcper scttcper merged commit 6041808 into master Apr 30, 2026
64 checks passed
@scttcper scttcper deleted the scttcper/issue-view-title-generate branch April 30, 2026 15:33
cleptric pushed a commit that referenced this pull request May 5, 2026
Previously, it would title `is:unresolved oauth` as "Unresolved" instead
of "OAuth Issues". Reworked it to prefer specific query subjects (free
text, tags) over generic state filters like `is:unresolved`.

Added a light prompt injection guard
Serialized request shape
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