fix(tui): address Copilot review feedback on mutating command parity

Harden busy mode config reads against invalid display config shapes and align /fast help+usage text with accepted aliases, with regression coverage for non-dict display values.
This commit is contained in:
Brooklyn Nicholson 2026-04-27 12:30:30 -05:00
parent 487da4b72b
commit a13449a40a
3 changed files with 16 additions and 7 deletions

View file

@ -307,14 +307,14 @@ export const sessionCommands: SlashCommand[] = [
},
{
help: 'toggle fast mode [normal|fast|status]',
help: 'toggle fast mode [normal|fast|status|on|off|toggle]',
name: 'fast',
run: (arg, ctx) => {
const mode = arg.trim().toLowerCase()
const valid = new Set(['', 'status', 'normal', 'fast', 'on', 'off', 'toggle'])
if (!valid.has(mode)) {
return ctx.transcript.sys('usage: /fast [normal|fast|status]')
return ctx.transcript.sys('usage: /fast [normal|fast|status|on|off|toggle]')
}
if (!mode || mode === 'status') {