Skip to main content

Module foreign_dir

Module foreign_dir 

Source
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:env names another channel’s config dir: rewritten to bound, the dir its account really spawns in. The window’s auth re-check and login recovery read cmd:env as it is.
is_foreign_to_this_channel
[is_foreign_in] for this process’s environment.
is_other_channel_identity_dir
Whether dir lies in <…>/channels/<name>/identities/… for a <name> other than own_channel. Lexical, case-insensitive (Windows paths), and false for any dir not in that shape.