Repository navigation
fix: recover tasks after transient Git fetch failures - #147692
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. ClawSweeper will not retry this unchanged revision. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
|
@clawsweeper re-review The credential-shaped synthetic test URL was removed entirely in 1860fae. The exact warning-metadata assertion now uses a plain diagnostic marker; no scanner exception or setting changed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 10:16 PM ET / September 14, 2026, 02:16 UTC. ClawSweeper reviewWhat this changesManaged Git reads and project clones retry one transient failure within their original timeout, with cancellation checks and sanitized retry logging. Merge readiness✅ Ready for maintainer review Keep open: the recovery remains useful on current main, and no blocking patch defect was found. The requested synthetic-credential cleanup is present without scanner-policy changes. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw prepares repository checkouts before running tasks and uses Git to inspect publication state. The shared Git runner turns those requests into subprocess results consumed by workspace and publication owners. flowchart TD
A[Task workspace or publication request] --> B[Existing ownership and ordering checks]
B --> C[Git command runner]
C --> D{Transient read failure?}
D -->|No| G[Return command result]
D -->|Yes| E[Wait within original timeout]
E --> F[Recheck cancellation and caller authority]
F --> C
C --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +156, Tests +276, Docs +20. Total +452 across 13 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep transient recovery in the shared Git execution owner, with clone cleanup remaining clone-owned and publication writes retaining outcome reconciliation. Do we have a high-confidence way to reproduce the issue? Yes, from source: a failed missing-object fetch propagates through workspace preparation on current main. The supplied partial-clone regression exercises that path; this review did not execute it. Is this the best way to solve the issue? Yes. Retrying the individual Git read preserves task state and existing ordering without replaying an entire task or an uncertain publication write. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d9c45426e163. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* fix(git): retry transient network reads and log attempts * test(git): use a plain diagnostic marker for retry logging
What Problem This Solves
Fixes tasks failing before their first reply when workspace preparation encounters a transient Git fetch error, including “did not send all necessary objects.”
User Impact
Managed fetches, remote-ref lookups, and project clones recover from one transient failure automatically. A
git/networkwarning records the operation, attempt count, retry delay, and exit code without exposing command arguments, repository URLs, or raw Git output. No configuration or migration is required.Why This Change Was Made
The shared Git runner retries the failed network read once after one second, within its original timeout. It preserves stdin bytes, ref-mutation ordering, cancellation, and current workspace/publication authority. The clone owner cleans its failed partial checkout before retrying. Authentication, local storage, interrupted-process, and exhausted-timeout failures remain terminal; push and pull are not blindly replayed, preserving publication outcome reconciliation.
Evidence