pub enum IsolatedMuxbusReconnectReason {
ExplicitOptIn,
ExplicitOptOut,
ChannelDefaultIsolated,
LocalChannelNoPrompt,
ChannelDefaultGlobal,
}Expand description
Which rule decided isolated_muxbus_reconnect_enabled’s result —
mirrors crate::data_paths::IsolatedAuthReason/crate::data_paths::IsolatedSettingsReason exactly, same
rationale (one resolution, two views).
Variants§
ExplicitOptIn
AGENTMUX_ISOLATED_MUXBUS=1.
ExplicitOptOut
AGENTMUX_ISOLATED_MUXBUS is set to anything other than exactly
"1" — fail-safe by construction, same rule as
IsolatedAuthReason::ExplicitOptOut and for the same reason: a
typo’d opt-out attempt must not silently isolate a non-stable
channel instead of falling back to the safe (global/reconnect)
state.
ChannelDefaultIsolated
No override; AGENTMUX_CHANNEL is set, isn’t "stable", and
doesn’t start with "dev-" — a randomized local-package channel — on
macOS, where the keychain would ask again for every build. Boot still
reconnects when the channel has a sign-in of its own stored
(skip_cloud_subscriber, bootstrap/background.rs): that is no new
build’s, and an in-app upgrade keeps the channel.
LocalChannelNoPrompt
No override; a local-package channel, where reading the stored sign-in asks nothing new: Windows and Linux never ask, and on macOS a release running on such a channel keeps its one signature. Reconnects as usual.
ChannelDefaultGlobal
No override; AGENTMUX_CHANNEL is "stable", starts with
"dev-", or is unset entirely.
Implementations§
Trait Implementations§
Source§impl Clone for IsolatedMuxbusReconnectReason
impl Clone for IsolatedMuxbusReconnectReason
Source§fn clone(&self) -> IsolatedMuxbusReconnectReason
fn clone(&self) -> IsolatedMuxbusReconnectReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more