@@ -136,9 +136,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
136136 const contextCommand = withCategory ( language . t ( "command.category.context" ) )
137137 const viewCommand = withCategory ( language . t ( "command.category.view" ) )
138138 const terminalCommand = withCategory ( language . t ( "command.category.terminal" ) )
139- const modelCommand = withCategory ( language . t ( "command.category.model" ) )
140139 const mcpCommand = withCategory ( language . t ( "command.category.mcp" ) )
141- const agentCommand = withCategory ( language . t ( "command.category.agent" ) )
142140 const permissionsCommand = withCategory ( language . t ( "command.category.permissions" ) )
143141
144142 const isAutoAcceptActive = ( ) => {
@@ -271,13 +269,6 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
271269 view ( ) . terminal . open ( )
272270 }
273271
274- const chooseModel = ( ) => {
275- void openDialog (
276- ( ) => import ( "@/components/dialog-select-model" ) ,
277- ( x ) => dialog . show ( ( ) => < x . DialogSelectModel model = { local . model } /> ) ,
278- )
279- }
280-
281272 const chooseMcp = ( ) => {
282273 void openDialog (
283274 ( ) => import ( "@/components/dialog-select-mcp" ) ,
@@ -555,24 +546,6 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
555546 } ) ,
556547 ]
557548
558- const modelCmds = ( ) => [
559- modelCommand ( {
560- id : "model.choose" ,
561- title : language . t ( "command.model.choose" ) ,
562- description : language . t ( "command.model.choose.description" ) ,
563- keybind : "mod+'" ,
564- slash : "model" ,
565- onSelect : chooseModel ,
566- } ) ,
567- modelCommand ( {
568- id : "model.variant.cycle" ,
569- title : language . t ( "command.model.variant.cycle" ) ,
570- description : language . t ( "command.model.variant.cycle.description" ) ,
571- keybind : "shift+mod+d" ,
572- onSelect : ( ) => local . model . variant . cycle ( ) ,
573- } ) ,
574- ]
575-
576549 const mcpCmds = ( ) => [
577550 mcpCommand ( {
578551 id : "mcp.toggle" ,
@@ -584,26 +557,6 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
584557 } ) ,
585558 ]
586559
587- const agentCmds = ( ) => [
588- agentCommand ( {
589- id : "agent.cycle" ,
590- title : language . t ( "command.agent.cycle" ) ,
591- description : language . t ( "command.agent.cycle.description" ) ,
592- keybind : "mod+." ,
593- slash : "agent" ,
594- disabled : ! settings . visibility . customAgents ( ) ,
595- onSelect : ( ) => local . agent . move ( 1 ) ,
596- } ) ,
597- agentCommand ( {
598- id : "agent.cycle.reverse" ,
599- title : language . t ( "command.agent.cycle.reverse" ) ,
600- description : language . t ( "command.agent.cycle.reverse.description" ) ,
601- keybind : "shift+mod+." ,
602- disabled : ! settings . visibility . customAgents ( ) ,
603- onSelect : ( ) => local . agent . move ( - 1 ) ,
604- } ) ,
605- ]
606-
607560 const permissionsCmds = ( ) => [
608561 permissionsCommand ( {
609562 id : "permissions.autoaccept" ,
@@ -624,9 +577,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
624577 ...viewCmds ( ) ,
625578 ...terminalCmds ( ) ,
626579 ...messageCmds ( ) ,
627- ...modelCmds ( ) ,
628580 ...mcpCmds ( ) ,
629- ...agentCmds ( ) ,
630581 ...permissionsCmds ( ) ,
631582 ] )
632583}
0 commit comments