anomalyco / anomalyco/opencode
Snapshot capture fails for scopes whose names start with two dots
Open
@neriousy is already working on this.
Since Aug 19, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Snapshot capture silently returns unavailable when the active location is a valid Git subdirectory whose name starts with two dots, such as ..scope. The scope check treats every relative path starting with .. as parent traversal, so snapshot-based change tracking and undo do not work for that location.
Steps to reproduce
- Initialize a Git repository.
- Create and track a file under a child directory named
..scope. - Capture a snapshot with that child directory as the active location.
- The capture returns unavailable even though the location is inside the repository.
Operating System
macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.