import type { PaneDefinition, WorkspaceDefinition } from '@/types/workbench';
import { XTermPane } from '@/features/terminal/XTermPane';

interface MainAgentPaneProps {
  pane: PaneDefinition;
  workspace: WorkspaceDefinition;
}

export function MainAgentPane({ pane, workspace }: MainAgentPaneProps) {
  const effectivePane: PaneDefinition = {
    ...pane,
    startupCommand: pane.startupCommand ?? 'vigthoria agent',
  };

  return (
    <div className="main-agent-pane">
      <XTermPane pane={effectivePane} workspace={workspace} registerMainAgent />
    </div>
  );
}
