desktop icon indicating copy to clipboard operation
desktop copied to clipboard

New tab does not open in same container as current tab

Open xamcost opened this issue 1 year ago • 19 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.
  • [x] 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?

Hi there! First, thank you for your awesome work! This issue reports an unexpected behaviour about multi-account containers: opening a new tab does not put it in the same container as the current tab. So steps to reproduce are easy:

  • open a tab in a given container and switch focus to it
  • open a new tab with Ctrl/Cmd + T and type whatever you want
  • check that the new tab has no container assigned

I checked and this is not consistent with Firefox: new tabs opened with Cmd + T are always opened in the same container as the current tab.

I also tried to tick the Select a container for each new tab option in the Container Tabs settings in Zen's preferences, to "force" Zen to ask for a container when creating a new tab, to no avail. This actually does nothing, which might be a different issue.

Finally, note that right-clicking on an opened tab to select New Tab Below works as intended: it opens the new tab in the same container.

Other info: I'm running on MacOS aarch64, version 15.4.1. Let me know if you need more details.

Version

1.12.5b

What platform are you seeing the problem on?

macOS - aarch64

What component is this issue related to?

Tabs

Relevant log output if applicable


xamcost avatar May 15 '25 08:05 xamcost

Just as a side note: you could work around this by assigning a default container to the workspace you are in.

torgeros avatar Jun 03 '25 08:06 torgeros

Can reproduce in 1.12.10b on Win x64.

  • Am in a container tab (example is called "susp")

Image

  • Do a Ctrl + T and see the floating URL bar mention the correct container. This gives the impression the new tab will be opened in that container.

Image

  • New tab opens in no container

If set, it uses the workspace's default container. That makes more sense, because what would otherwise be the value of having this default? The issue here happens when no default is set though, so the current tab's container should not be overruled.

Propheticus avatar Jun 03 '25 09:06 Propheticus

Just as a side note: you could work around this by assigning a default container to the workspace you are in.

Thank you for your suggestion @torgeros . It helps, but it doesn't fully work around the issue if you use multiple containers in the same workspace.

One workaround is to leverage the temporary containers extension. In its preferences, you can enable opening tabs in same container as current tab in Advanced > Keyboard Shortcuts. This shortcut is Alt + X by default but you can remap it to Cmd + T to get the expected behaviour.

xamcost avatar Jun 03 '25 10:06 xamcost

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

Issue Summary:

  • You reported an issue on macOS where new tabs do not inherit the container of the current tab.
  • torgeros suggested setting a default container, but you noted this doesn't fully resolve the issue with multiple containers.
  • Propheticus confirmed the issue on Windows and suggested using the current tab's container when no default is set.
  • You proposed using the Temporary Containers extension as a workaround.

Next Steps:

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

Thank you for your understanding and contribution!

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

Still relevant

xamcost avatar Jul 05 '25 00:07 xamcost

Same issue here, started happening today on 1.14.5b and Win11 x64.

All tabs opening in my "Work" container even if there is only "No Container" tabs or if I ctrl+click from a current "no container" tab. Settings for default container for workspace also don't work anymore.

hipur avatar Jul 16 '25 16:07 hipur

This is also a security risk.

seIIers avatar Jul 31 '25 07:07 seIIers

Issue still persists. MacOS and Windows confirmed as of today

gitHabbe avatar Sep 20 '25 12:09 gitHabbe

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

Issue Summary:

  • You reported that new tabs opened with Ctrl/Cmd + T do not inherit the current tab's container on macOS aarch64, differing from Firefox's default behavior.
  • The "Select a container for each new tab" setting does not affect this behavior.
  • The issue was confirmed on Windows 10 x64, with new tabs opening without a container unless a default workspace container is set.
  • Workarounds include setting a default container per workspace or using the Temporary Containers extension with remapped shortcuts.
  • The problem persists in version 1.14.5b on Windows 11 and macOS, with multiple users noting it as a security concern.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the desktop repository by commenting here.
  • If I do not hear back within 10 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

