anomalyco / anomalyco/opencode

Snapshot capture fails for scopes whose names start with two dots

Open
#43,390 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Initialize a Git repository.
  2. Create and track a file under a child directory named ..scope.
  3. Capture a snapshot with that child directory as the active location.
  4. The capture returns unavailable even though the location is inside the repository.
Operating System

macOS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.