Skip to content

Refactor: allow background operations to continue during tab navigatio#8

Merged
OpenTester007 merged 1 commit into
mainfrom
feature/persist-tab-nav
Jun 30, 2026
Merged

Refactor: allow background operations to continue during tab navigatio#8
OpenTester007 merged 1 commit into
mainfrom
feature/persist-tab-nav

Conversation

@OpenTester007

Copy link
Copy Markdown
Owner

Description

This PR removes the explicit abort() cancellation calls triggered during tab navigation.

Why

Previously, switching tabs (e.g. going from the Translate panel to the Settings or Chat panel) would immediately cancel any active translation or chat requests.

Solutions

  • Removed the abort() calls in tabNav click event listener.
  • Leveraged our background service worker architecture to allow translation and chat tasks to run in parallel in the background when user switches tabs.
  • Ensured that popup UI state and storage history updates remain consistent on successful task completion regardless of panel visibility.

@OpenTester007 OpenTester007 merged commit d49d8df into main Jun 30, 2026
1 check passed
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.

1 participant