dosubot[bot] avatar Dec 20 '25 16:12 dosubot[bot]

It's still relevant.

xamcost avatar Dec 20 '25 18:12 xamcost

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

Issue Summary:

  • You reported that in version 1.12.5b on macOS aarch64, new tabs opened with Ctrl/Cmd + T do not inherit the current tab's container, unlike Firefox's default behavior.
  • This issue was confirmed by others on Windows and macOS, with new tabs defaulting to a workspace container or no container, raising security concerns.
  • Workarounds include setting a default container per workspace or using the Temporary Containers extension with remapped shortcuts.
  • Despite reminders and ongoing discussion, the issue remains unresolved and still relevant as of the latest comments.

Next Steps:

  • Please let me know if this issue is still present in the latest version of the desktop repository by commenting here to keep the discussion open.
  • If I do not hear back within 10 days, I will automatically close this issue.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 21 '26 16:03 dosubot[bot]

Still relevant!

Brambor avatar Mar 31 '26 18:03 Brambor

The tab opens based on the space's container, its expected, the previous tab is unrelated to the new one

mr-cheffy avatar Mar 31 '26 19:03 mr-cheffy

The tab opens based on the space's container, its expected, the previous tab is unrelated to the new one

I disagree. When I work (develop web pages) in container logged in as A, I expect ctrl+t, clicking lings etc. to keep me in the same container to still be logged in as A.

I have 3 separate containers for 3 separate roles at the same time as well as fourth default one.

This issue costs me time.

Brambor avatar Mar 31 '26 22:03 Brambor

Does firefox also do this? You should just assign profiles to separate spaces

mr-cheffy avatar Mar 31 '26 22:03 mr-cheffy

Does firefox also do this?

According to the issue description, Firefox does it differently:

I checked and this is not consistent with Firefox: new tabs opened with Cmd + T are always opened in the same container as the current tab.

You should just assign profiles to separate spaces

That would break workflow immensly. I switch between tabs constantly. I use workspaces for different jobs (different employers or projects) and one workspace is for free time.

I also split view tabs in different containers. Which is impossible for tabs in different work spaces.

Brambor avatar Apr 01 '26 05:04 Brambor

Does firefox also do this?

According to the issue description, Firefox does it differently:

I checked and this is not consistent with Firefox: new tabs opened with Cmd + T are always opened in the same container as the current tab.

I just re-checked, and it seems this is not the behaviour in Firefox anymore as well... So it would make sense for the Zen team to close this issue.

@Brambor You can work around this using either:

  • this extension to open a new tab in same container: https://addons.mozilla.org/fr/firefox/addon/new-container-tab/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search
  • or this one to open a new tab in any container quickly: https://addons.mozilla.org/fr/firefox/addon/firefox-new-container-tab/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search

Yet, I would recommend Zen to bake in at least the functionality of the first suggested extension, as it would go well with the container integration.

xamcost avatar Apr 02 '26 15:04 xamcost

* this extension to open a new tab in same container: https://addons.mozilla.org/fr/firefox/addon/new-container-tab/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search

Thanks! Unlike Zen's default new tab, it creates a new tab right away rather than after confirming. Which is a bit annoying. But it's probably better than the same container.

Brambor avatar Apr 02 '26 16:04 Brambor

* this extension to open a new tab in same container: https://addons.mozilla.org/fr/firefox/addon/new-container-tab/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search

Thanks! Unlike Zen's default new tab, it creates a new tab right away rather than after confirming. Which is a bit annoying. But it's probably better than the same container.

After some usage... It has two issues in Zen, which make it more annoying to use than it brings benefit:

  1. When creating new tab while tabs are split, it adds new to the split tabs, visually in sidebar, but the new tab is separate. You need to hustle quite a bit to separate them.
  2. Unlike Zen's default new tab, it creates a new tab right away rather than after confirming. Which is a bit annoying.

Brambor avatar Apr 03 '26 13:04 Brambor