You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sanitize remaining issue-ref and blame headline response paths
Route every MinimalIssueRef/MinimalPullRequestRef construction through shared
constructors that sanitize the user-authored title, so issue_dependency_read,
issue_dependency_write and find_duplicate no longer forward raw issue titles.
Also sanitize the get_file_blame commit message headline, after truncation so
the headline is still cut at the author's real first line break.
Extends the sanitization regression suite with the project status update body,
both ref constructors and the dependency ref, and adds tool-level regression
tests for find_duplicate and get_file_blame.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
returnutils.NewToolResultError("ranked duplicate detection is unavailable: the semantic-similarity endpoint returned issues without ranking metadata (the server-side duplicate-ranking feature is not enabled for this caller or repository)"), nil, nil
153
153
}
154
154
candidates=append(candidates, duplicateCandidate{
155
-
Issue: MinimalIssueRef{
156
-
Number: res.Issue.Number,
157
-
Title: res.Issue.Title,
158
-
State: res.Issue.State,
159
-
URL: res.Issue.HTMLURL,
160
-
},
155
+
// Candidates are always scoped to the requested repository, so the
156
+
// ref's repository field is left empty as it was before.
0 commit comments