From 22cce289e87f160a080619f1f22eb61a6c6a90ef Mon Sep 17 00:00:00 2001 From: thekevinbot <248217931+thekevinbot@users.noreply.github.com> Date: Sun, 22 Nov 2026 22:08:31 -0500 Subject: [PATCH] Keep the box's package store out of the fixing agent's commit --- ci/fix-agent/fix_agent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/fix-agent/fix_agent.py b/ci/fix-agent/fix_agent.py index 70dc5096..3af8cf7c 100644 --- a/ci/fix-agent/fix_agent.py +++ b/ci/fix-agent/fix_agent.py @@ -87,6 +87,10 @@ async def tick(repo: str, owner: str, runs: Path, give_up_after: int) -> None: clone, output = work / "repo", runs / f"{sha[:8]}-{state.get('fails', 0)}" sh("git", "clone", "-q", f"git@github.com:{repo}.git", str(clone)) + # The box's package installs leave a store in the mount. + with (clone / ".git/info/exclude").open("a") as exclude: + exclude.write(".pnpm-store/\n") + log = clone / ".fix-agent-run.log" question = clone / ".fix-agent-question.md" failed = json.loads(sh("gh", "run", "list", "--repo", repo, "--workflow", WORKFLOW,