.qwen/e2e-tests/tui-spacing-density-pr1.md
Provide before/after evidence that PR1 reduces visible row usage without removing content or changing rendering scope.
Terminal capture:
git checkout origin/main
REPO_ROOT="$PWD"
/tmp/qwen-pr1-spacing-evidence/run-tmux-capture.sh "$REPO_ROOT" 'base origin/main 34b7d472e' base
git switch feat/tui-spacing-density-pr1
/tmp/qwen-pr1-spacing-evidence/run-tmux-capture.sh "$REPO_ROOT" 'PR1 fixed 848d6a166' fixed
VHS visual capture:
git checkout origin/main
PATH=/Users/gawain/.nvm/versions/node/v24.15.0/bin:$PATH vhs /tmp/qwen-pr1-spacing-evidence/base.tape
git switch feat/tui-spacing-density-pr1
PATH=/Users/gawain/.nvm/versions/node/v24.15.0/bin:$PATH vhs /tmp/qwen-pr1-spacing-evidence/fixed.tape
ffmpeg -y -i /tmp/qwen-pr1-spacing-evidence/base.gif -i /tmp/qwen-pr1-spacing-evidence/fixed.gif -filter_complex "[0:v]fps=5,scale=780:-1:flags=lanczos[left];[1:v]fps=5,scale=780:-1:flags=lanczos[right];[left][right]hstack=inputs=2,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" /tmp/qwen-pr1-spacing-evidence/base-vs-fixed-optimized.gif
| Scenario | Width | Baseline rows | PR1 rows | Delta | Notes |
|---|---|---|---|---|---|
| Simple Q&A | 100 | 2 | 1 | -1 | Assistant history item no longer starts with a spacer row |
| File list or shell output | 100 | 3 | 2 | -1 | Tool header and first result row are adjacent |
| File-read error | 100 | 3 | 2 | -1 | Error result uses the same tool header/result spacing |
| Project inspection | 100 | 16 | 11 | -5 | Three expanded tools no longer have header/result spacer rows or blank inter-tool rows |
| Diff output | 100 | 3 | 2 | -1 | Diff renderer remains unchanged; only tool header/result spacing changes |
| Long streaming output | 100 | N + 2 | N + 1 | -1 | Content rows are unchanged; the extra header/result spacer is removed |
| Full representative fixture | 100 | 26 | 19 | -7 | Same content rendered through real Ink components and captured in tmux |