MCPcopy Index your code
hub / github.com/coder/mux / enqueueTerminalAttention

Method enqueueTerminalAttention

src/node/services/taskService.ts:4413–4426  ·  view source on GitHub ↗
(params: {
    ownerWorkspaceId: string;
    sourceKind: TerminalAttentionNotification["sourceKind"];
    sourceId: string;
    outputDelivery: TerminalAttentionNotification["outputDelivery"];
    terminalOutcome: TerminalAttentionOutcome;
    title?: string;
  })

Source from the content-addressed store, hash-verified

4411 }
4412
4413 private async enqueueTerminalAttention(params: {
4414 ownerWorkspaceId: string;
4415 sourceKind: TerminalAttentionNotification["sourceKind"];
4416 sourceId: string;
4417 outputDelivery: TerminalAttentionNotification["outputDelivery"];
4418 terminalOutcome: TerminalAttentionOutcome;
4419 title?: string;
4420 }): Promise<void> {
4421 const created = await this.terminalAttentionStore.enqueueIfAbsent(params);
4422 if (created == null) {
4423 return;
4424 }
4425 this.scheduleTerminalAttentionDrain(params.ownerWorkspaceId);
4426 }
4427
4428 private scheduleTerminalAttentionDrain(ownerWorkspaceId: string): void {
4429 const previous = this.pendingTerminalAttentionDrainsByOwner.get(ownerWorkspaceId);

Calls 2

enqueueIfAbsentMethod · 0.80

Tested by

no test coverage detected