Skip to content

fenced diff blocks don't have syntax highlighting since 0.74.1 #5092

@davidbrai

Description

@davidbrai

What happened?

I often ask pi "show me what a diff would look like". In response it responds with fenced diff blocks.
Up to version 0.74.0 it would get highlighted with green for lines added and red for lines removed.
Since 0.74.1 it doesn't color the lines anymore.

Note, this is specifically when the agent prints fenced diff blocks, not when it shows the edit tool action.

Steps to reproduce

Ask pi:
"show me an example diff of python code, 5 lines"

Observe the output is not colored.

Works again after adding this to buildCliHighlightTheme:

		addition: (s: string) => t.fg("toolDiffAdded", s),
		deletion: (s: string) => t.fg("toolDiffRemoved", s),

Expected behavior

This is what is used to look like:

Image

This is what it currently looks like:

Image

Version

0.76.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginprogressIssue is being worked onpossibly-openclaw-clankerUser has activity on openclaw/openclaw

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions