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
fixup! fix(detail-navigation): re-seed the sheet search mirror from the controller on open
Sergey Kozyrenko14b3da2d6f59
diff --git a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.test.tsx b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.test.tsxindex a19fc29a..61eb341e 100644--- a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.test.tsx+++ b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.test.tsx@@ -506,9 +506,6 @@ describe('DetailNavigationSheet — virtualization (>100 items)', () => {});});-// Controlled mode (the documented "page-level search box" use case): the parent-// owns searchQuery, so the sheet's local input mirror must re-seed from the-// controller when it changes outside the sheet.const ControlledSheet = ({ open, query }: { open: boolean; query: string }) => {const nav = useDetailNavigation<Item>({currentId: 'c',diff --git a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsxindex 6fa7e647..062a5152 100644--- a/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx+++ b/frontend/src/components/shared/detail-navigation/detail-navigation-sheet.tsx@@ -141,10 +141,9 @@ export function DetailNavigationSheet<T extends { id: string }>({if (lastOpen !== open) {setLastOpen(open);- // Re-seed the input mirror from the controller on open so a controlled- // searchQuery changed from outside isn't shown stale. The sheet is modal,- // so searchQuery only changes externally while closed — on-open re-seed- // suffices and never clobbers in-progress typing.+ // Re-sync the mirror on open only: the sheet is modal, so a controlled+ // searchQuery can change externally only while closed. A searchQuery-watching+ // effect would instead clobber in-progress typing.if (open) {setLocalQuery(searchQuery);}