MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isRemoteSessionLocal

Function isRemoteSessionLocal

src/constants/product.ts:26–34  ·  view source on GitHub ↗
(
  sessionId?: string,
  ingressUrl?: string,
)

Source from the content-addressed store, hash-verified

24 * Checks session ID format (e.g. `session_local_...`) and ingress URL.
25 */
26export function isRemoteSessionLocal(
27 sessionId?: string,
28 ingressUrl?: string,
29): boolean {
30 return (
31 sessionId?.includes('_local_') === true ||
32 ingressUrl?.includes('localhost') === true
33 )
34}
35
36/**
37 * Get the base URL for Claude AI based on environment.

Callers 3

getAttributionTextsFunction · 0.85
getEnhancedPRAttributionFunction · 0.85
getClaudeAiBaseUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected