Skip to content

fix(repo-keeper): stop pushing half-finished work to main - #12163

Merged
dezren39 merged 1 commit into
mainfrom
claude/project-thread-fh1gl2
Nov 21, 2026
Merged

dezren39 merged 1 commit into
mainfrom
claude/project-thread-fh1gl2

Conversation

@dezren39

@dezren39 dezren39 commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Before: every hour, the laptop's repo-keeper committed whatever tracked files had changed in a primary clone and pushed that to main, even when new untracked files sat beside those edits. On 2026-11-20 at 22:26 CST it pushed the tracked half of an agent's in-progress #10032 change from ~/git/code. server.ts then imported a prompts.ts that was never committed, and the aggregator on main stopped loading (see #12162, fix pending in #12161).

After: the keeper holds the snapshot and reports it when untracked files are present beside tracked edits. It also never snapshots the deploy clone ~/git/code, which pm-git-sync keeps on clean main and whose changes go through a PR. Edits stay on disk either way. Nothing is reset or deleted, and pulling or pushing already-committed work is unchanged.

How: laptop-repo-keeper.sh gets two more hold branches in its snapshot elif chain. The untracked check sits after the secret-path check, so that check's own report is unchanged. The opt-out list is REPO_KEEPER_NO_SNAPSHOT, a space-separated list defaulting to $HOME/git/code. It is exposed in the home-manager module as services.laptop-repo-keeper.noSnapshotRepos, and setting it to [ ] turns the opt-out off. In the test suite, the untracked-ordinary case now expects the hold. New cases cover ignored files still snapshotting, the deploy-clone opt-out, and turning the opt-out off. bash nixos/home/laptop-repo-keeper.test.sh passes, and shfmt, bash -n and nix-instantiate --parse are clean. The module isn't evaluated in CI. The change goes live on the laptop after the next switch.

Closes #12162


Generated by Claude Code


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Hold the hourly snapshot when untracked files sit beside tracked
edits, and never snapshot the pm-git-sync deploy clone (~/git/code by
default, via REPO_KEEPER_NO_SNAPSHOT / noSnapshotRepos). On
2026-11-20 a tracked-only snapshot pushed server.ts importing a
prompts.ts that stayed untracked, breaking main. Edits stay on disk
either way.

Closes #12162

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c1213665-9a6c-41d3-ade0-d28795208df2
Commits

Reviewing files that changed from the base of the PR and between c3a39ac and 7cbd6fd.

Files selected for processing: 3

  • nixos/home/laptop-repo-keeper.nix
  • nixos/home/laptop-repo-keeper.sh
  • nixos/home/laptop-repo-keeper.test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 marked this pull request as ready for review November 21, 2026 04:55
@dezren39
dezren39 requested a review from a team as a code owner November 21, 2026 04:55
@dezren39
dezren39 merged commit f3a6f54 into main Nov 21, 2026
1 check passed
@dezren39
dezren39 deleted the claude/project-thread-fh1gl2 branch November 21, 2026 04:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T04:56:55.981103Z 7cbd6fd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

laptop-repo-keeper pushes half-finished agent work to main (tracked-only snapshots)

1 participant