Преглед изворни кода

fix(desktop): disable hidden agent cycling (#31207)

Luke Parker пре 3 месеци
родитељ
комит
e82542b802
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      packages/app/src/pages/session/use-session-commands.tsx

+ 2 - 0
packages/app/src/pages/session/use-session-commands.tsx

@@ -547,6 +547,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
       description: language.t("command.agent.cycle.description"),
       keybind: "mod+.",
       slash: "agent",
+      disabled: desktopV2() && !settings.general.showCustomAgents(),
       onSelect: () => local.agent.move(1),
     }),
     agentCommand({
@@ -554,6 +555,7 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
       title: language.t("command.agent.cycle.reverse"),
       description: language.t("command.agent.cycle.reverse.description"),
       keybind: "shift+mod+.",
+      disabled: desktopV2() && !settings.general.showCustomAgents(),
       onSelect: () => local.agent.move(-1),
     }),
   ]