MCPcopy Create free account
hub / github.com/backnotprop/plannotator / isRemoteSession

Function isRemoteSession

packages/server/remote.ts:34–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 * Check if running in a remote session (SSH, devcontainer, etc.)
33 */
34export function isRemoteSession(): boolean {
35 const remoteOverride = getRemoteOverride();
36 if (remoteOverride !== null) {
37 return remoteOverride;
38 }
39
40 // Legacy: SSH_TTY/SSH_CONNECTION (deprecated, silent)
41 if (process.env.SSH_TTY || process.env.SSH_CONNECTION) {
42 return true;
43 }
44
45 return false;
46}
47
48/**
49 * Get the server port to use

Callers 10

startPlannotatorServerFunction · 0.90
remote.test.tsFile · 0.90
handleOpenInAppsFunction · 0.90
handleOpenInFunction · 0.90
startGoalSetupServerFunction · 0.90
startReviewServerFunction · 0.90
startAnnotateServerFunction · 0.90
getServerPortFunction · 0.70
getServerHostnameFunction · 0.70

Calls 1

getRemoteOverrideFunction · 0.70

Tested by

no test coverage detected