fix(search): Pass regex log queries through as written - #1409
Conversation
JoshuaKGoldberg
changed the base branch from
main
to
joshgoldberg/logs-1014-teach-sentry-mcps-search-agent-regex-log-search
October 5, 2026 16:32
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1015-pass-regex-log-queries-through-sentry-mcps-search-tools-as
branch
from
October 5, 2026 16:32
f62e4c8 to
7277c79
Compare
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
Recognize `key://pattern//` regex filters as Sentry search syntax so regex-only log queries are no longer treated as natural language and replaced by Seer or embedded-agent rewrites. Treat a regex rewritten into a plain or wildcard filter as a downgrade, keep regex values with spaces or apostrophes as one token, and mention regex syntax in search_logs. Refs LOGS-1015 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sentry only runs key://pattern// as a regex on logs; other datasets match the literal text, so a regex sent to search_spans or search_errors now lets the agent's rewrite through instead of forcing an empty search. Refs LOGS-1015 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-1014-teach-sentry-mcps-search-agent-regex-log-search
branch
from
October 5, 2026 18:17
f5c77bf to
5bbb4b0
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 search tools now recognize
key://pattern//regex log filters as Sentry search syntax, so a regex query runs as written instead of being treated as natural language and rewritten. Rewriting a regex into a wildcard now counts as a filter downgrade, and thesearch_logsdescription mentions the syntax.Closes LOGS-1015