From 61b811bd3551d2cea45e36f8db9cfbd30e0cdb37 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Fri, 11 Jul 2025 19:13:40 +0530 Subject: [PATCH] Fix name change bug causing agent tab switching --- .../[projectId]/entities/agent_config.tsx | 15 +-------------- .../[projectId]/workflow/workflow_editor.tsx | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx index 7e2bb22b..bbdc40b4 100644 --- a/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx +++ b/apps/rowboat/app/projects/[projectId]/entities/agent_config.tsx @@ -89,19 +89,6 @@ export function AgentConfig({ setLocalName(agent.name); }, [agent.name]); - // Store active tab in URL hash to persist across re-renders - useEffect(() => { - const hash = window.location.hash.slice(1); - if (hash === 'instructions' || hash === 'configurations') { - setActiveTab(hash as TabType); - } - }, []); - - const handleTabChange = (tab: TabType) => { - setActiveTab(tab); - window.location.hash = tab; - }; - // Track changes in RAG datasources useEffect(() => { const currentSources = agent.ragDataSources || []; @@ -211,7 +198,7 @@ export function AgentConfig({ {(['instructions', 'configurations'] as TabType[]).map((tab) => (