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

Method handleBashMonitorMatch

src/node/services/workspaceService.ts:1669–1676  ·  view source on GitHub ↗
(payload: MonitorMatchPayload)

Source from the content-addressed store, hash-verified

1667 }
1668
1669 private async handleBashMonitorMatch(payload: MonitorMatchPayload): Promise<void> {
1670 try {
1671 await this.bashMonitorWakeStore.enqueueOrMergePending(payload);
1672 this.scheduleBashMonitorWakeDrain(payload.workspaceId);
1673 } catch (error) {
1674 log.error("Failed to enqueue bash monitor wake", { workspaceId: payload.workspaceId, error });
1675 }
1676 }
1677
1678 private scheduleBashMonitorWakeDrain(ownerWorkspaceId: string): void {
1679 assert(ownerWorkspaceId.trim().length > 0, "scheduleBashMonitorWakeDrain requires workspaceId");

Callers 1

WorkspaceServiceClass · 0.95

Calls 2

enqueueOrMergePendingMethod · 0.80

Tested by

no test coverage detected