Skip to content

0.7.11: imported repos stop staying Pending (annotated tags, import refs) - #8

Merged
samifouad merged 1 commit into
mainfrom
claude/settle-pushed-refs
Oct 15, 2026
Merged

samifouad merged 1 commit into
mainfrom
claude/settle-pushed-refs

Conversation

@samifouad

Copy link
Copy Markdown
Member

Root cause (kit 0.7.10 did not fix it). The index publishes a repo's prepared refs only when no recorded push is outstanding (fragments:pending-refs). A push is acknowledged when the index resolves the ref to the pushed oid. Some pushes can never match:

  • an annotated tag is indexed peeled (r.peeled ?? r.oid) but pushed as its tag object (gildforge/desktop v0.1.0: tag 8670bac8 → commit 0ae1ffac);
  • import refs (import/pr/N) hidden from the index while the import runs, or deleted by the import cleanup outside the push path.

So every import with an annotated tag or PRs stayed "Pending · repository data is being prepared". Live D1: 19 of 65 prepared_repository_refs rows are pending=1, including import-probe3/4/5.

Fix. When the index reads the ref advertisement, pushes recorded before that read are settled if the ref is advertised at exactly the pushed oid, or is gone (settleAdvertisedRefs, pure, in engine/repo-refs.ts). _meta still settles only through the index. A pending conversation read now refreshes (instead of just waking) an index with outstanding pushes, so already-stuck repos heal when viewed.

Evidence: npm run typecheck 0; npm test 23/23, with new src/engine/repo-refs.test.ts (annotated tag settled, deleted import ref settled, a ref at another oid and _meta stay outstanding).

-claude

…ed tags, hidden or deleted import refs) from the ref advertisement, so prepared refs publish; a pending read refreshes an index with outstanding pushes. 0.7.11
@samifouad
samifouad merged commit 9ed1b35 into main Oct 15, 2026
1 check passed
@samifouad
samifouad deleted the claude/settle-pushed-refs branch October 15, 2026 15:41

This branch was successfully deployed

1 active deployment
public-ci — adc95948 Deployed Oct 15, 2026 by samifouad via check #32
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.

1 participant