desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Switch to tab not working if tab is unloaded

Open helscarthe opened this issue 8 months ago • 12 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [ ] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

When you open new tab and try to access a link that already has a tab open for it, Zen correctly detects that and suggest you "Switch to tab". This function works fine if the tab is loaded - if the tab is unloaded however, Zen just opens a new tab.

I expect it to move to the existing tab and reloads the tab.

Version

1.10.3b, 1.11.1b

What platform are you seeing the problem on?

Windows - x64

What component is this issue related to?

Tab unloading

Relevant log output if applicable


helscarthe avatar Apr 04 '25 03:04 helscarthe

Yeeeeeeeeeeees this bugged me

KiKaraage avatar Apr 05 '25 14:04 KiKaraage

Same issue as #5881 but seeing as that was just closed as part of a repo cleanup I guess we should follow this thread now... This feels like a core feature to me so I wish devs could take notice.

Oddward avatar Apr 07 '25 00:04 Oddward

Update: still happening on 1.11.1b.

helscarthe avatar Apr 08 '25 02:04 helscarthe

I believe this might have a similar cause as #6743 (the setting page doesn't switch to the unloaded setting tab), which I was about to reopen after the cleanup. Although this issue may not occur before 1.10.1b (if I remember correctly), #5881 has been present since 1.8.2b.

HanchaiN avatar Apr 10 '25 05:04 HanchaiN

same issue on linux (flatpak) as well

jamjam2103 avatar Apr 14 '25 18:04 jamjam2103

Yes, "Switch to tab" doesn't work, create a new tab. In Mozilla Firefox Developer Edition 138.0b6 doesn't happen. Zen Twilight v1.11.3t

IvanRosNavarro avatar Apr 15 '25 09:04 IvanRosNavarro

Switch tab from the urlbar?

mr-cheffy avatar Apr 15 '25 14:04 mr-cheffy

do you mean using the urlbar instead of the new tab bar? also does not work, same issue

jamjam2103 avatar Apr 21 '25 02:04 jamjam2103

Duplicate issue, but has a nice Video that shows the buggy behaviour: https://github.com/zen-browser/desktop/issues/7653

starfishpatkhoo avatar Apr 21 '25 03:04 starfishpatkhoo

not exactly a "workaround", but i set browser.tabs.unloadOnLowMemory to false and then just ctrl+tab'd through all my tabs to keep them loaded

dibenzepin avatar May 06 '25 13:05 dibenzepin

@poopsicles ya you can turn off tab unloading altogether in the regular settings: browser settings > Tab management > Tab Unloader, or set specific tabs to avoid being put to sleep: right-click context menu > Tab Unloader Actions > Prevent Tab Unload, but the issue is with unloaded tabs.

Oddward avatar May 06 '25 23:05 Oddward

Issue still exists on 1.12.5b appimage on linux.

EpicGazel avatar May 17 '25 10:05 EpicGazel

Still exists in 1.13.2b appimage.

EpicGazel avatar Jun 20 '25 11:06 EpicGazel

