From cc580e3db453cbae7f8169b2e80add32bc17da2e Mon Sep 17 00:00:00 2001 From: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 03:29:40 +0000 Subject: [PATCH] fix: include gateway plugin commands in TUI autocomplete Co-authored-by: Se7en <285117352+se7en-agent@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> --- src/tui/tui.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/tui/tui.ts b/src/tui/tui.ts index 24e657ddc1f..a842294dec2 100644 --- a/src/tui/tui.ts +++ b/src/tui/tui.ts @@ -704,8 +704,7 @@ export async function runTui(opts: RunTuiOptions): Promise { root.addChild(footer); root.addChild(editor); - const resolveDynamicSlashCommandsKey = () => - JSON.stringify([currentAgentId, sessionInfo.modelProvider ?? ""]); + const resolveDynamicSlashCommandsKey = () => currentAgentId; const applyAutocompleteProvider = () => { const dynamicKey = resolveDynamicSlashCommandsKey(); @@ -737,10 +736,9 @@ export async function runTui(opts: RunTuiOptions): Promise { dynamicSlashCommandsInFlightKey = key; const requestId = ++dynamicSlashCommandsRequestId; const agentId = currentAgentId; - const provider = sessionInfo.modelProvider; - void client.listCommands({ + void client + .listCommands({ agentId, - ...(provider ? { provider } : {}), scope: "text", includeArgs: false, })