Files
ai-setup/home-configs/claude
Виталий Никитенко e3a1c500fd fix(statusline): keep last ctx value while a Z.ai request is running
Z.ai (ai-glm, ai-eltex) streams message_start with input_tokens=0 and
sends the real usage only in the final message_delta, so while a
request runs Claude Code passes used_percentage=0 and ctx: dropped to
0%. Keep the last non-zero value per session_id in
~/.cache/ai-setup/ctx_last_<id> and show it instead of the zero.
/clear starts a new session id, so it still shows 0 there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 12:46:18 +07:00
..

Claude Code configuration

Statusline (statusline-command.sh)

The custom statusline script renders only ASCII-safe characters and ANSI color codes:

  • ASCII brackets [ ] for git branch and effort level
  • ANSI 256-color escape sequences for model names, effort levels, and rate-limit percentages
  • The $ symbol for the DeepSeek balance (USD only)

It does not use Nerd Font glyphs, powerline separators, or emoji.

Unicode symbols you may see in the TUI

Some symbols that appear in the Claude Code interface are rendered by Claude Code's own TUI, not by this statusline script. For example, arrow symbols such as ⏵ (used before "bypass permissions on" prompts) are drawn by Claude Code itself.

If these symbols display as boxes or question marks, install a Unicode-capable font such as:

  • Noto Color Emoji (recommended on Linux)
  • Any terminal font with full Unicode support

To install Noto Color Emoji on Debian/Ubuntu:

sudo apt-get install -y fonts-noto-color-emoji

The statusline script itself does not require emoji fonts.