From fd28478e7082d20b60f07045c7a62e0aefd85de8 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Mon, 13 Oct 2025 18:12:16 -0700 Subject: [PATCH] improv: clean up code --- gui/src/components/BackgroundMode/BackgroundModeView.tsx | 2 -- gui/src/pages/gui/Chat.tsx | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/gui/src/components/BackgroundMode/BackgroundModeView.tsx b/gui/src/components/BackgroundMode/BackgroundModeView.tsx index fdcf92bcd..db917b651 100644 --- a/gui/src/components/BackgroundMode/BackgroundModeView.tsx +++ b/gui/src/components/BackgroundMode/BackgroundModeView.tsx @@ -11,12 +11,10 @@ import { selectCurrentOrg } from "../../redux/slices/profilesSlice"; import { AgentsList } from "./AgentsList"; interface BackgroundModeViewProps { - onCreateAgent: (editorState: any) => void; isCreatingAgent?: boolean; } export function BackgroundModeView({ - onCreateAgent, isCreatingAgent = false, }: BackgroundModeViewProps) { const { session, login } = useAuth(); diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 71614487e..113cbf71d 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -514,13 +514,7 @@ export function Chat() { {!hasDismissedExploreDialog && } {mode === "background" ? ( - { - // This callback is kept for compatibility but not used - // Agent creation is now handled in sendInput for better loading state management - }} - isCreatingAgent={isCreatingAgent} - /> + ) : ( history.length === 0 && (