From 7777dea0ccd0f98d07de9d9a6815eed6234d7477 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Tue, 19 May 2026 14:50:53 +0700 Subject: [PATCH] Align AI text indent with user and add bold to colored chat text --- tui/render.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tui/render.py b/tui/render.py index b92555f..c14458e 100644 --- a/tui/render.py +++ b/tui/render.py @@ -115,7 +115,7 @@ def draw_chat(app, stdscr): elif role == "ai": label = f" Hendrik ({item['time']}) " rendered.append((C_AI, label)) - _wrap_render(text, indent=3, color=C_INPUT) + _wrap_render(text, indent=1, color=C_INPUT) elif role == "system": lines = text.split("\n") rendered.append((C_SYSTEM, lines[0])) @@ -146,7 +146,7 @@ def draw_chat(app, stdscr): y = chat_top for i in range(app.scroll, min(app.scroll + chat_h, total)): color, text = rendered[i] - attr = curses.color_pair(color) if color else curses.A_NORMAL + attr = curses.color_pair(color) | curses.A_BOLD if color else curses.A_NORMAL if len(text) >= w: text = text[: w - 1] try: