MCPcopy
hub / github.com/coder/mux / canRunPassiveRuntimeCommand

Function canRunPassiveRuntimeCommand

src/browser/utils/runtimeExecutionPolicy.ts:9–18  ·  view source on GitHub ↗
(
  runtimeConfig: FrontendWorkspaceMetadata["runtimeConfig"],
  runtimeStatus: RuntimeStatus | null
)

Source from the content-addressed store, hash-verified

7 * Explicit user actions can apply a different policy when they intentionally start work.
8 */
9export function canRunPassiveRuntimeCommand(
10 runtimeConfig: FrontendWorkspaceMetadata["runtimeConfig"],
11 runtimeStatus: RuntimeStatus | null
12): boolean {
13 if (!isDevcontainerRuntime(runtimeConfig)) {
14 return true;
15 }
16
17 return runtimeStatus === "running";
18}
19
20const noopUnsubscribe = () => undefined;
21

Calls 1

isDevcontainerRuntimeFunction · 0.90

Tested by

no test coverage detected