Skip to content

Commit c560f9f

Browse files
committed
fix(agents): make prompt stripping helper total
1 parent 3cc45b7 commit c560f9f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/agents/embedded-agent-runner/run/runtime-context-prompt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function removePromptContextAroundOccurrence(params: {
100100
}
101101
searchFrom = index + Math.max(1, params.prompt.length);
102102
}
103+
return stripped;
103104
}
104105

105106
/**

0 commit comments

Comments
 (0)