desktop icon indicating copy to clipboard operation
desktop copied to clipboard

All tabs are gone after I close Zen

Open sanxroz opened this issue 1 year ago • 43 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.

What happened?

If I close Zen Browser using the X button at the top, all open tabs are lost. However, if I close it using Alt + F4, the tabs are preserved

Reproducible?

  • [ ] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.7.2b

What platform are you seeing the problem on?

Windows

Relevant log output if applicable


sanxroz avatar Jan 31 '25 21:01 sanxroz

This can be set in the settings. Try re-check this very first checkbox, in the General page of the Setting (the text depends on your localization), to re-open tabs and windows (browsing session) when startup. I found that mine was unchecked by Zen Browser, so that was why every time I lose my session after restart.

Image

GJRobert avatar Jan 31 '25 23:01 GJRobert

thanks @GJRobert , I had it checked. the issue is when opening a pop-up that doesn't have tabs; it overwrites my current session. that's why when I close it and reopen Zen, none of my previous tabs are there.

sanxroz avatar Jan 31 '25 23:01 sanxroz

Hi @sanxroz , so if you close that pop-up (non-tabbed) window before you close all other windows, then your session should be kept, am I correct?

GJRobert avatar Feb 01 '25 22:02 GJRobert

Similar behavior on current MacOS: When I close the only window by the "x"-close icon, then all the tabs are lost. But when I use CMD+Q or use the Quit command from the menu, then the tabs are save.

cyrdam avatar Feb 02 '25 11:02 cyrdam

Hi @cyrdam, this should be expected, since the Close Window red button works as "intentionally close this window" (but you can recover it from the History menu, Recently Closed Windows)

Meanwhile directly quit the app using ⌘Q does keep the session for us, if we have checked the box in my screenshot: https://github.com/zen-browser/desktop/issues/4797#issuecomment-2628553477

GJRobert avatar Feb 03 '25 23:02 GJRobert

Ok, the Open previous windows and tabs has turned itself on me twice now and my tabs aren't reopening after start. They are not available in Recently Closed Windows. This is a problem.

IanBoyte avatar Feb 14 '25 15:02 IanBoyte

If you have the Clear history when Zen closes option turned on, it will not reopen the tabs. I turned it off, and now the tabs reopen normally when I open the browser no matter how it was closed.

Tyarel8 avatar Feb 16 '25 00:02 Tyarel8

Hi @cyrdam, this should be expected, since the Close Window red button works as "intentionally close this window" (but you can recover it from the History menu, Recently Closed Windows)

IMHO this behavior does not feel very intuitive (at least not as a mac user) - closing the program completely keeps all tabs, but just closing the window deletes all tabs in every workspace? Pressing the X in the app menu item should just close the app window without closing any tabs inside of Zen.

kureey avatar Mar 04 '25 13:03 kureey

I'm having this same problem, but I notice that when I close the browser by the X, it creates a folder on my profile called sessionstore-logs and some log files and this is the content: 1741126766336 SessionStore ERROR The session file is invalid: : TypeError: state.windows[0] is undefined(resource:///modules/sessionstore/SessionStore.sys.mjs:1294:11) JS Stack trace: [email protected]:1294:11 onBeforeBrowserWindowShown/<@SessionStore.sys.mjs:2187:35

Image

This doesn't happen when I close Zen with ⌘Q

Puriinn avatar Mar 04 '25 22:03 Puriinn

Can confirm this behavior - when using the X button in the top left on Mac window, tabs aren’t preserved, even with “Open previous windows and tabs” enabled.

  • macOS Sequoia 15.3.1
  • Zen 1.8.2b (Firefox 135.0.1) (aarch64)

N-Soder avatar Mar 05 '25 03:03 N-Soder

Can you try with Firefox? This should be the expected behavior on macOS of Firefox, because using the red x button means "close window" intentionally, not quitting the app. To have the tabs back when you open Firefox/Zen next time, please use just ⌘Q to quit the app as a whole, do not close any single window.

GJRobert avatar Mar 05 '25 12:03 GJRobert

If you want all tabs to be restored after a window is closed, then what you need is a session management extension.

GJRobert avatar Mar 05 '25 12:03 GJRobert

This is definitely neither user-friendly, nor expected behavior. What it is, is ridiculous. Massively poor user experience. I just lost 4 workspaces worth of tabs just because someone "thinks" closing browser with X means I want all my tabs close. Are you joking?

Users will not relearn their workflow just because someone thinks he knows better. No, you do not. If I want all my tabs closed, ask me. If I want them restored in all their workspaces and I have all settings pointing to that behavior (like I did), then restore them as they were. If you cannot do that, do not expect people to use your browser, because it is simply hostile.

I have been working as a developer for quite some time but haven't seen such abysmal user experience in a very long while and calling it a "feature", on top of that.

technodrome avatar Mar 05 '25 19:03 technodrome

I am having a similar issue. This is a poor implementation of restore tabs feature.

funnirudh avatar Mar 05 '25 23:03 funnirudh

Allow me to ask: you guys here have you not used Firefox on Mac before? If so, then I can understand your feeling. But this issue is not only with Zen alone.

GJRobert avatar Mar 06 '25 00:03 GJRobert

Allow me to ask: you guys here have you not used Firefox on Mac before? If so, then I can understand your feeling. But this issue is not only with Zen alone.

Yes, I’ve used it before, and you’re right that this behavior is similar in Firefox for a single window. For me, the big difference is that Zen natively supports tab grouping with workspaces, whereas Firefox does not. However, with Firefox extensions for tab grouping, all tabs in all groups are always preserved regardless of how you exit the application.

For me, it boils down to these two main arguments for changing this behavior:

  • There shouldn’t be a difference between closing the app with Cmd+Q and closing the window with the X.

  • The main advantage of tab groups/workspaces is (or should be) the ability to return to a specific set of tabs.

kureey avatar Mar 06 '25 08:03 kureey

I just started giving Zen a try this week and there's a lot I like about it already. Tab-groups by default is one of the big things. I was a Firefox user for many years (13ish) before. I am not totally sure how I lost all my tabs in groups that weren't the default group. I understand the choice to keep it like Firefox where closing the window is separate from closing the app. I do see how it's a bit more confusing with Zen however since the user is more likely to have a single window, whereas with Firefox it would be common to have multiple windows open.

The one issue that I find confusing is I have alerts on when I'm closing a page, so if there were some tabs getting closed in a background group I would have expected to see that number reflected (for me it would have been 20+ tabs getting closed), but I never saw that.

challiwill avatar Mar 08 '25 05:03 challiwill

I tried to close and reopen zen browser, it stucked and crashed at last. When I reopen it agen, it lost all custom settings, and acts like a full new installed! I haven't closed zen browser for a long time, and maybe have upgraded with homebrew command in terminal. I have some important working tabs lost now, how can I get them back?

update:

I found 2 default settings in ....../zen/Profiles folder. I fixed this by replacing the smaller one with the bigger one, and it works.

kxxoling avatar Mar 09 '25 06:03 kxxoling

Duplicate of #6175

mr-cheffy avatar Mar 09 '25 10:03 mr-cheffy

You just closed this older ticket with plenty of details in favor of a new one with zero relevant comments which is one week old and called this one a duplicate? Superb ticket management.

technodrome avatar Mar 14 '25 16:03 technodrome