From f7fe0f203e0f349df33819aab239c0aade016f79 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 17 May 2026 01:41:17 +0300 Subject: fix: polish terminal-core agent semantics --- src/ui/mobile.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ui/mobile.rs') diff --git a/src/ui/mobile.rs b/src/ui/mobile.rs index 8bcdf184..7b12177b 100644 --- a/src/ui/mobile.rs +++ b/src/ui/mobile.rs @@ -286,7 +286,10 @@ fn render_header_status(app: &AppState, frame: &mut Frame, area: Rect) { Span::styled(dot, dot_style.bg(p.panel_bg)), Span::raw(" "), Span::styled( - truncate(&ws.display_name(), name_w.saturating_sub(4) as usize), + truncate( + &ws.display_name_from(&app.terminals, &app.terminal_runtimes), + name_w.saturating_sub(4) as usize, + ), Style::default() .fg(p.text) .bg(p.panel_bg) @@ -437,7 +440,10 @@ fn render_mobile_switcher_content(app: &AppState, frame: &mut Frame, viewport: R Span::styled(dot, dot_style.bg(bg)), Span::styled(" ", Style::default().bg(bg)), Span::styled( - truncate(&ws.display_name(), content.width.saturating_sub(5) as usize), + truncate( + &ws.display_name_from(&app.terminals, &app.terminal_runtimes), + content.width.saturating_sub(5) as usize, + ), Style::default() .fg(p.text) .bg(bg) -- cgit v1.2.3