feat(background-agent): adapt idle event handler for team-mode sessions

This commit is contained in:
YeonGyu-Kim
2026-04-28 10:48:06 +09:00
parent a0d122b1e6
commit 00a6647021
2 changed files with 29 additions and 0 deletions
@@ -85,6 +85,14 @@ export function handleSessionIdleBackgroundEvent(args: {
return
}
if (task.teamRunId) {
log("[background-agent] Team member session went idle; skipping background auto-complete:", {
taskId: task.id,
teamRunId: task.teamRunId,
})
return
}
await tryCompleteTask(task, "session.idle event")
})
.catch((err) => {