diff --git a/packages/tui/src/app.tsx b/packages/tui/src/app.tsx
index 559badd6500..58ac9a39512 100644
--- a/packages/tui/src/app.tsx
+++ b/packages/tui/src/app.tsx
@@ -821,7 +821,7 @@ function App(props: { pair?: DialogPairCredentials }) {
title: "Switch model",
suggested: true,
category: "Agent",
- slash: { name: "models", aliases: ["mo"] },
+ slash: { name: "models" },
run: () => {
dialog.replace(() => )
},
@@ -902,7 +902,7 @@ function App(props: { pair?: DialogPairCredentials }) {
title: "Switch model variant",
category: "Agent",
palette: local.model.variant.list().length === 0 ? undefined : (true as const),
- slash: { name: "variants" },
+ slash: { name: "variants", aliases: ["thinking"] },
run: () => {
if (local.model.variant.list().length === 0) {
return toast.show({
diff --git a/packages/tui/src/component/prompt/autocomplete.tsx b/packages/tui/src/component/prompt/autocomplete.tsx
index bb35ea31d29..1a7c7b2dc42 100644
--- a/packages/tui/src/component/prompt/autocomplete.tsx
+++ b/packages/tui/src/component/prompt/autocomplete.tsx
@@ -503,12 +503,11 @@ export function Autocomplete(props: {
const results: AutocompleteOption[] = keymapCommands().flatMap((command) => {
const slash = command.slash
if (!slash) return []
- return {
- display: `/${slash.name}`,
+ return [slash.name, ...(slash.aliases ?? [])].map((name) => ({
+ display: `/${name}`,
description: command.description ?? command.title,
- aliases: slash.aliases?.map((alias) => `/${alias}`),
- onSelect: slash.arguments ? () => insertSlash(slash.name) : command.run,
- }
+ onSelect: slash.arguments ? () => insertSlash(name) : command.run,
+ }))
})
const commandNames = new Set()
diff --git a/packages/tui/src/component/prompt/index.tsx b/packages/tui/src/component/prompt/index.tsx
index 50a44428746..2d42cc7377f 100644
--- a/packages/tui/src/component/prompt/index.tsx
+++ b/packages/tui/src/component/prompt/index.tsx
@@ -619,7 +619,7 @@ export function Prompt(props: PromptProps) {
desc: "Manage workspaces",
name: "session.move",
category: "Session",
- slash: { name: "worktrees", aliases: ["move", "mov"] },
+ slash: { name: "worktrees" },
run: () => {
move.open()
},
diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx
index 4e95c0235a0..52db18841da 100644
--- a/packages/tui/src/routes/session/index.tsx
+++ b/packages/tui/src/routes/session/index.tsx
@@ -946,10 +946,6 @@ export function Session(props: {
id: "session.toggle.thinking",
group: "Session",
palette: undefined,
- slash: {
- name: "thinking",
- aliases: ["toggle-thinking"],
- },
run: () => {
void configState
.update((draft) => {