fix(app): Fix double drop tip prompting after Error Recovery cancel action #17316
+52
−5
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.
Closes RQA-3880
Overview
Woops, in #17235 in 9b10793, I was a bit too overzealous in simplifying post-run tip detection logic, and I forgot to consider the case in which a user just canceled a run during Error Recovery and does tip detection flows. We don't want to prompt the user with the "remove tips" CTA right after we did just that during Error Recovery.
So this PR brings the
lastRunCommandPromptedErrorRecovery
util back and adds the new and improved behavior to also check if Error Recovery is enabled (in settings). If it's not enabled, we need to run tip detection even if the last run command was recoverable.Test Plan and Hands on Testing
Changelog
Risk assessment
low