The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(tui): fix unreadable session-title chip contrast in the status bar
ygd58408634c2e13f
diff --git a/ui-tui/src/__tests__/appChromeStatusRule.test.tsx b/ui-tui/src/__tests__/appChromeStatusRule.test.tsxindex ec13205649b..07fc4687689 100644--- a/ui-tui/src/__tests__/appChromeStatusRule.test.tsx+++ b/ui-tui/src/__tests__/appChromeStatusRule.test.tsx@@ -116,7 +116,15 @@ describe('StatusRule session title', () => {expect(rendered).toContain('weekly-digest')expect(rendered).not.toContain('~/repo')- expect(title?.props.backgroundColor).toBe(DEFAULT_THEME.color.accent)+ // Regression for issue #82465: a raw, full-saturation accent-hue+ // background (e.g. #FFBF00 on DARK_SEEDS) paired with statusFg (a+ // near-white tone never designed to sit on it) rendered at roughly a+ // 1.5-2:1 contrast ratio -- unreadable. No background fill at all;+ // the accent color goes on the text instead, matching the theme's+ // own convention that a raw accent hue is never used as a solid+ // fill elsewhere (fills are always softened, e.g. activeRow).+ expect(title?.props.backgroundColor).toBeUndefined()+ expect(title?.props.color).toBe(DEFAULT_THEME.color.accent)})})diff --git a/ui-tui/src/components/appChrome.tsx b/ui-tui/src/components/appChrome.tsxindex 93da0fdaed5..7d99d849d3f 100644--- a/ui-tui/src/components/appChrome.tsx+++ b/ui-tui/src/components/appChrome.tsx@@ -751,9 +751,8 @@ export function StatusRule({<Text color={t.color.border}>{separatorWidth >= 3 ? ' ─ ' : ' '}</Text><Box flexShrink={0} width={rightWidth}><Text- backgroundColor={sessionTitle ? t.color.accent : undefined}bold={!!sessionTitle}- color={sessionTitle ? t.color.statusFg : t.color.label}+ color={sessionTitle ? t.color.accent : t.color.label}wrap="truncate-end">{rightLabel}