Expand description
A config dir inside another channel’s identities/ folder.
Auth is shared across channels (<home>/shared/identities/<account>/…) unless a build opts into
AGENTMUX_ISOLATED_AUTH=1, which keeps its accounts’ dirs under <home>/channels/<channel>/identities/.
A dir recorded by one of those builds (an account row, or a pane’s cmd:env) is no place for
another channel’s agent to run: it holds no sign-in this channel can see, and a session recorded
there can’t be resumed from the shared dir. Two readings of the same agent that disagree on it
made its watched config dir (and, with it, its spawn) flip between the two.
Functions§
- heal_
block_ config_ dir_ env - Heals a pane whose
cmd:envnames another channel’s config dir: rewritten tobound, the dir its account really spawns in. The window’s auth re-check and login recovery readcmd:envas it is. - is_
foreign_ to_ this_ channel - [
is_foreign_in] for this process’s environment. - is_
other_ channel_ identity_ dir - Whether
dirlies in<…>/channels/<name>/identities/…for a<name>other thanown_channel. Lexical, case-insensitive (Windows paths), and false for any dir not in that shape.