MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isRemoteSession

Function isRemoteSession

cli/src/utils/clipboard.ts:151–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149// tmux/screen require passthrough wrapping to forward the sequence.
150
151export function isRemoteSession(): boolean {
152 const env = getCliEnv()
153 return !!(env.SSH_CLIENT || env.SSH_TTY || env.SSH_CONNECTION)
154}
155
156function tryCopyViaPlatformTool(text: string): boolean {
157 const { execSync } = require('child_process') as typeof import('child_process')

Callers 2

LoginModalFunction · 0.90
copyTextToClipboardFunction · 0.85

Calls 1

getCliEnvFunction · 0.90

Tested by

no test coverage detected