refactor(llms): split AbortError out of InvokeError

This commit is contained in:
Simon
2026-06-03 23:00:33 +08:00
parent fb8de08c39
commit fd12fb9f1b
4 changed files with 6 additions and 14 deletions

View File

@@ -368,7 +368,6 @@ export class PageAgentCore extends EventTarget {
description: 'You MUST call this tool every step!',
inputSchema: macroToolSchema as z.ZodType<MacroToolInput>,
execute: async (input: MacroToolInput): Promise<MacroToolResult> => {
// abort — throws DOMException whose .name === 'AbortError'
this.#abortController.signal.throwIfAborted()
console.log(chalk.blue.bold('MacroTool input'), input)