tui: improve plan mode switching and question handling

- Add automatic agent switching when plan tools complete
- Add custom option control to question interface
- Update plan tool descriptions to clarify agent switching
- Show plan file path in exit/exit prompts
- Remove custom answer option when not needed
This commit is contained in:
Dax Raad 2026-01-13 15:32:37 -05:00
commit 69795efdcd
7 changed files with 126 additions and 102 deletions

View file

@ -545,6 +545,10 @@ export type QuestionInfo = {
* Allow selecting multiple choices
*/
multiple?: boolean
/**
* Allow typing a custom answer (default: true)
*/
custom?: boolean
}
export type QuestionRequest = {
@ -706,6 +710,7 @@ export type PermissionRuleset = Array<PermissionRule>
export type Session = {
id: string
slug: string
projectID: string
directory: string
parentID?: string