@@ -24,7 +24,6 @@ import {
2424 squashAtomCommandFailure ,
2525} from "@t3tools/client-runtime/state/runtime" ;
2626import {
27- type DesktopSnapShotState ,
2827 type DesktopWslState ,
2928 type EnvironmentId ,
3029 type EnvironmentMachineKind ,
@@ -40,7 +39,6 @@ import { useLocation, useNavigate, useParams } from "@tanstack/react-router";
4039import * as Option from "effect/Option" ;
4140import {
4241 ArrowLeftIcon ,
43- CameraIcon ,
4442 CornerLeftUpIcon ,
4543 FileSearchIcon ,
4644 FolderIcon ,
@@ -85,7 +83,6 @@ import { useEnvironments, usePrimaryEnvironmentId } from "../state/environments"
8583import { useProjects , useThreadShells } from "../state/entities" ;
8684import { useThreadSearch } from "../state/queries" ;
8785import { resolveThreadActionProjectRef , startNewThreadFromContext } from "../lib/chatThreadActions" ;
88- import { getDesktopSnapShotBridge } from "../lib/desktopSnapShot" ;
8986import {
9087 appendBrowsePathSegment ,
9188 ensureBrowseDirectoryPath ,
@@ -578,8 +575,6 @@ function OpenCommandPaletteDialog(props: {
578575 const pathname = useLocation ( { select : ( location ) => location . pathname } ) ;
579576 const { clearOpenIntent, openIntent, openOverlayMode, setOpen } = props ;
580577 const [ query , setQuery ] = useState ( "" ) ;
581- const snapShotBridge = getDesktopSnapShotBridge ( ) ;
582- const [ snapShotState , setSnapShotState ] = useState < DesktopSnapShotState | null > ( null ) ;
583578 const deferredQuery = useDeferredValue ( query ) ;
584579 const isActionsOnly = deferredQuery . startsWith ( ">" ) ;
585580 const [ highlightedItemValue , setHighlightedItemValue ] = useState < string | null > ( null ) ;
@@ -697,19 +692,6 @@ function OpenCommandPaletteDialog(props: {
697692 [ clientSettings ] ,
698693 ) ;
699694
700- useEffect ( ( ) => {
701- let active = true ;
702- void snapShotBridge
703- ?. getSnapShotState ( )
704- . then ( ( state ) => {
705- if ( active ) setSnapShotState ( state ) ;
706- } )
707- . catch ( ( ) => undefined ) ;
708- return ( ) => {
709- active = false ;
710- } ;
711- } , [ snapShotBridge ] ) ;
712-
713695 const environmentLabelById = useMemo (
714696 ( ) =>
715697 new Map (
@@ -1649,19 +1631,6 @@ function OpenCommandPaletteDialog(props: {
16491631 } ,
16501632 } ) ;
16511633
1652- if ( snapShotBridge && snapShotState && snapShotState . mode !== "unavailable" ) {
1653- actionItems . push ( {
1654- kind : "action" ,
1655- value : "action:capture-window" ,
1656- searchTerms : [ "capture window" , "screenshot" , "attach" , "snap" ] ,
1657- title : "Take snapshot" ,
1658- icon : < CameraIcon className = { ITEM_ICON_CLASS } /> ,
1659- run : async ( ) => {
1660- await snapShotBridge . captureWindow ( ) . catch ( ( ) => undefined ) ;
1661- } ,
1662- } ) ;
1663- }
1664-
16651634 actionItems . push ( {
16661635 kind : "action" ,
16671636 value : "action:add-project" ,
0 commit comments