MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getSessionName

Function getSessionName

dev/local/tmux.ts:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 const root = getWorktreeRoot();
29 const slug = path.basename(root).replace(/[^A-Za-z0-9_-]/g, '_');
30 return `kilo-dev-${slug}`;
31}
32
33function sessionExists(sessionName?: string): boolean {
34 const name = sessionName ?? getSessionName();
35 try {
36 // `=` forces an exact match; a bare -t prefix-matches sibling sessions.
37 execSync(`tmux has-session -t '=${name}'`, { stdio: 'ignore' });

Callers 7

dashboard.tsxFile · 0.90
cmdUpFunction · 0.90
cmdStatusFunction · 0.90
cmdRestartFunction · 0.90
cmdStopFunction · 0.90
sessionExistsFunction · 0.85
findOtherKiloDevSessionsFunction · 0.85

Calls 2

getWorktreeRootFunction · 0.85
replaceMethod · 0.65

Tested by

no test coverage detected