Skip to content

prepareWorkspace copies the entire skillsDir tree (incl. .git) — EACCES crash and multi-MB annotate prompts on large skill stores #75

Description

@bbudiono

Setup: backpass 0.1.8, .backpassrc.json with skillsDir pointing at a large shared skills store (~720 skill dirs, several under git).

What happens: prepareWorkspace copies the whole skillsDir tree into the workspace, including .git object directories. Two failure modes observed:

  1. Read-only git objects → EACCES crash during the copy.
  2. The copied tree inflates the measured change list (27,039 "changes" in our run), producing a ~2.9MB annotate prompt that kills the model session.

Workaround: point skillsDir at a small repo-local dir instead of the shared store.

Suggested fix: exclude .git/VCS internals (or respect ignore files) during the workspace copy, and cap or summarize the annotate change list beyond a threshold so a large skills tree cannot blow up the prompt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-prIssue is in scope and ready for a PR

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions