Skip to content

Fix RichHandler console highlighter fallback#4116

Open
SAY-5 wants to merge 1 commit intoTextualize:masterfrom
SAY-5:fix/richhandler-console-highlighter
Open

Fix RichHandler console highlighter fallback#4116
SAY-5 wants to merge 1 commit intoTextualize:masterfrom
SAY-5:fix/richhandler-console-highlighter

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 10, 2026

Fixes #3887.

RichHandler now falls back to the attached console's highlighter when the handler itself was not given one explicitly, which keeps logging behavior aligned with Console.print() for custom console highlighters.

Added a regression test that reproduces the issue with a Console-bound custom highlighter and verifies explicit record-level overrides still win.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Highlighter handling between Console and RichHandler inconsistent.

1 participant