watchme: caveat on the recorded shell's cwd vanishing

A merge that empties a directory recreates it; a shell cd'd there is
left in the deleted one until cd "$PWD".

Generated-by: Claude Opus 5.5
This commit is contained in:
dckc committed 2026-11-20 14:23:31 -06:00
1 parent 9c75e44fef
commit 53dd9b3b2d
1 file changed
+5
+5
View File
@@ -80,6 +80,11 @@ it survives independently of the transcript.
through them, or filter before quoting.
- Captures grow fast — tens of thousands of lines for a long session. Read
the tail by default, not the whole file.
- The recorded shell's cwd can vanish under it. A git merge or checkout
that moves every file out of a directory deletes the directory and
recreates it. A shell `cd`'d there is left in the deleted one: the prompt
shows the path, but `ls` is empty. The fix is `cd "$PWD"`. Before
running such a merge in the operator's working tree, warn them.
- These are local working artifacts, not deliverables. Keep them out of
version control unless a session is itself the thing worth preserving.