Repository navigation
fix: large PR imports fail in empty workspaces - #195404
roboclaw-bot wants to merge 3 commits into
Conversation
Recognize the host-owned initial source import without counting the repository as authored workspace edits. Resume retained initial imports rejected by the previous path limit while keeping ordinary result and payload safety checks. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8c6ed3ff-8bdd-4fdd-a568-e5ee2bf96d1b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Co-authored-by: vyctorbrzezowski <[email protected]>
|
Codex review: blocked before merge. What this changesThis PR exempts the first host-owned repository import from the workspace changed-path limit and recovers previously rejected initial imports. Example: Prepare a PR containing 50,001 source files in an empty managed workspace.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR addresses a current large-repository import failure, and the reviewed diff contains no discrete introduced bug. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub PR preparation stages verified repository contents into the managed workspace, then reconciles canonical and sandbox files through durable checkpoint owners. flowchart TD
A[Prepare PR tool] --> B[GitHub source verification]
B --> C[Host source staging]
C --> D[Initial import classification]
D --> E[Workspace reconciliation]
E --> F[Canonical and sandbox files]
E --> G[Durable checkpoint owner]
Technical reviewBest possible solution: Keep initial-source classification shared across the existing staging, loading, reconciliation, and checkpoint owners. Do we have a high-confidence way to reproduce the issue? Current main counts the initial repository against the 50,000-path limit, and the supplied real-Git tool regression exercises that boundary; this read-only review ran no target code. Is this the best way to solve the issue? The patch fixes the admission distinction at all existing consumers, preserves ordinary-result safeguards, and adds no competing state owner or unnecessary test scaffolding. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 465c110e4975. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +77, Tests +82, Docs +5, Other +4. Total +168 across 13 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 8, 2026, 4:16 PM ET / 21:16 UTC. |
What Problem This Solves
Fixes chats failing to start after importing a large pull request into an empty managed workspace.
User Impact
Users can work on the imported repository and resume initial imports rejected by an older Gateway without deleting saved source files. Ordinary edits and later refreshes retain the 50,000-path limit; file-size, total-byte and integrity checks remain enforced.
Why This Change Was Made
The first repository import establishes the workspace rather than representing thousands of authored edits. Recognize that host-owned operation using its reserved source reference and deterministic empty baseline throughout staging, loading and application. Revalidate the retained source and baseline before recovering an older rejection. Keep accepted-checkpoint cleanup with the existing checkpoint owner.
Evidence
84db8e901ccd7b418e33684c5755427c27cf8496passed, including the required CI gates; GitHub reports CLEAN and MERGEABLE. CI run.The 50,001-file regression takes about 49 seconds because it exercises real Git import, both workspace copies and repeated preparation; a small synthetic inventory would miss this integration failure. Net test growth: 82 lines, recorded in the dedicated allocation. The production change shares the existing empty-source identity and keeps checkpoint recovery and cleanup with one owner; it adds no new persisted state.
Thanks to @vyctorbrzezowski for reporting and directing this repair.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by