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

Method getPending

src/node/services/askUserQuestionManager.ts:117–125  ·  view source on GitHub ↗
(workspaceId: string, toolCallId: string)

Source from the content-addressed store, hash-verified

115 }
116
117 private getPending(workspaceId: string, toolCallId: string): PendingAskUserQuestionInternal {
118 const workspaceMap = this.pendingByWorkspace.get(workspaceId);
119 assert(workspaceMap, `No pending ask_user_question entries for workspaceId=${workspaceId}`);
120
121 const entry = workspaceMap.get(toolCallId);
122 assert(entry, `No pending ask_user_question entry for toolCallId=${toolCallId}`);
123
124 return entry;
125 }
126
127 private deletePending(workspaceId: string, toolCallId: string): void {
128 const workspaceMap = this.pendingByWorkspace.get(workspaceId);

Callers 2

answerMethod · 0.95
cancelMethod · 0.95

Calls 2

getMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected