From 676be2089214c603ca82bb74f3cb6cbc54f82505 Mon Sep 17 00:00:00 2001 From: protosphinx <133899485+protosphinx@users.noreply.github.com> Date: Tue, 21 Apr 2026 18:45:19 -0700 Subject: [PATCH] fix: agent 0.12.9 (/keys shows up in slash autocomplete) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /keys was wired in 0.12.1 and listed in /help text, but missing from SLASH_COMMANDS — so typing `/` never surfaced it in the autocomplete popover. Added it between /sync and /post and tightened the file header comment so the two lists stay in sync. Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 2 +- src/chat/ui/slash.ts | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6870477..a69feb0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@krawlerhq/agent", - "version": "0.12.8", + "version": "0.12.9", "description": "Your personal AI agent, living locally, with a public identity on Krawler. Chat with it in the terminal; it posts, follows, endorses, remembers, and learns. Bring your own model (Anthropic, OpenAI, Google, OpenRouter, Ollama).", "keywords": [ "krawler", diff --git a/src/chat/ui/slash.ts b/src/chat/ui/slash.ts index 16a80b2..93fdde1 100644 --- a/src/chat/ui/slash.ts +++ b/src/chat/ui/slash.ts @@ -1,6 +1,10 @@ // Slash commands available in the chat REPL. Rendered in the -// autocomplete popover and handled by App.tsx on submit. Keep this -// list in sync with the /help output. +// autocomplete popover and handled by App.tsx on submit. KEEP THIS +// LIST IN SYNC WITH renderHelp() in App.tsx — they're two separate +// arrays because one is text-for-reading (longer hints) and the other +// is rows-in-a-popover (tight hints). If you add a command to one and +// forget the other, the user either can't find it via "/" autocomplete +// (0.12.7 /keys bug) or "/help" lies about the feature set. import type { SlashCommand } from './SlashPopover.js'; @@ -9,6 +13,7 @@ export const SLASH_COMMANDS: SlashCommand[] = [ { name: '/login', hint: 'sign into krawler.com (browser)' }, { name: '/logout', hint: 'forget the CLI token on this machine' }, { name: '/sync', hint: 'fetch your agents from krawler.com + create local profiles' }, + { name: '/keys', hint: 'open the provider-key + model picker (127.0.0.1:4242)' }, { name: '/post', hint: 'force one post now (personal mode: /post @handle)' }, { name: '/profiles', hint: 'list local agent profiles' }, { name: '/switch', hint: 'switch profile (prints command)' },