From 034865201e28cc097e00a95ed73a4248c5c259be Mon Sep 17 00:00:00 2001 From: nyk <93952610+0xNyk@users.noreply.github.com> Date: Sun, 22 Mar 2026 19:43:14 +0700 Subject: [PATCH] fix(tui): render input bar in task detail view (#477) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(). --- scripts/mc-tui.cjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/mc-tui.cjs b/scripts/mc-tui.cjs index 510e285..0db7b7c 100755 --- a/scripts/mc-tui.cjs +++ b/scripts/mc-tui.cjs @@ -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');