Skip to content

Commit 45ca03c

Browse files
samejrclaude
andcommitted
Drop AgentView .in early-exit that skipped HITL resolutions
The incomingUsers early-exit predated the HITL resolution block from origin/main. After the merge they coexisted, but the `continue` on chunks with no user messages also bypassed the assistant-role HITL resolution processing — tool calls awaiting approval/denial/output silently stayed pending forever. The inner loops already filter by role, so the perf optimisation wasn't load-bearing. Remove the early-exit entirely. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d111868 commit 45ca03c

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

apps/webapp/app/components/runs/v3/agent/AgentView.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,11 +595,6 @@ function useAgentSessionMessages({
595595
: payload.message
596596
? [payload.message]
597597
: [];
598-
const incomingUsers = candidates.filter(
599-
(m): m is UIMessage =>
600-
m != null && (m as { role?: string }).role === "user" && typeof m.id === "string"
601-
);
602-
if (incomingUsers.length === 0) continue;
603598

604599
let changed = false;
605600

0 commit comments

Comments
 (0)