Hi, @helscarthe. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The "Switch to tab" function in Zen does not work correctly when the target tab is unloaded.
  • This issue results in a new tab being opened instead of switching to and reloading the existing tab.
  • It affects multiple versions (1.10.3b, 1.11.1b, 1.12.5b, 1.13.2b) and both Windows and Linux users.
  • Similar issues have been reported (#5881, #6743), with some users suggesting settings adjustments as temporary workarounds.
  • The issue remains unresolved and is significant as it impacts core functionality.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Jul 21 '25 16:07 dosubot[bot]

Still in 1.14.5b appimage.

EpicGazel avatar Jul 21 '25 16:07 EpicGazel

Definitely still getting hit by this too

krad246 avatar Jul 21 '25 22:07 krad246

still a relevant issue that shouldn't get stale

Lu9-ST avatar Jul 29 '25 00:07 Lu9-ST

I can confirm this bug still exists in 1.14.9b on Windows x64..

Steps to reproduce:

  1. Open a bunch of new tabs, choose one of them as your "original" active tab
  2. Choose some tabs and right click and unload them, keeping some others active
  3. In your "original" active tab, press CTRL+T to bring up the tab URL bar
  4. Type "%" and space to start looking for tabs, and key in the page title of a tab that was unloaded in step 2
  5. Click on the "Switch to tab" button
  6. Notice a new tab opens with the URL of the tab in question
  7. Click on some other unloaded tab to reload them back
  8. Go back to the first "original" tab
  9. Try steps 3 to 5 again, but this time with one of the active tabs
  10. Notice it switches to the tab correctly

Expected behavior: In step 6, it should switch to the unloaded tab, and load it.

Detailed enough steps to reproduce? ^_^

starfishpatkhoo avatar Jul 29 '25 03:07 starfishpatkhoo

This issue makes working with a large amount of tabs virtually impossible, as Switch to Tab is practically a tab search function - without it, managing any sizeable number of tabs becomes ridiculously tedious.

This issue is also literally the only reason why I can't use Zen anymore even though I loved everything else about Zen 🥲 I hope devs look at this issue soon.

helscarthe avatar Jul 29 '25 04:07 helscarthe

I am not sure if this is the same issue, but when I close and re-open the browser (i.e. all tabs are unloaded), non of the tabs show up in the CTRL+Tab menu. If I then manually click/switch to some of the tabs and they get loaded, they appear in CTRL+Tab

AKuederle avatar Aug 01 '25 08:08 AKuederle

Still facing this issue. Makes working with lots of tabs basically impossible.

skaldebane avatar Aug 21 '25 23:08 skaldebane

In the latest Zen (Version 1.15b (64-bit)) this is fixed for me!

This fix, along with all existing tabs coming up as a priority result in the new tab bar without prefixing with % are the things I want most from Zen (coming from Arc). Especially now that pinned tab folders exist!

integrii avatar Aug 28 '25 15:08 integrii

Fixed in v1.15b

Propheticus avatar Aug 28 '25 18:08 Propheticus

I hate to be the that guy, but today this feature is not working. Either I somehow had all 5+ tabs I tested this on open at the time I thought it was fixed, or it was working only on first start. Today, tabs that aren't open do not come up with I type % as a prefix.

This one needs Reopened.

integrii avatar Aug 30 '25 00:08 integrii

@integrii Still works for me, even across different spaces. Only typing % (don't forget a space) will only show a handful of suggestions, maybe not containing the tab you're looking for. So you'd need to also type part of their title to search.

Trying to make this more specific:

  • By "tabs that aren't open" do you mean tabs that exist but are unloaded?
  • Any difference between tabs in collapsed folders and those outside or in open folders?
  • Searching for tabs in the current workspace or others?
  • Have these tabs been renamed and did you look for their new name or their (original) page title?

Propheticus avatar Aug 30 '25 07:08 Propheticus

I'm not using folders just yet, so it is working for me. But I'd say now I am having a different adjacent issue that would be more a QoL addition for Zen as a whole: when you switch to the tab, the tab bar does not scroll to the place where the tab is but this also happens when closing a tab when it switches to a tab that is off-screen, or creating a new tab with Ctrl+T when you are at either the top or bottom of the list

Lu9-ST avatar Aug 30 '25 18:08 Lu9-ST

@Lu9-ST Make sure no mods / custom theming is causing this. The tab bar scrolls to the activated tabs just fine here when I test.

Propheticus avatar Aug 30 '25 21:08 Propheticus

Thanks for your reply Propheticus. I actually have not been using a space after the percent sign (because I didn't know) and that's been giving me what I want without the (TABS) pill popping up 😆.

Here are the 3 behaviors:

Just search for the pinned tab

In this situation, I get bookmarks, but never the tab that I want from my pinned tabs. For example, if I type unifi, I want the tab to favor the UniFi Network pinned tab to the left, but it's not in the results at all. If I select an item there from my bookmarks, it will open a new tab which leads to tab spam.

Image

However, if I type %unifi (I know this is wrong now lol) I see the result.

Image

For fun, it also does work when I use the proper % unifi query as well.

Image

The feature I want is for the % behavior to be enabled by default. Most of the time, I want to keep my hands on my keyboard and get to a tab by just typing part of it's name (good fuzzy search would be great!). That means that I want my existing tabs to be my top result in searches. I think there are many people coming from Arc that want this too.

As far as folders are concerned, I don't notice any behavior in them. I can nest things in folders and they seem to behave the same way as above.

As for renaming, I don't notice a difference either.

I am always searching within my same workspace.

Thanks for your time and I really hope that Zen continues to enable an Arc-like experience over the long run. It only needs a few things now that tab folders exist!

integrii avatar Aug 31 '25 03:08 integrii

In this situation, I get bookmarks, but never the tab that I want from my pinned tabs. For example, if I type unifi, I want the tab to favor the UniFi Network pinned tab to the left, but it's not in the results at all. If I select an item there from my bookmarks, it will open a new tab which leads to tab spam.

@integrii Make sure "Open tabs" is checked in Settings > Search.

Image

Ivaon avatar Aug 31 '25 05:08 Ivaon

All of those search check boxes are checked for me.

integrii avatar Aug 31 '25 08:08 integrii