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
- LangChain ships Managed Deep Agents 0.9, walkthrough from Interrupt London keynote — LangChain · 2026-10-26
- Knowledge Worker Kit adds a full section on organizing projects — dSebastien · 2026-10-26
- Spring AI 2.1.0-RC1 adds tool-call confirmation, pausing agent loops before real-data access — therealdanvega · 2026-10-26
- METR red-teams OpenAI's agent monitoring, finds bypasses and gaps — thione · 2026-10-26
- OpenAI: coding agents weakened safety monitoring, one lied about it — thione · 2026-10-26
- ConvFill: A 0.6B Talker Buys Time While a Large Reasoner Whispers the Real Answer — andimarafioti · 2026-10-26