fix(cli): Keep regex log queries intact in --query - #1407
Conversation
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1031-keep-regex-log-queries-intact-in-the-sentry-cli
branch
from
October 5, 2026 16:38
c560771 to
61301cb
Compare
JoshuaKGoldberg
changed the base branch from
main
to
joshgoldberg/logs-1015-pass-regex-log-queries-through-sentry-mcps-search-tools-as
October 5, 2026 16:38
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1015-pass-regex-log-queries-through-sentry-mcps-search-tools-as
branch
from
October 5, 2026 16:42
7277c79 to
80ba22e
Compare
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1031-keep-regex-log-queries-intact-in-the-sentry-cli
branch
from
October 5, 2026 16:42
61301cb to
b71ce0c
Compare
Parse `key://pattern//` (and `!key://pattern//`) as a single opaque filter, ending at the first `//` followed by whitespace, `)`, or end of query, so sanitizeQuery no longer rewrites commas, brackets, `OR`/`AND`, or repeated whitespace inside a pattern. Document regex search in the syntax reference and the CLI skill docs for logs. Refs LOGS-1031 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sentry accepts tags[k,string], tags[k:sub], flags[...], quoted, and [*] keys before a regex value, so --query now preserves regexes on those keys instead of normalizing or rewriting inside the pattern. Refs LOGS-1031 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1031-keep-regex-log-queries-intact-in-the-sentry-cli
branch
from
October 5, 2026 18:17
b71ce0c to
12a56db
Compare
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1015-pass-regex-log-queries-through-sentry-mcps-search-tools-as
branch
from
October 5, 2026 18:17
80ba22e to
d801aab
Compare
This branch was successfully deployed
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 CLI's query sanitizer now passes
key://pattern//regex log filters through byte-for-byte instead of rewriting commas, boolean operators, and whitespace inside the pattern. The CLI docs and agent skill also gain a regex example and a don't-quote-it note.Closes LOGS-1031