Skip to content

Commit 9d166ee

Browse files
committed
Let a complete report envelope win over quoted tool-call markup
1 parent dd6cca2 commit 9d166ee

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

‎src/subagent/nudge-director.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -311,24 +311,6 @@ export class SubAgentDirector extends DefaultDirector {
311311
this.thrashState = nextThrashState(this.thrashState, content);
312312
}
313313

314-
if (
315-
!hasToolCalls &&
316-
!this.verbatimToolCallNudgeFired &&
317-
hasVerbatimToolCallMarkup(content)
318-
) {
319-
this.verbatimToolCallNudgeFired = true;
320-
this.interventions({
321-
id: "verbatim-tool-call",
322-
class: "nudge",
323-
state: this.interventionState(),
324-
detail: "assistant emitted explicit tool-call markup as text",
325-
});
326-
return [
327-
capabilities.checkpoint("subagent-verbatim-tool-call-nudge"),
328-
inferWithSubAgentNudge(capabilities, VERBATIM_TOOL_CALL_NUDGE),
329-
];
330-
}
331-
332314
const stop = evaluateSubAgentStop({
333315
hasToolCalls,
334316
thrashState: this.thrashState,

0 commit comments

Comments
 (0)