fix(tui): render input bar in task detail view (#477)

The task detail view was setting inputMode for status/assign/priority/
comment but never rendering the input bar — keystrokes were captured
but invisible. Add input bar rendering before the footer in
renderTaskDetail().
This commit is contained in:
nyk 2026-03-22 19:43:14 +07:00 committed by GitHub
parent 1acbf8e053
commit 034865201e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -535,6 +535,19 @@ function renderTaskDetail() {
}
}
// Input bar (when editing from task detail)
if (state.inputMode) {
const label = state.inputLabel || 'Input';
const cursor = state.inputBuffer + '\u2588';
process.stdout.write(`\n ${ansi.bold(ansi.yellow(label + ':'))} ${cursor}\n`);
if (state.inputMode === 'edit-status') {
process.stdout.write(ansi.dim(' inbox/assigned/in_progress/review/done/failed esc cancel') + '\n');
} else {
process.stdout.write(ansi.dim(' enter submit esc cancel') + '\n');
}
return;
}
// Footer
if (state.actionMessage) process.stdout.write('\n' + ansi.green(` ${state.actionMessage}`) + '\n');
process.stdout.write('\n' + ansi.dim(' esc back [s]tatus [a]ssign [p]riority [c]omment [r]efresh [q]uit') + '\n');