improv: clean up code
This commit is contained in:
parent
008fff9ab0
commit
fd28478e70
2 changed files with 1 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue