Skip to content

Commit c744223

Browse files
hqhq1025HAPI
andcommitted
fix: widen Agent result redaction to catch more internal metadata variants
Use || instead of && so any single internal marker (agentId:, output_file:, internal ID) triggers redaction, not just the combination of all markers. via [HAPI](https://hapi.run) Co-Authored-By: HAPI <noreply@hapi.run>
1 parent 646b56a commit c744223

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/ToolCard/views/_results.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ const AgentResultView: ToolViewComponent = (props: ToolViewProps) => {
531531

532532
// Strip internal system metadata (agentId, output_file, system instructions)
533533
// that should not be shown to users
534-
if (text.includes('agentId:') && text.includes('internal ID')) {
534+
if (text.includes('agentId:') || text.includes('output_file:') || text.includes('internal ID')) {
535535
return <div className="text-sm text-[var(--app-hint)]">Agent launched</div>
536536
}
537537

0 commit comments

Comments
 (0)