feat(agent): make multi-repository tasks resumable - #4003
Merged
Conversation
Only persist signed-commit branch metadata when the commit targets the task repository. This prevents a branch created in a sibling clone from breaking subsequent task resumption. Generated-By: PostHog Code Task-Id: 3721ab47-bf20-4d0a-b474-8a622badccd2
|
😎 Merged successfully - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Generated-By: PostHog Code Task-Id: 3721ab47-bf20-4d0a-b474-8a622badccd2
Remove the multi-repository Git checkpoint implementation. Cloud-to-cloud resume restores the sandbox directory snapshot; Git handoff state remains unchanged. Generated-By: PostHog Code Task-Id: 3721ab47-bf20-4d0a-b474-8a622badccd2
Contributor
Prompt To Fix All With AI### Issue 1
packages/agent/src/adapters/signed-commit-shared.ts:187
**Primary branch reporting uses path identity**
When an explicit tool `cwd` such as `.` resolves to the primary checkout but the session cwd has a different equivalent representation, the strict string comparison suppresses `reportTaskRunBranch`, causing a later resume to use the wrong or missing branch.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "revert(agent): keep cloud resume snapsho..." | Re-trigger Greptile |
Generated-By: PostHog Code Task-Id: 3721ab47-bf20-4d0a-b474-8a622badccd2
k11kirky
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Cloud tasks may work across several repositories and branches, while the durable resume checkpoint previously represented only the primary repository.
Why: Multi-repository tasks should resume safely even when a workspace snapshot is unavailable or a feature branch has been deleted remotely.
Changes
Created with PostHog Code