MCPcopy Index your code
hub / github.com/continuedev/continue / firePostToolUseFailure

Function firePostToolUseFailure

extensions/cli/src/hooks/fireHook.ts:106–126  ·  view source on GitHub ↗
(
  toolName: string,
  toolInput: unknown,
  toolUseId: string,
  error: string,
  isInterrupt?: boolean,
)

Source from the content-addressed store, hash-verified

104}
105
106export async function firePostToolUseFailure(
107 toolName: string,
108 toolInput: unknown,
109 toolUseId: string,
110 error: string,
111 isInterrupt?: boolean,
112): Promise<HookEventResult> {
113 if (!isHookServiceReady()) return NOOP_RESULT;
114
115 const input: PostToolUseFailureInput = {
116 ...getCommonFields(),
117 hook_event_name: "PostToolUseFailure",
118 tool_name: toolName,
119 tool_input: toolInput,
120 tool_use_id: toolUseId,
121 error,
122 is_interrupt: isInterrupt,
123 };
124
125 return services.hooks.fireEvent(input);
126}
127
128// ---------------------------------------------------------------------------
129// Lifecycle events

Callers

nothing calls this directly

Calls 3

isHookServiceReadyFunction · 0.85
getCommonFieldsFunction · 0.85
fireEventMethod · 0.80

Tested by

no test coverage detected