fix(minecraft): no need for feedback on interruptions

This commit is contained in:
Rin
2026-02-18 11:12:04 +08:00
committed by Neko Ayaka
parent 9d395fd83d
commit 112ed4ea9f
@@ -139,6 +139,11 @@ export class TaskExecutor extends EventEmitter {
}
catch (error) {
this.logger.withError(error).error('Action execution failed')
if (error instanceof ActionError && error.code === 'INTERRUPTED') {
// Foreseeable interruption (e.g. stop tool). Don't send feedback to LLM.
return
}
// failed actions always emit feedback
this.emit('action:failed', { action, error })
}