improv: clean up code

This commit is contained in:
Tomasz Stefaniak 2025-10-13 18:12:16 -07:00
parent 008fff9ab0
commit fd28478e70
2 changed files with 1 additions and 9 deletions

View file

@ -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();

View file

@ -514,13 +514,7 @@ export function Chat() {
<FatalErrorIndicator />
{!hasDismissedExploreDialog && <ExploreDialogWatcher />}
{mode === "background" ? (
<BackgroundModeView
onCreateAgent={() => {
// This callback is kept for compatibility but not used
// Agent creation is now handled in sendInput for better loading state management
}}
isCreatingAgent={isCreatingAgent}
/>
<BackgroundModeView isCreatingAgent={isCreatingAgent} />
) : (
history.length === 0 && (
<EmptyChatBody showOnboardingCard={onboardingCard.show} />