fix(subagent): align SDK stop reasons after master merge

This commit is contained in:
Tianyi Cui
2026-07-27 23:08:16 +08:00
parent 7f333d8837
commit cb12fa7b90
5 changed files with 7 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ export function sdkStopReason(reason: TurnEndReason | undefined): SubagentStopRe
return 'max-tokens'
case 'aborted':
return 'aborted'
// error / rejected / interrupted / disposed / a future merged variant /
// error / interrupted / disposed / a future merged variant /
// no turn at all: the task did NOT finish cleanly — surface a generic
// failure so the consumer maps it to an isError result.
default: