fix(parent-wake): recognize sdk tool progress

This commit is contained in:
YeonGyu-Kim
2026-05-19 13:48:26 +09:00
parent 67bd324987
commit 5f733f471c
3 changed files with 133 additions and 2 deletions
@@ -387,7 +387,12 @@ export class ParentWakeNotifier {
}
private parentWakePartIsWaitingOnTool(part: NonNullable<ParentWakeSessionMessage["parts"]>[number]): boolean {
if (part.type !== "tool" && part.type !== "tool_use") {
if (
part.type !== "tool"
&& part.type !== "tool_use"
&& part.type !== "tool-call"
&& part.type !== "tool-invocation"
) {
return false
}
@@ -434,7 +439,14 @@ export class ParentWakeNotifier {
if (part.type === "text" || part.type === "reasoning") {
return typeof part.text === "string" && part.text.trim().length > 0
}
if (part.type === "tool" || part.type === "tool_result") {
if (
part.type === "tool"
|| part.type === "tool_use"
|| part.type === "tool-call"
|| part.type === "tool-invocation"
|| part.type === "tool_result"
|| part.type === "tool-result"
) {
return true
}
if (part.content !== undefined) {