[BUG] Status Line Escape Sequence Parsing Fails to Render Correctly

Resolved 💬 3 comments Opened Oct 13, 2025 by joshua-temple Closed Oct 16, 2025

Bug Description
Bug Report: Status line escape sequence parsing issue

The TUI status line displays escape sequences literally instead of interpreting them.

Current behavior:
\~/go/src/github.com/project on \ue0a0 branch via 1.24.4

Expected behavior:
~/go/src/github.com/project> on branch via 1.24.4

Root cause analysis:

  1. Backslash-escaped tilde (\~) should render as tilde (~)
  2. Unicode escape \ue0a0 (Powerline/Nerd Font git branch icon U+E0A0) should be decoded to actual character
  3. Status line parser lacks escape sequence processing/unescaping logic

Impact:

  • Visual clutter reduces readability
  • Affects users with Starship/Oh-My-Zsh/Powerline prompts
  • Working directory and git branch information harder to read

Environment:

  • OS: macOS Darwin 24.6.0
  • Model: claude-sonnet-4-5-20250929
  • Working directory: /Users/user/go/src/github.com/project
  • Shell prompt: appears to use Nerd Font icons

Technical recommendation:
Add proper escape sequence handling to status line renderer to unescape backslash sequences and decode Unicode escapes before display.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.0.14
  • Feedback ID: 31c2363b-e0d9-4d10-8f48-0d134fbe49b4

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at hK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:729)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:457\n    at Array.map (<anonymous>)\n    at tF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:448)\n    at OlB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:12745)\n    at G$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19415)\n    at ka (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)\n    at S9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)\n    at Wm (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)\n    at z$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)","timestamp":"2025-10-13T04:51:50.605Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at hK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:729)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:457\n    at Array.map (<anonymous>)\n    at tF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:448)\n    at OlB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:12745)\n    at G$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19415)\n    at ka (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)\n    at S9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)\n    at Wm (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)\n    at z$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)","timestamp":"2025-10-13T04:52:49.351Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at hK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:729)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:457\n    at Array.map (<anonymous>)\n    at tF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:448)\n    at OlB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:12745)\n    at G$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19415)\n    at ka (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42814)\n    at S9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38355)\n    at Wm (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38283)\n    at z$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38137)","timestamp":"2025-10-13T04:52:49.358Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at hK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:729)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:457\n    at Array.map (<anonymous>)\n    at tF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:448)\n    at OlB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2123:12745)\n    at G$ (file:///opt/homebrew/lib/node_modules/@

Note: Error logs were truncated.

View original on GitHub ↗

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