# fix\(web\): clear the profile the menu names, and only that profile · pingdotgg/t3code

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

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

Visibility: public

Requested revision: fa3e6b5cd543f9a49131f1da5c7164e4ca622e04

Requested commit: fa3e6b5cd543f9a49131f1da5c7164e4ca622e04

Commit: fa3e6b5cd543f9a49131f1da5c7164e4ca622e04

Tree: 1dee8723e0457c565c87c02d02464f8841bf69ff

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(web): clear the profile the menu names, and only that profile

The More menu passed the tab's raw `profileId` to the clear actions. A tab
created before profiles existed has none, and the IPC layer reads an absent
profile as "every profile" — so a menu labelled "Clear cookies (Default)" wiped
every partition. The view now resolves the default the same way it resolves the
name it displays, and the prop is required so the gap cannot come back.

Clearing also only touched sessions already in the in-memory map. Deriving the
partition string does not create the session, so clearing a profile with no tab
open this run reported success and deleted nothing; the handler now loads the
session first.

`resolveBrowserProfiles` additionally drops repeated ids, which map to one
partition and would otherwise show as two isolated identities sharing every
cookie, and reports a custom `incognito` profile as persistent, since
persistence is keyed off the built-in id alone.

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

```

## Parents

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

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