Skip to content

release(runway): cherry-pick fix: reload after failed transaction cp-13.26.0#41523

Merged
chloeYue merged 1 commit intorelease/13.26.0from
runway-cherry-pick-13.26.0-1775593682
Apr 8, 2026
Merged

release(runway): cherry-pick fix: reload after failed transaction cp-13.26.0#41523
chloeYue merged 1 commit intorelease/13.26.0from
runway-cherry-pick-13.26.0-1775593682

Conversation

@runway-github
Copy link
Copy Markdown
Contributor

@runway-github runway-github bot commented Apr 7, 2026

Description

Remove the sidePanel.setOptions call on failed transactions that
caused the sidepanel to reload when already open.

This mitigates the issue, while considering alternative solutions for an
"open-and-navigate-to-tab"

Changelog

CHANGELOG entry: null

Related issues

Fixes: #41473

Manual testing steps

  1. Submit a transaction that will fail while the sidepanel is open

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described
    in the ticket it closes and includes the necessary testing evidence such
    as recordings and or screenshots.

Note

Low Risk
Small behavioral change limited to MV3 UI configuration after
failed/dropped transactions; risk is low and mainly involves ensuring
the action popup still points to the Activity tab without unintended
side effects.

Overview
Prevents the side panel from reloading on failed/dropped transactions
by removing the MV3 browser.sidePanel.setOptions updates that
previously changed the side panel path to ?tab=activity (and back when
cleared).

Failed-transaction handling now only updates the extension action
popup (browser.action.setPopup) while keeping the badge count/clearing
behavior unchanged.

Reviewed by Cursor Bugbot for commit
47de11d. Bugbot is set up for automated
code reviews on this repo. Configure
here.

[6a4a707](https://github.com/MetaMask/metamask-extension/commit/6a4a70728ac351ee6a443dfa0333fe5778cff5a4)

…13.26.0 (#41519)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

Remove the `sidePanel.setOptions` call on failed transactions that
caused the sidepanel to reload when already open.

This mitigates the issue, while considering alternative solutions for an
"open-and-navigate-to-tab"

## **Changelog**

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry: null

## **Related issues**

Fixes: #41473 

## **Manual testing steps**

1. Submit a transaction that will fail while the sidepanel is open

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Small behavioral change limited to MV3 UI configuration after
failed/dropped transactions; risk is low and mainly involves ensuring
the action popup still points to the Activity tab without unintended
side effects.
> 
> **Overview**
> Prevents the side panel from reloading on failed/dropped transactions
by **removing the MV3 `browser.sidePanel.setOptions` updates** that
previously changed the side panel path to `?tab=activity` (and back when
cleared).
> 
> Failed-transaction handling now only updates the extension action
popup (`browser.action.setPopup`) while keeping the badge count/clearing
behavior unchanged.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
47de11d. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-bots Bot team (for MetaMask Bot, Runway Bot, etc.) label Apr 7, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Apr 7, 2026

Builds ready [adf6f0f]
⚡ Performance Benchmarks (Total: 🟢 18 pass · 🟡 0 warn · 🔴 0 fail)

Baseline (latest main): f34f804 | Date: 9/10/58222 | Pipeline: 24102841430 | Baseline logs

Interaction Benchmarks
Benchmarkchrome-browserify
loadNewAccount🟢 [Show logs]
confirmTx🟢 [Show logs]
bridgeUserActions🟢 [Show logs]
Startup Benchmarks
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/initialActions: -38%
  • startupPowerUserHome/domInteractive: -11%
  • startupPowerUserHome/backgroundConnect: +103%
  • startupPowerUserHome/numNetworkReqs: -51%
  • startupStandardHome/firstPaint: +11%
  • startupPowerUserHome/numNetworkReqs: -43%
  • startupStandardHome/domInteractive: +25%
  • startupStandardHome/initialActions: -38%
  • startupPowerUserHome/domInteractive: +15%
  • startupStandardHome/initialActions: +11%
  • startupStandardHome/setupStore: -45%
  • startupPowerUserHome/domInteractive: -14%
  • startupPowerUserHome/setupStore: -29%
  • startupPowerUserHome/numNetworkReqs: -15%
User Journey Benchmarks
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟢 [Show logs]
solanaAssetDetails🟢 [Show logs]
importSrpHome🟢 [Show logs]
sendTransactions🟢 [Show logs]
swap🟢 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/metricsToWalletReadyScreen: -25%
  • onboardingImportWallet/doneButtonToHomeScreen: -75%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +33%
  • onboardingImportWallet/total: -40%
  • onboardingNewWallet/skipBackupToMetricsScreen: +11%
  • onboardingNewWallet/doneButtonToAssetList: -25%
  • onboardingNewWallet/total: -20%
  • assetDetails/assetClickToPriceChart: -61%
  • assetDetails/total: -61%
  • solanaAssetDetails/assetClickToPriceChart: -66%
  • solanaAssetDetails/total: -66%
  • importSrpHome/loginToHomeScreen: +11%
  • importSrpHome/openAccountMenuAfterLogin: -73%
  • importSrpHome/homeAfterImportWithNewWallet: -38%
  • importSrpHome/total: -32%
  • sendTransactions/openSendPageFromHome: +47%
  • sendTransactions/reviewTransactionToConfirmationPage: +11%
  • sendTransactions/total: +11%
  • swap/openSwapPageFromHome: -86%
  • swap/fetchAndDisplaySwapQuotes: +31%
  • swap/total: +14%
🌐 Dapp Page Load Benchmarks

Current Commit: adf6f0f | Date: 4/7/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±51ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 734ms (±49ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 86ms (±11ms) 🟢 | historical mean value: 85ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 51ms 1.01s 1.31s 1.09s 1.31s
domContentLoaded 734ms 49ms 706ms 999ms 778ms 999ms
firstPaint 86ms 11ms 72ms 176ms 100ms 176ms
firstContentfulPaint 86ms 11ms 72ms 176ms 100ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 5.44 MiB (100%)
  • ui: 8.19 MiB (100%)
  • common: 12.31 MiB (100%)

Copy link
Copy Markdown
Contributor

@chloeYue chloeYue left a comment

Choose a reason for hiding this comment

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

LGTM

@chloeYue chloeYue merged commit fa4ca23 into release/13.26.0 Apr 8, 2026
199 checks passed
@chloeYue chloeYue deleted the runway-cherry-pick-13.26.0-1775593682 branch April 8, 2026 06:56
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

team-bots Bot team (for MetaMask Bot, Runway Bot, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants