( runtimeConfig: FrontendWorkspaceMetadata["runtimeConfig"], runtimeStatus: RuntimeStatus | null )
| 7 | * Explicit user actions can apply a different policy when they intentionally start work. |
| 8 | */ |
| 9 | export 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 | |
| 20 | const noopUnsubscribe = () => undefined; |
| 21 |
no test coverage detected