Skip to content

Commit fd28478

Browse files
improv: clean up code
1 parent 008fff9 commit fd28478

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

gui/src/components/BackgroundMode/BackgroundModeView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ import { selectCurrentOrg } from "../../redux/slices/profilesSlice";
1111
import { AgentsList } from "./AgentsList";
1212

1313
interface BackgroundModeViewProps {
14-
onCreateAgent: (editorState: any) => void;
1514
isCreatingAgent?: boolean;
1615
}
1716

1817
export function BackgroundModeView({
19-
onCreateAgent,
2018
isCreatingAgent = false,
2119
}: BackgroundModeViewProps) {
2220
const { session, login } = useAuth();

gui/src/pages/gui/Chat.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,7 @@ export function Chat() {
514514
<FatalErrorIndicator />
515515
{!hasDismissedExploreDialog && <ExploreDialogWatcher />}
516516
{mode === "background" ? (
517-
<BackgroundModeView
518-
onCreateAgent={() => {
519-
// This callback is kept for compatibility but not used
520-
// Agent creation is now handled in sendInput for better loading state management
521-
}}
522-
isCreatingAgent={isCreatingAgent}
523-
/>
517+
<BackgroundModeView isCreatingAgent={isCreatingAgent} />
524518
) : (
525519
history.length === 0 && (
526520
<EmptyChatBody showOnboardingCard={onboardingCard.show} />

0 commit comments

Comments
 (0)