@@ -18,7 +18,6 @@ import type {
1818import type { EnvironmentThreadSearchMatch } from "@t3tools/client-runtime/state/thread-search" ;
1919import type { EnvironmentMachineKind } from "@t3tools/contracts" ;
2020import {
21- canPauseSession ,
2221 canSnooze ,
2322 resolveSnoozePresets ,
2423 threadUsageLimitResetsAt ,
@@ -72,7 +71,6 @@ const STATUS_LABEL_BY_STATUS: Partial<
7271 input : { label : "Input" , className : "text-foreground-secondary" } ,
7372 working : { label : "Working" , className : "text-adaptive-sky-600-400" } ,
7473 failed : { label : "Failed" , className : "text-danger-foreground" } ,
75- paused : { label : "Paused" , className : "text-foreground-secondary" } ,
7674} ;
7775
7876function threadTimeLabel ( thread : EnvironmentThreadShell ) : string {
@@ -431,7 +429,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
431429 readonly onSnoozeThread : ( thread : EnvironmentThreadShell , snoozedUntil : string ) => void ;
432430 readonly onUnsnoozeThread : ( thread : EnvironmentThreadShell ) => void ;
433431 readonly onUnsettleThread : ( thread : EnvironmentThreadShell ) => void ;
434- readonly onPauseThread : ( thread : EnvironmentThreadShell ) => void ;
435432 readonly onArchiveThread : ( thread : EnvironmentThreadShell ) => void ;
436433 readonly onPinThread : ( thread : EnvironmentThreadShell ) => void ;
437434 readonly onUnpinThread : ( thread : EnvironmentThreadShell ) => void ;
@@ -478,7 +475,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
478475 onSnoozeThread,
479476 onUnsnoozeThread,
480477 onUnsettleThread,
481- onPauseThread,
482478 onArchiveThread,
483479 onPinThread,
484480 onUnpinThread,
@@ -519,7 +515,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
519515 ) ;
520516 const handleUnsnooze = useCallback ( ( ) => onUnsnoozeThread ( thread ) , [ onUnsnoozeThread , thread ] ) ;
521517 const handleUnsettle = useCallback ( ( ) => onUnsettleThread ( thread ) , [ onUnsettleThread , thread ] ) ;
522- const handlePause = useCallback ( ( ) => onPauseThread ( thread ) , [ onPauseThread , thread ] ) ;
523518 const handlePin = useCallback ( ( ) => onPinThread ( thread ) , [ onPinThread , thread ] ) ;
524519 const handleUnpin = useCallback ( ( ) => onUnpinThread ( thread ) , [ onUnpinThread , thread ] ) ;
525520 const handleSetAutoSettle = useCallback (
@@ -648,16 +643,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
648643 ] ,
649644 [ props . titleRegenerationSupported , thread . titleRegeneration ] ,
650645 ) ;
651- // Pause parks the provider session (saves RAM) while the thread stays
652- // active; resume is the next message. Offered only for pausable cards —
653- // already-paused and never-started threads show no item.
654- const pauseMenuItems = useMemo < MenuAction [ ] > (
655- ( ) =>
656- canPauseSession ( thread ) && ! snoozedRow && ! canUnsettle
657- ? [ { id : "pause" , title : "Pause session" , image : "pause" } ]
658- : [ ] ,
659- [ thread , snoozedRow , canUnsettle ] ,
660- ) ;
661646 const snoozableCardMenuActions = useMemo < MenuAction [ ] > (
662647 ( ) => [
663648 { id : "settle" , title : "Settle" , image : "checkmark" } ,
@@ -667,24 +652,22 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
667652 image : "clock" ,
668653 subactions : snoozePresetActions ,
669654 } ,
670- ...pauseMenuItems ,
671655 ...arrangementMenuItems ,
672656 ...titleMenuItems ,
673657 ...autoSettleMenuItems ,
674658 { id : "delete" , title : "Delete" , image : "trash" , attributes : { destructive : true } } ,
675659 ] ,
676- [ arrangementMenuItems , autoSettleMenuItems , pauseMenuItems , snoozePresetActions , titleMenuItems ] ,
660+ [ arrangementMenuItems , autoSettleMenuItems , snoozePresetActions , titleMenuItems ] ,
677661 ) ;
678662 const cardMenuActions = useMemo < MenuAction [ ] > (
679663 ( ) => [
680664 CARD_MENU_ACTIONS [ 0 ] ! ,
681- ...pauseMenuItems ,
682665 ...arrangementMenuItems ,
683666 ...titleMenuItems ,
684667 ...autoSettleMenuItems ,
685668 ...CARD_MENU_ACTIONS . slice ( 1 ) ,
686669 ] ,
687- [ arrangementMenuItems , autoSettleMenuItems , pauseMenuItems , titleMenuItems ] ,
670+ [ arrangementMenuItems , autoSettleMenuItems , titleMenuItems ] ,
688671 ) ;
689672 // Settled and snoozed rows keep the setting too, matching web where every
690673 // row shares one menu builder.
@@ -722,7 +705,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
722705 ( { nativeEvent } : { readonly nativeEvent : { readonly event : string } } ) => {
723706 if ( nativeEvent . event === "new-thread-on-branch" ) onNewThreadOnBranch ( thread ) ;
724707 if ( nativeEvent . event === "settle" ) handleSettle ( ) ;
725- if ( nativeEvent . event === "pause" ) handlePause ( ) ;
726708 if ( nativeEvent . event === "unsettle" ) handleUnsettle ( ) ;
727709 if ( nativeEvent . event === "unsnooze" ) handleUnsnooze ( ) ;
728710 if ( nativeEvent . event === "pin" ) handlePin ( ) ;
@@ -760,7 +742,6 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
760742 thread ,
761743 handleArchive ,
762744 handleDelete ,
763- handlePause ,
764745 handleRegenerateTitle ,
765746 handleRename ,
766747 handleMoveDown ,
0 commit comments