Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): Fix double drop tip prompting after Error Recovery cancel action #17316

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

mjhuff
Copy link
Contributor

@mjhuff mjhuff commented Jan 21, 2025

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

  • Verified that we don't double prompt Error Recovery anymore.

Changelog

  • Canceling a run during error recovery and confirming no tips are attached no longer prompts tip dropping after the run is cancelled.

Risk assessment

low

@mjhuff mjhuff requested a review from a team as a code owner January 21, 2025 22:01
@mjhuff mjhuff requested review from shlokamin, sfoster1 and smb2268 and removed request for a team and shlokamin January 21, 2025 22:01
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

womp womp

@mjhuff mjhuff changed the title App fix double tip prompting fix(app): Fix double drop tip prompting after Error Recovery cancel action Jan 21, 2025
@mjhuff mjhuff merged commit 0da7b99 into chore_release-8.3.0 Jan 21, 2025
36 checks passed
@mjhuff mjhuff deleted the app_fix-double-tip-prompting branch January 21, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants