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

Function stopServiceInTmux

dev/local/runner.ts:144–153  ·  view source on GitHub ↗
(sessionName: string, serviceName: string)

Source from the content-addressed store, hash-verified

142 if (isLogFilterRunning(logPath)) return;
143 // `pipe-pane -o` is a no-op while tmux still thinks a pipe exists, including
144 // after the filter process has exited. Close first, then attach a new one.
145 closePipePane(sessionName, pane.windowIndex, pane.paneIndex);
146 pipePane(sessionName, pane.windowIndex, pane.paneIndex, buildLogPipeCommand(logPath));
147}
148
149/** Re-attach `pipe-pane` for any known service whose log filter is not running. */
150export function ensureDeadServiceLogPipes(sessionName: string, serviceNames: string[]): string[] {
151 const repaired: string[] = [];
152 for (const name of serviceNames) {
153 const logPath = path.join(findRepoRoot(), 'dev', 'logs', `${name}.log`);
154 if (isLogFilterRunning(logPath)) continue;
155 try {
156 ensureServiceLogPipe(sessionName, name);

Callers 1

DashboardFunction · 0.90

Calls 4

getServiceFunction · 0.90
listWindowsFunction · 0.90
sendInterruptFunction · 0.90
killWindowFunction · 0.90

Tested by

no test coverage detected