fix: remove /prompt slash command — footgun via prefix expansion (#6752)

/pr <anything> silently resolved to /prompt via the shortest-match
tiebreaker in prefix expansion, permanently overwriting the system
prompt and persisting to config. The command's functionality (setting
agent.system_prompt) is available via config.yaml and /personality
covers the common use case.

Removes: CommandDef, dispatch branch, _handle_prompt_command handler,
docs references, and updates subcommand extraction test.
This commit is contained in:
Teknium 2026-04-09 11:27:27 -07:00 committed by GitHub
parent ee16416c7b
commit 2772d99085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 63 deletions

View file

@ -249,7 +249,6 @@ Type these during an interactive chat session.
/config Show config (CLI)
/model [name] Show or change model
/provider Show provider info
/prompt [text] View/set system prompt (CLI)
/personality [name] Set personality
/reasoning [level] Set reasoning (none|low|medium|high|xhigh|show|hide)
/verbose Cycle: off → new → all → verbose