Skip to content

Commit 79c07dd

Browse files
committed
docs(qa): note venv-PATH trap and empty-diff warning behavior
1 parent 0037587 commit 79c07dd

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

QA.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,23 @@ GitHub auto-redirects but the local origin must be updated:
114114
test fixture. Use it during code review to surface the same semantic
115115
context an external user would see — large diffs (>10k tokens) are normal
116116
for rebrand-class commits and should not be treated as regressions.
117+
118+
## Local `which diffctx` Trap
119+
120+
`/Users/nikolay/diffctx/.venv/bin` sits FIRST on `$PATH` when this project's
121+
venv is active (which happens automatically after the recovery flow above).
122+
That means a bare `diffctx ...` inside the working tree runs the working-tree
123+
build, NOT the pipx-published binary. For QA code-review steps, always use
124+
the absolute path `/Users/nikolay/.local/bin/diffctx` so the run matches what
125+
external users get. Tests, builds, and pre-commit need the venv binary; only
126+
the user-facing smoke / review step needs the pipx one.
127+
128+
## Empty-Diff Warning Is Expected on Docs-Only HEAD
129+
130+
`diffctx --diff` (bare, no range → defaults to HEAD per commit `f67efab0`)
131+
on a docs-only HEAD prints
132+
`diffctx: diff produced no semantic context (pure deletion, binary-only, or
133+
all files exceeded size cap); output empty.` and emits a 11-token YAML
134+
skeleton. Not a regression — this is the actionable-error contract from
135+
`f67efab0`. CLI smoke check should accept the warning and the empty
136+
`fragments:` list, NOT fail on it.

0 commit comments

Comments
 (0)