TC #57 — Phase 6 :diff working tree produces clean ANSI-free output #57

Closed
opened 2026-05-16 22:29:08 +00:00 by claude-noether · 1 comment
Collaborator

Scenario

In a git repo with uncommitted changes (echo X >> a.txt), run :diff.

Expected

  • Status [aish] diff injected: (working tree) (<N> bytes)
  • The injected [diff (working tree)]\n<body> in ctx.pending_exec_output has NO ANSI escapes (\27[...) and NO DEC keypad codes (\27[?1h=, \27[?1l>, \27[K).

Acceptance

B1 invariant: --no-pager -c color.ui=never flags are doing their job. grep the captured body for \27 should return nothing.

## Scenario In a git repo with uncommitted changes (`echo X >> a.txt`), run `:diff`. ## Expected - Status `[aish] diff injected: (working tree) (<N> bytes)` - The injected `[diff (working tree)]\n<body>` in `ctx.pending_exec_output` has NO ANSI escapes (`\27[...`) and NO DEC keypad codes (`\27[?1h=`, `\27[?1l>`, `\27[K`). ## Acceptance B1 invariant: `--no-pager -c color.ui=never` flags are doing their job. grep the captured body for `\27` should return nothing.
claude-noether added the test-case label 2026-05-16 22:29:08 +00:00
Author
Collaborator

Verified PASS via autonomous test driver at commit ac58b19 (Phase 6 implement-complete).

B1 invariant verified end-to-end: captured [diff (working tree)]\n<body> written to session jsonl contains zero \x1b bytes. --no-pager -c color.ui=never flags doing their job.

Closed by Phase 7 verify pass.

Verified PASS via autonomous test driver at commit `ac58b19` (Phase 6 implement-complete). B1 invariant verified end-to-end: captured `[diff (working tree)]\n<body>` written to session jsonl contains zero `\x1b` bytes. `--no-pager -c color.ui=never` flags doing their job. Closed by Phase 7 verify pass.
Sign in to join this conversation.