MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / onAbort

Function onAbort

packages/agent-core/src/session/hooks/runner.ts:83–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }, timeoutMs);
82
83 const onAbort = (): void => {
84 killProcess(child);
85 settle(allowResult({ stdout, stderr }));
86 };
87
88 options.signal?.addEventListener('abort', onAbort, { once: true });
89 if (options.signal?.aborted === true) {

Callers 2

runHookFunction · 0.70
grepWithRgMethod · 0.50

Calls 3

killProcessFunction · 0.85
allowResultFunction · 0.85
settleFunction · 0.70

Tested by

no test coverage detected