.qwen/e2e-tests/table-wrap-ansi-highlight.md
Markdown tables render inline code as ANSI-colored strings before wrapping cell
content. In narrow terminals, wrap-ansi can split a truecolor inline-code span
without re-opening its foreground color on the continuation line, so long table
names lose their code highlight after wrapping.
integration-tests/terminal-capture/table-inline-code-wrap-regression.ts100x32, real node dist/cli.js, OpenAI-compatible auth pointed at
the local fake server.244650615 must have an active 38;2 foreground color, and the final screen
must contain the suffix without containing the full table name on one line.cd /Users/gawain/Documents/codebase/opensource/qwen-code-table-wrap-ansi-highlight
cd packages/cli && npx vitest run src/ui/utils/TableRenderer.test.tsx
cd /Users/gawain/Documents/codebase/opensource/qwen-code-table-wrap-ansi-highlight
npm run build && npm run typecheck && npm run bundle
QWEN_TUI_E2E_OUT=/tmp/qwen-table-wrap-ansi/fixed \
npx tsx integration-tests/terminal-capture/table-inline-code-wrap-regression.ts
QWEN_TUI_E2E_REPO=/Users/gawain/Documents/codebase/opensource/qwen-code-table-wrap-ansi-highlight-base \
QWEN_TUI_E2E_OUT=/tmp/qwen-table-wrap-ansi/base \
QWEN_TUI_E2E_EXPECT_PASS=false \
npx tsx integration-tests/terminal-capture/table-inline-code-wrap-regression.ts
| Branch | Expected | wrapped | continuationOccurrences | colored | uncolored | Result |
|---|---|---|---|---|---|---|
origin/main base worktree | failure-first reproduction | true | 1 | 0 | 1 | reproduced |
fix/table-wrap-ansi-highlight | strict pass | true | 1 | 1 | 0 | passed |
/tmp/qwen-table-wrap-ansi/base/summary.json/tmp/qwen-table-wrap-ansi/base/raw.ansi.log/tmp/qwen-table-wrap-ansi/base/table-inline-code-wrap.png/tmp/qwen-table-wrap-ansi/fixed/summary.json/tmp/qwen-table-wrap-ansi/fixed/raw.ansi.log/tmp/qwen-table-wrap-ansi/fixed/table-inline-code-wrap.pngWhat this proves:
What this does not prove:
<Text color=...> rendering instead of the table ANSI-string path.