When a subagent changes the working directory (e.g., during file moves with cd), the observer agent creates .claude/homunculus/observations.jsonl relative to the current directory instead of the git root. This results in stray .claude/ directories nested inside source code folders.
Steps to reproduce:
Run a session that uses cd into a subdirectory (e.g., during a file reorganization)
The background observer creates .claude/homunculus/observations.jsonl in that subdirectory
Expected:
The observer should resolve the .claude/ path using git rev-parse --show-toplevel (or equivalent) to always write to the project root.
Version: 2.0.0-alpha (commit 59b6520)
When a subagent changes the working directory (e.g., during file moves with cd), the observer agent creates .claude/homunculus/observations.jsonl relative to the current directory instead of the git root. This results in stray .claude/ directories nested inside source code folders.
Steps to reproduce:
Run a session that uses cd into a subdirectory (e.g., during a file reorganization)
The background observer creates .claude/homunculus/observations.jsonl in that subdirectory
Expected:
The observer should resolve the .claude/ path using git rev-parse --show-toplevel (or equivalent) to always write to the project root.
Version: 2.0.0-alpha (commit 59b6520)