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
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27