Skip to content

Commit 7566cf6

Browse files
committed
fix(tui): unbreak CI tests after Act vocabulary pass
- Help backspace tests: filter near-miss uses modez (yolo no longer visible). - Config view: header_lines accounts for ConfigSubtitle so status stays on-screen. - Hotbar zh-Hant chrome expects Act mode label instead of Agent.
1 parent bf85f41 commit 7566cf6

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

crates/tui/src/tui/hotbar/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ mod tests {
11801180
"命令",
11811181
"就緒",
11821182
"槽位",
1183-
"Agent模式",
1183+
"Act模式",
11841184
"命令面板",
11851185
"切換側邊欄",
11861186
] {

crates/tui/src/tui/views/help.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,9 @@ mod tests {
596596
#[test]
597597
fn backspace_widens_match_set() {
598598
let mut view = HelpView::new();
599-
type_filter(&mut view, "yolox");
599+
// Near-miss against the still-visible mode vocabulary so the last
600+
// character removes a unique miss and broadens the match set.
601+
type_filter(&mut view, "modez");
600602
let narrow = view.filtered.len();
601603
view.handle_key(key(KeyCode::Backspace));
602604
let wider = view.filtered.len();
@@ -609,7 +611,7 @@ mod tests {
609611
#[test]
610612
fn ctrl_h_widens_match_set() {
611613
let mut view = HelpView::new();
612-
type_filter(&mut view, "yolox");
614+
type_filter(&mut view, "modez");
613615
let narrow = view.filtered.len();
614616
view.handle_key(KeyEvent::new(KeyCode::Char('h'), KeyModifiers::CONTROL));
615617
let wider = view.filtered.len();

crates/tui/src/tui/views/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,8 @@ impl ModalView for ConfigView {
21782178
(lines, self.tr(MessageId::ConfigEditFooter).to_string())
21792179
} else {
21802180
let content_height = usize::from(inner.height);
2181-
let header_lines = 5usize;
2181+
// Title, subtitle, search, blank, column headers, separator.
2182+
let header_lines = 6usize;
21822183
let bottom_lines = 1usize;
21832184
// The action footer now lives inside the modal body (reserved by
21842185
// `render_modal_text_footer` below) rather than on the border, so it

0 commit comments

Comments
 (0)