Skip to content

Add consistent theme-based thread colors across the TUI - #44857

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2b83a66bb3e80d4a1daea48ab9a86dbf2b525eef
Sep 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2b83a66bb3e80d4a1daea48ab9a86dbf2b525eef

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Add consistent theme-based thread colors across the TUI

What changed

Assign thread colors deterministically from the full thread ID and the active syntax theme's accents. Use the same color for thread names and titles in the status line, status previews, agents overview, and resume/fork pickers, independent of renaming or list order.

Preserve thread colors when picker rows are selected and honor tui.status_line_use_colors. Load the configured theme before startup pickers render and refresh the cached palette when the theme changes. Fall back to the terminal's default color when no accents are available.

Testing

Add unit and snapshot tests for palette extraction and refresh, default accent coverage, selected titles in both picker layouts, color suppression, and preview/footer consistency during automatic naming.

## What changed

Assign thread colors deterministically from the full thread ID and the active syntax theme's accents. Use the same color for thread names and titles in the status line, status previews, agents overview, and resume/fork pickers, independent of renaming or list order.

Preserve thread colors when picker rows are selected and honor `tui.status_line_use_colors`. Load the configured theme before startup pickers render and refresh the cached palette when the theme changes. Fall back to the terminal's default color when no accents are available.

## Testing

Add unit and snapshot tests for palette extraction and refresh, default accent coverage, selected titles in both picker layouts, color suppression, and preview/footer consistency during automatic naming.

GitOrigin-RevId: 2b83a66bb3e80d4a1daea48ab9a86dbf2b525eef
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2b83a66bb3e80d4a1daea48ab9a86dbf2b525eef branch from 37a238b to 0818b65 Compare September 11, 2026 16:20
@copyberry
copyberry Bot merged commit 0818b65 into main Sep 11, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2b83a66bb3e80d4a1daea48ab9a86dbf2b525eef branch September 11, 2026 16:21
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 11, 2026
@csow-lfg
csow-lfg deployed to issue-triage September 11, 2026 16:21 — with GitHub Actions Active
@csow-lfg
csow-lfg deployed to issue-triage September 11, 2026 16:21 — with GitHub Actions Active
@csow-lfg
csow-lfg deployed to issue-triage September 11, 2026 16:21 — with GitHub Actions Active
@k-3rb
k-3rb deployed to issue-triage September 11, 2026 16:23 — with GitHub Actions Active
@k-3rb
k-3rb deployed to issue-triage September 11, 2026 16:23 — with GitHub Actions Active
@k-3rb
k-3rb deployed to issue-triage September 11, 2026 16:23 — with GitHub Actions Active
@k-3rb
k-3rb deployed to issue-triage September 11, 2026 16:24 — with GitHub Actions Active
@blissyou
blissyou deployed to issue-triage September 11, 2026 16:41 — with GitHub Actions Active
@blissyou
blissyou deployed to issue-triage September 11, 2026 16:41 — with GitHub Actions Active
@blissyou
blissyou deployed to issue-triage September 11, 2026 16:41 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 0818b655 Deployed Sep 11, 2026 by blissyou via Identify potential duplicates (all issues) #44748
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants