Repository navigation
fix(multi-panel): preserve live chat sessions when switching open modes - #115
Merged
Merged
Conversation
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.
Summary
chrome.windows.create({ tabId, type: 'popup', ... }).chrome.tabs.move, activating and focusing it (unminimizing if minimized), or adopts it into a new normal window when no compatible normal window is open.Tabs cannot be edited right now) with short backoff and keep the live page open (showing a toast) instead of recreating and closing the tab if retries exhaust.openModeHandofftoken key with failure cleanup.chrome.tabs.onAttachedmoves (e.g., Chrome's native "Show as tab") even if they arrive during a pending mode switch, and update the toggle button without waiting onchrome.storage.sync.get.Test Plan
tests/open-mode-switcher.test.js(22/22 passed).npx vitest run, 93 files / 1285 tests).tests/e2e/open-mode-switch.e2e.test.js(2/2 passed) verifying live iframe chat preservation across Tab ↔ Popup transitions and zero-normal-window recovery.