MCPcopy
hub / github.com/codeaashu/claude-code / setAwaitingPlanApproval

Function setAwaitingPlanApproval

src/utils/inProcessTeammateHelpers.ts:55–64  ·  view source on GitHub ↗
(
  taskId: string,
  setAppState: SetAppState,
  awaiting: boolean,
)

Source from the content-addressed store, hash-verified

53 * @param awaiting - Whether teammate is awaiting plan approval
54 */
55export function setAwaitingPlanApproval(
56 taskId: string,
57 setAppState: SetAppState,
58 awaiting: boolean,
59): void {
60 updateTaskState<InProcessTeammateTaskState>(taskId, setAppState, task => ({
61 ...task,
62 awaitingPlanApproval: awaiting,
63 }))
64}
65
66/**
67 * Handle plan approval response for an in-process teammate.

Callers 2

callFunction · 0.85

Calls 1

updateTaskStateFunction · 0.50

Tested by

no test coverage detected