tui: remove hardcoded handoff from autocomplete

pull/12755/head
Dax Raad 2026-02-08 18:44:23 -05:00
parent 0d365fa613
commit 9b2fd57e6e
1 changed files with 0 additions and 12 deletions

View File

@ -355,18 +355,6 @@ export function Autocomplete(props: {
const commands = createMemo((): AutocompleteOption[] => {
const results: AutocompleteOption[] = [...command.slashes()]
results.push({
display: "/handoff",
description: "Handoff to another context with a goal",
onSelect: () => {
const newText = "/handoff "
const cursor = props.input().logicalCursor
props.input().deleteRange(0, 0, cursor.row, cursor.col)
props.input().insertText(newText)
props.input().cursorOffset = Bun.stringWidth(newText)
},
})
for (const serverCommand of sync.data.command) {
if (serverCommand.source === "skill") continue
const label = serverCommand.source === "mcp" ? ":mcp" : ""