Expand description
Named browser profiles: the list of them, in shared_dir
(~/.agentmux/shared/browser-profiles.json), like the bookmarks
(docs/specs/SPEC_BROWSER_PANE_PROFILES_MENU_2026_10_09.md §3, §6). A
profile’s cookie jar is a disk-backed CEF profile the host keeps at
<cef-cache>/profile-<id>; this file only names and colours them.
“Personal” (the shared jar every tab had before profiles) isn’t listed:
it always exists and can’t be deleted.
Structs§
Constants§
- MAX_
NAME_ CHARS - MAX_
PROFILES - PALETTE
- Colours a new profile is given in turn, unless one is chosen.
- PROFILES_
FILE_ 🔒NAME
Functions§
- add
- A new profile added to
profiles: a fresh id, a checked name, and the given colour or the next one from the palette. - check_
color 🔒 - check_
name 🔒 - is_
profile_ id - Is
ida well-formed profile id? - profiles_
file_ path - read_
profiles - The list. A missing or empty file is “no profiles yet”; a present but unparseable one is an error, not an empty list that would look like the profiles vanished.
- remove
- Remove profile
id. Its tabs and its jar are the caller’s to close. - update
- Rename or recolour profile
id. - write_
profiles - Replace the list, through a temp file and a rename, so a crash never leaves a half-written file.