feat(background-agent): adapt idle event handler for team-mode sessions
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user