Unclear It is not shown what Claude Code does differently once a session counts as a remote relay.
What
Claude Code's checks for how a session was started have changed. SSH is a way of working on another computer over the network.
- A session counts as started by a server or over SSH when any of
CLAUDE_CODE_SPAWNED_BY_SERVER,CLAUDE_SSH_DAEMON_CHILDorCLAUDE_SSH_RUN_DIRis set. - A second check also counts the session as a remote relay when
remoteRelayMarkis not set to false or when Claude Code was started through thessh-remoteentry point.
Why
Setting any of these environment variables makes Claude Code count the session as started by a server or over SSH.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not shown what Claude Code does differently once a session counts as a remote relay.