fix(tui): show the session rename prompt once (#7054)

Pressing r in /sessions turns the picker's header into the rename field
("New title: ..._") and also set the status row under it to the same
"New title: " prompt, so the prompt sat on two rows, with an empty copy
under the one being typed into. Clear the status instead. The header
carries the prompt, and the status row is still there for the
title-length error and the "Renamed to" receipt.

Signed-off-by: Lstarsky0 <[email protected]>
This commit is contained in:
WissssleyL authored and GitHub committed 2026-10-23 10:10:15 +08:00
1 parent d7695dfaab
commit 57e726bf3c
1 file changed
+1 -1
+1 -1
View File
@@ -1069,7 +1069,7 @@ impl ModalView for SessionPickerView {
KeyCode::Char('r') | KeyCode::Char('R') => {
self.rename_mode = true;
self.rename_input.clear();
self.status = Some(tr(self.locale, MessageId::SessionsNewTitlePrompt).into_owned());
self.status = None;
ViewAction::None
}
KeyCode::Char('d') | KeyCode::Char('D') => {