# feat\(web\): open browser tabs in a chosen profile · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/b5435d27c91f3c7b9a156a6031b450f5e2543c93)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: b5435d27c91f3c7b9a156a6031b450f5e2543c93

Requested commit: b5435d27c91f3c7b9a156a6031b450f5e2543c93

Commit: b5435d27c91f3c7b9a156a6031b450f5e2543c93

Tree: 5ed4afa7d9a26f6349f087c245acd39afccd77b1

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(web): open browser tabs in a chosen profile

There was no way to reach a non-default profile: tabs always opened under the
configured default, and nothing in the chrome said which profile you were in.

The "+" surface menu gains a "Browser in profile" submenu. The choice lives at
open time because a tab's profile is fixed then — Electron only honours a
partition before the guest attaches — so offering it on an already-open tab
would promise a switch that cannot happen. The three-dot menu now names the
tab's profile, which was otherwise invisible.

Also routes the two paths that bypassed `openPreviewSession` — opening a file
or an external link in the preview, and the terminal's "open in preview" —
through the configured defaults. Both built their open input by hand, so they
silently ignored the default viewport as well as the profile.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [bd3f91068041d9c389f1ca4a2d10df8040b7fa72](https://git.cafe/pingdotgg/t3code/commit/bd3f91068041d9c389f1ca4a2d10df8040b7fa72?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/b5435d27c91f3c7b9a156a6031b450f5e2543c93?format=markdown)
