Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

show full session ids in monitor

Raine Virtaa6c2ed617dea
diff --git a/src/tui.rs b/src/tui.rs
index 12996e4..b543bd4 100644
--- a/src/tui.rs
+++ b/src/tui.rs
@@ -341,7 +341,7 @@ fn render_sessions(
let marker = if index == selected { ">" } else { " " };
Row::new(vec![
Cell::from(Span::styled(marker, Style::default().fg(TEAL))),
- text_cell(shorten(&session.label(), 26)),
+ text_cell(session.label()),
number_cell(session.active_count.to_string()),
number_cell(session.request_count.to_string()),
number_cell(session.failure_count.to_string()),
@@ -365,7 +365,7 @@ fn render_sessions(
rows,
[
Constraint::Length(1),
- Constraint::Percentage(24),
+ Constraint::Length(36),
Constraint::Length(6),
Constraint::Length(5),
Constraint::Length(5),
@@ -619,12 +619,3 @@ fn format_system_time(time: SystemTime) -> String {
seconds % 60
)
}
-
-fn shorten(value: &str, max_chars: usize) -> String {
- if value.chars().count() <= max_chars {
- return value.to_string();
- }
- let mut out: String = value.chars().take(max_chars.saturating_sub(1)).collect();
- out.push('~');
- out
-}