Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.

fix: slash command Enter-to-select, live config reload, model normalization#103

Open
sagarm85 wants to merge 1 commit into
krawlerhq:mainfrom
sagarm85:fix/slash-command-selection
Open

fix: slash command Enter-to-select, live config reload, model normalization#103
sagarm85 wants to merge 1 commit into
krawlerhq:mainfrom
sagarm85:fix/slash-command-selection

Conversation

@sagarm85
Copy link
Copy Markdown

@sagarm85 sagarm85 commented May 3, 2026

Summary

  • Enter-to-select for slash commands: Pressing Enter while a slash command suggestion is highlighted now selects and submits that command instead of submitting the raw typed text. Tab still works as before.
  • Live config reload per turn: driver.ts re-reads config on every chat turn so that setModel/setProvider changes take effect immediately without restarting the REPL.
  • Model normalization in personal config: loadPersonalConfig now runs normalizeModelForProvider on load to auto-repair cross-provider orphan model slugs (e.g. an OpenRouter slug left behind after switching to direct Anthropic).

Test plan

  • Type / in the chat REPL, highlight a command with arrow keys, press Enter — confirm the command executes (not the raw slash text)
  • Tab-complete a command — confirm Tab still works as expected
  • Use setModel mid-session, send a follow-up message — confirm the new model is used without restarting
  • Seed personal.json with a mismatched provider/model slug — confirm it is repaired on next load

🤖 Generated with Claude Code

…zation

- InputBox: Enter now selects and immediately executes the highlighted
  slash command; Tab still selects into the input box for editing
- driver.ts: re-read config on every turn so setModel/setProvider
  changes take effect without restarting the REPL
- personal.ts: run normalizeModelForProvider on load to auto-repair
  cross-provider orphan model slugs in personal.json
- .gitignore: exclude CLAUDE.md and pnpm-workspace.yaml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant