Repository navigation
fix(ai): read the host of a URL word in the search query check - #7332
Merged
Merged
Conversation
The check of a web search query reads the host of each word. For a word that is a URL with a scheme, the parser call gave the scheme as the host. The check now reads the word and each URL in it with the standard URL parser, and a URL word gives the result of its bare host. `url_candidates` in `devops_cli.http.urls` finds the URL candidates of a text for the check and for `urls_in_order`. Refs #7329
2 tasks
Owner
Author
Check resultsHead commit:
Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/45882818627/job/140126100974 Skipped check: Trivy |
Owner
Author
Local checksHead commit
The classifier error that a generated word found during this work is #7333. It is not a part of this change. |
dan-petty
marked this pull request as ready for review
November 26, 2026 19:31
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 26, 2026
🤖 I have created a release *beep* *boop* --- ## [0.223.1](v0.223.0...v0.223.1) (2026-11-26) ### Bug Fixes * **ai:** read the host of a URL word in the search query check ([#7332](#7332)) ([2927816](2927816)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The check of a web search query reads the host of each word. For a word that is a URL with a scheme, the parser call gave the scheme as the host, so the check did not read the host that the word names.
The check now reads a word with the standard URL parser in each form: a URL with a scheme, a scheme-relative URL, a URL inside a longer word, and a URL in the path or the query of another URL, percent-encoded one time or not. A URL word gives the result of its bare host. Upper-case letters and a dot at the end of a host do not change the result. A text that the URL parser refuses raises no error: the check reads each part of it as a host.
url_candidatesindevops_cli.http.urlsfinds the URL candidates of a text for the check and forurls_in_order. The refusal messages and the order of the checks stay.Closes #7329
Change:
openspec/changes/archive/2026-11-26-7329-search-query-check-url-host/