Skip to content

0.1.1: conflicts hold landing, closed and merged pull requests, merged stacks, safe undo, parallel new, gft drop - #11

Merged
lydakis merged 6 commits into
mainfrom
claude/project-thread-wdmsae
Oct 26, 2026
Merged

lydakis merged 6 commits into
mainfrom
claude/project-thread-wdmsae

Conversation

@lydakis

@lydakis lydakis commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Fixes the must-fix list from two hands-on reviews of 0.1.0 (an hour across click, sandfs, vscode, go and a sandbox repo; and 118 invocations across pytest and Kubernetes), and adds a way to remove a whole project.

What changes

  • Conflict markers don't get published. sync records the files it left with markers; land refuses while any still have them (--allow-conflicts publishes them anyway). sync exits with 2 and names them for as long as they're left, including on a later sync with nothing new, and status lists them.
  • Closed and merged pull requests take no more commits. land reads the pull request's state first. Merged: after sync, the copy lands as a new pull request (before syncing, land says to sync). Closed without merging: land stops; reopen it, or --new-pr opens another. A first landing onto a graft/NAME that already exists (an earlier copy's of the same name) goes to graft/NAME-2, with none of its history, instead of refusing or inheriting it.
  • Merged stacks. After the pull request a copy was built on (new --on) is squash-merged, sync merges upstream's version from what that pull request landed (read from GitHub), not from the old base, so the merged work never conflicts. The copy then builds on the default branch: an open pull request is retargeted on the next landing, and one GitHub closed with the deleted branch is replaced by a new one. The copy's own merged pull request is handled the same way.
  • undo loses nothing. It saves the copy first (unless its newest snapshot already has it) and keeps newer snapshots, so undo again returns. Syncs that change nothing, or fail, keep no "before sync" snapshot.
  • Parallel gft new. Calls run at once wait their turn on the default branch (a lock of Graft's) instead of failing with "_main is in use by sandfs update", and skip the update when it was fetched in the last 10 seconds.
  • gft drop [PROJECT] removes every copy (refusing ones with unlanded work unless --force), the home copy's mount and Graft's record, so get can start over. A plain folder or checkout is left as it is. rm now removes the emptied folder, and a busy unmount on macOS gets Graft's own "leave the folder" message.
  • Version 0.1.1.

Tests

New end-to-end tests on a real mount and the stand-in GitHub (which now answers pull request state, compare and contents): conflicts held until settled; closed and merged pull requests; a stack whose parent is squash-merged and branch deleted, plus one whose pull request stays open and is retargeted; undo and redo; eight gft new at once after upstream moved; drop refusing then forcing, and get again. The "taken branch" case now expects graft/taken-2.

Next, in a follow-up: remount and gft up, rename detection, fast ls, the home-copy model, folder 3-way merge, sync after local commits, diff/--json, fewer API calls per landing, and the README pitch.


Generated by Claude Code

- land refuses files that still have conflict markers from sync
  (--allow-conflicts publishes them); sync exits 2 and keeps naming them,
  and status lists them
- land checks the pull request: a merged one takes no more commits (sync,
  then land opens a new one); a closed one stops land (reopen it, or
  --new-pr); a first landing onto an existing graft/NAME takes graft/NAME-2
- sync after the copy's pull request, or the one it was built on, is merged
  merges upstream from what that pull request landed, so the merged work
  never conflicts; a stacked copy then builds on main and its open pull
  request is retargeted on the next landing
- undo saves the copy first and keeps newer snapshots, so undo again
  returns; syncs that change nothing keep no snapshot
- gft new run at once in many places waits its turn on the default branch
  and reuses a fetch from the last ten seconds
- gft drop removes a whole project; rm removes the emptied folder

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T06:26:33.983149Z 4030c70 New commits
🔒 Security Review ✅ Completed 2026-10-26T06:19:47.505251Z 4030c70 New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef951a14ac

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved
Comment thread src/land.rs Resolved
Comment thread src/land.rs Resolved
…ers after undo, match merged stacks by commit

- a sync that fails keeps its 'before sync' snapshot: it may have changed
  files before failing
- gft drop refuses when the home copy of a repository has changed files,
  unless --force
- land looks for Graft's conflict markers in every changed file, and undo
  records the ones a snapshot brings back
- a merged pull request counts for a stacked copy only if it carried that
  copy's landing, not any earlier use of the branch name

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01CboUL9BU7nvDEZKfQBSkkq

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 665274ae07

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/land.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ff1fb39eb

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
Comment thread src/lib.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/land.rs Resolved
Comment thread src/lib.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a67fa0b635

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4030c70822

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/lib.rs Resolved
@lydakis
lydakis merged commit 0da5293 into main Oct 26, 2026
8 checks passed
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.

2 participants