fix(plan): make direct exit discoverable

This commit is contained in:
fz
2026-07-23 21:34:40 +08:00
parent a7b0e69797
commit 5e8943fd1c
6 changed files with 26 additions and 9 deletions

View File

@@ -2384,6 +2384,7 @@ export function createTuiChat(
...ctx.commands.list(agent).map(command => ({
name: command.name,
description: command.description,
...(command.input === undefined ? {} : { argumentHint: command.input.hint }),
})),
...skillCommands,
],

View File

@@ -1706,6 +1706,11 @@ describe('pi-tui chat lifecycle and transcript', () => {
handler: () => ({ kind: 'error' as const, text: 'plugin error result' }),
})
result.terminal.send('/plugin-ch')
await tick()
expect(result.terminal.output).toContain('<value> — Run a plugin command')
result.terminal.send('\x03')
result.terminal.send('/plugin-check value ')
result.terminal.send('\r')
await tick()