From 53dd9b3b2d34442948c55a99d1a2cc0a495e003c Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Fri, 20 Nov 2026 14:23:31 -0600 Subject: [PATCH] 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 --- watchme/SKILL.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/watchme/SKILL.md b/watchme/SKILL.md index d5a7fd8..3dfe12c 100644 --- a/watchme/SKILL.md +++ b/watchme/SKILL.md @@ -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.