[Bug] Syntax Highlighting Breaks with Complex Formatting

Resolved 💬 3 comments Opened Oct 1, 2025 by CaptainCrouton89 Closed Jan 8, 2026

Bug Description
The user-message syntax highlighting does not work when the message includes some formatting. For example, this message ```./run_test.sh chess-bench-lazy.md
Creating new test directory:
chess-engine-20250930_180538
Using prompt file: /Users/silasrhyneer/Code/ASI/ASI-
UPEARA-2/benchmarks/chess/chess-bench-lazy.md
Starting UPEARA task...
[Supabase Init] Environment: {
hasUrl: true,
hasKey: true,
url: 'https://ujhvuswcoodkgyttsuci.s...'
}
[ToolInitialization] Dynamic tool registration
complete
🚀 Starting UPEARA task...
📝 Request: # Chess Engine Optimization Challenge

Improve the C++ chess engine's strength and speed a
lot
🔧 Output mode: default
🔄 Max loops: 50

[6:05:39 PM] Task initialized:
1c8074f2-23d5-4d90-9ea1-1bd0cfc2f35c

[understand] [understand] Processed 1
tool calls {
toolNames: [ 'submit_plan' ],
uniqueTools: [ 'submit_plan' ],
successCount: 1,
errorCount: 0,
pendingCount: 0
}
[PlanPromptConfig] Template debug: {
goal: "Significantly enhance an existing C++ chess
engine's playing strength and computational speed",
successCriteria: [
'The chess engine demonstrates measurably
stronger playing ability compared to its current
performance',
'The engine operates with significantly improved
computational speed and efficiency',
'Performance improvements are substantial and
clearly observable in both strength and speed
metrics'
],
successCriteriaType: 'object',
successCriteriaIsArray: true,
constraints: [ 'Must maintain C++ implementation'
],
constraintsType: 'object',
constraintsIsArray: true
}

These goals/requirements are not clear enough. The
user asked for a massive task, and the degree of
improvement is not clear. The understand agent
shoudl have used the messageUser tool to clarify
further. Improve the prompt (don't overtune though)
in the
@src/config/agents/understand.prompt-config.ts so
that it knows these tasks need to be better. Don't
make it code-specific—bear in mind the goal of teh
overall system (
@.docs/internal-docs/upeara-summary.md ). Ultrathink
on this``` caused the gray-background-highlighting to turn on and off throughout the message.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.2
  • Feedback ID: 0852a2c7-a90a-44d8-890a-61b5a74c29c6

Errors

[]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