@@ -12,16 +12,7 @@ import {
1212 PopoverTrigger ,
1313 Tooltip ,
1414} from '@sim/emcn'
15- import {
16- ArrowDown ,
17- ArrowUp ,
18- Database ,
19- Download ,
20- MoreHorizontal ,
21- Palette ,
22- Pause ,
23- Trash ,
24- } from '@sim/emcn/icons'
15+ import { ArrowDown , ArrowUp , Download , MoreHorizontal , Palette , Trash } from '@sim/emcn/icons'
2516import { formatDuration } from '@sim/utils/formatting'
2617import { useVirtualizer } from '@tanstack/react-virtual'
2718import clsx from 'clsx'
@@ -58,7 +49,6 @@ import {
5849} from '@/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/utils'
5950import { useContextMenu } from '@/app/workspace/[workspaceId]/w/components/sidebar/hooks'
6051import { getTileIconColorClass } from '@/blocks/icon-color'
61- import { useShowTrainingControls } from '@/hooks/queries/general-settings'
6252import { OUTPUT_PANEL_WIDTH , TERMINAL_HEIGHT } from '@/stores/constants'
6353import type { ConsoleEntry } from '@/stores/terminal'
6454import {
@@ -718,14 +708,6 @@ export const Terminal = memo(function Terminal() {
718708 const [ autoSelectEnabled , setAutoSelectEnabled ] = useState ( true )
719709 const [ mainOptionsOpen , setMainOptionsOpen ] = useState ( false )
720710
721- const [ isTrainingEnvEnabled ] = useState ( ( ) =>
722- isTruthy ( getEnv ( 'NEXT_PUBLIC_COPILOT_TRAINING_ENABLED' ) )
723- )
724- const showTrainingControls = useShowTrainingControls ( )
725- const isTraining = false
726- const toggleTrainingModal = useCallback ( ( ) => { } , [ ] )
727- const stopTraining = useCallback ( ( ) => { } , [ ] )
728-
729711 const [ isPlaygroundEnabled ] = useState ( ( ) => isTruthy ( getEnv ( 'NEXT_PUBLIC_ENABLE_PLAYGROUND' ) ) )
730712
731713 const { handlePointerDown } = useTerminalResize ( )
@@ -1044,20 +1026,6 @@ export const Terminal = memo(function Terminal() {
10441026 [ closeLogRowMenu ]
10451027 )
10461028
1047- const handleTrainingClick = useCallback (
1048- ( e : React . MouseEvent ) => {
1049- e . stopPropagation ( )
1050- if ( isTraining ) {
1051- stopTraining ( )
1052- } else {
1053- toggleTrainingModal ( )
1054- }
1055- } ,
1056- [ isTraining , stopTraining , toggleTrainingModal ]
1057- )
1058-
1059- const shouldShowTrainingButton = isTrainingEnvEnabled && showTrainingControls
1060-
10611029 useRegisterGlobalCommands ( ( ) =>
10621030 createCommands ( [
10631031 {
@@ -1392,31 +1360,6 @@ export const Terminal = memo(function Terminal() {
13921360 </ Tooltip . Root >
13931361 ) }
13941362
1395- { shouldShowTrainingButton && (
1396- < Tooltip . Root >
1397- < Tooltip . Trigger asChild >
1398- < Button
1399- variant = 'ghost'
1400- onClick = { handleTrainingClick }
1401- aria-label = { isTraining ? 'Stop training' : 'Train Sim' }
1402- className = { clsx (
1403- '!p-1.5 -m-1.5' ,
1404- isTraining && 'text-orange-600 dark:text-orange-400'
1405- ) }
1406- >
1407- { isTraining ? (
1408- < Pause className = 'h-3.5 w-3.5' />
1409- ) : (
1410- < Database className = 'h-3.5 w-3.5' />
1411- ) }
1412- </ Button >
1413- </ Tooltip . Trigger >
1414- < Tooltip . Content >
1415- < span > { isTraining ? 'Stop Training' : 'Train Sim' } </ span >
1416- </ Tooltip . Content >
1417- </ Tooltip . Root >
1418- ) }
1419-
14201363 { filteredEntries . length > 0 && (
14211364 < >
14221365 < Tooltip . Root >
@@ -1528,9 +1471,6 @@ export const Terminal = memo(function Terminal() {
15281471 setShowInput = { setShowInput }
15291472 hasInputData = { hasInputData }
15301473 isPlaygroundEnabled = { isPlaygroundEnabled }
1531- shouldShowTrainingButton = { shouldShowTrainingButton }
1532- isTraining = { isTraining }
1533- handleTrainingClick = { handleTrainingClick }
15341474 showCopySuccess = { showCopySuccess }
15351475 handleCopy = { handleCopy }
15361476 hasEntries = { filteredEntries . length > 0 }
0 commit comments