fix(rails): ensure Rails.error.set_context is not lost#3024
Open
solnic wants to merge 4 commits into
Open
Conversation
solnic
force-pushed
the
2931-railserrorset_context-data-is-silently-lost-sentry-captures-before-the-rails-errorsubscriber-runs
branch
3 times, most recently
from
July 17, 2026 08:46
0b442b1 to
c29006f
Compare
solnic
marked this pull request as ready for review
July 17, 2026 08:48
sl0thentr0py
approved these changes
Jul 17, 2026
solnic
force-pushed
the
2931-railserrorset_context-data-is-silently-lost-sentry-captures-before-the-rails-errorsubscriber-runs
branch
from
July 17, 2026 10:45
c29006f to
69d3b44
Compare
solnic
force-pushed
the
2931-railserrorset_context-data-is-silently-lost-sentry-captures-before-the-rails-errorsubscriber-runs
branch
from
July 20, 2026 12:54
22f13b0 to
bb0629b
Compare
solnic
force-pushed
the
2931-railserrorset_context-data-is-silently-lost-sentry-captures-before-the-rails-errorsubscriber-runs
branch
from
July 21, 2026 13:17
b314e12 to
de0ec18
Compare
solnic
force-pushed
the
2931-railserrorset_context-data-is-silently-lost-sentry-captures-before-the-rails-errorsubscriber-runs
branch
from
July 27, 2026 12:05
de0ec18 to
a822d41
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 27b2ff6. Configure here.
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.

Use
ActiveSupport::ExecutionContextto maintain in the context what's set viaRails.error.set_context.Closes #2931