Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(flows): don't show a previous directory's listing under a new path
Sergey Kozyrenko1535a7a700ee
diff --git a/frontend/src/features/flows/files/flow-files-pull-dialog.tsx b/frontend/src/features/flows/files/flow-files-pull-dialog.tsxindex 4332a6bc..bde9f929 100644--- a/frontend/src/features/flows/files/flow-files-pull-dialog.tsx+++ b/frontend/src/features/flows/files/flow-files-pull-dialog.tsx@@ -341,9 +341,21 @@ function FlowFilesPullDialogForm({ cachedFiles, flowId, onClose, onSuccess }: Fl</EmptyMedia><EmptyTitle>Nothing readable here</EmptyTitle><EmptyDescription>- None of the entries in <code>{currentPath}</code> could be read.+ None of the {listingFailures.length} {listingFailures.length === 1 ? 'entry' : 'entries'} in{' '}+ <code>{currentPath}</code> could be read.</EmptyDescription></EmptyHeader>+ <ul className="text-muted-foreground max-w-full space-y-1 px-4 text-left text-xs">+ {listingFailures.slice(0, 5).map((failure) => (+ <li+ className="truncate"+ key={failure.path}+ >+ <span className="text-foreground font-medium">{failure.name}</span> — {failure.message}+ </li>+ ))}+ {listingFailures.length > 5 && <li>…and {listingFailures.length - 5} more</li>}+ </ul></Empty>) : (<Empty>diff --git a/frontend/src/features/flows/files/use-flow-container-files.ts b/frontend/src/features/flows/files/use-flow-container-files.tsindex ef638171..dd713cca 100644--- a/frontend/src/features/flows/files/use-flow-container-files.ts+++ b/frontend/src/features/flows/files/use-flow-container-files.ts@@ -84,6 +84,10 @@ export function useFlowContainerFiles({ flowId, paths }: UseFlowContainerFilesPasetIsLoading(true);setError(null);+ // Clear the previous directory's data so a pending navigation never shows+ // the old listing / old failure banner attributed to the new breadcrumb.+ setFiles([]);+ setFailures([]);try {const url = `${FLOW_FILES_CONTAINER_API_PATH(flowId)}?${buildPathsQuery(paths)}`;