Qwen Code standardizes its TUI icon gutter at two columns to fix alignment drift
chiga0 · ghdev · 2026-07-24
Qwen Code fixes TUI icon-column alignment with a uniform 2-column gutter
A PR for QwenLM/qwen-code #7633 fixes a layout bug in the TUI conversation view where tool-status icons were indented differently from message prefixes.
Root causes
- ToolMessage used paddingX={1} and a 3-column status indicator width
- Other components used inconsistent gutter strategies
- Some icons are actually 2 terminal columns wide, so a 1-column gutter could overflow
- Ambiguous-width glyphs drift in CJK terminals because Ink uses string-width with ambiguousIsNarrow=true
Fixes
- Reduce STATUSINDICATORWIDTH from 3 to 2
- Remove the extra left padding from ToolMessage
- Standardize the icon gutter across message types
- Append VS15 (U+FE0E) to force narrow presentation for ambiguous glyphs in all terminals
The patch is aimed at making the assistant/tool icon column line up consistently across terminal environments, including CJK setups.
More from coding & agent
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- 105 hidden bugs, 2 repos: DeepSeek V4.1 Flash fixes 24 at $1.80 vs Opus 5's 27 at $51.33 — ChartsJournalX · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11