Repository navigation
fix(update): report dirty checkouts as failed updates - #144836
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 9:58 PM ET / September 14, 2026, 01:58 UTC (Revision 12). ClawSweeper reviewWhat this changesThe PR reports edited Git checkouts as failed updates and provides preservation and retry guidance in progress output, CLI results, stored reports, and documentation. Merge readiness✅ Ready for maintainer review The reporting defect remains on current main and in v2026.9.4. This focused, maintainer-authored PR remains useful; no blocking correctness findings were identified. Priority: P2 Review scores
Verification
How this fits togetherThe Git updater checks the installed checkout before preparing and activating an update. Its classified results feed CLI progress, terminal output, and update history. flowchart TD
A[Update request] --> B[Inspect Git checkout]
B --> C{Local changes?}
C -->|Yes| D[Record failed clean check]
D --> E[Show preservation and retry guidance]
C -->|No| F[Prepare and validate candidate]
F --> G[Existing activation workflow]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +19, Tests +36, Docs 0. Total +55 across 8 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep clean-check classification with the Git updater and use the existing reporting owner for consistent, preservation-focused recovery guidance. Do we have a high-confidence way to reproduce the issue? Yes, from source: successful Git status output containing local changes publishes a successful clean-check step and then returns skipped/dirty on current main. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Classifying the clean check before publishing completion follows the existing step-owner pattern and fixes the misleading result without adding another update path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3cfc0ade66c6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
2be0971 to
33ea0a9
Compare
|
Addressed the review findings in 33ea0a9 and resolved the main conflicts.
Proof: all 501 CLI tests passed; after cleanup, 290 owner tests and 45 relevant CLI cases passed. The initial launcher/relocation/transaction run passed 88 tests. Runtime build, all changed-file checks, and fresh final P1 review passed. Windows admission uses actual generated shim fixtures; native cmd.exe/live Gateway execution is not claimed. No database schema or persistent-store semantics changes. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The completed re-review confirms both code findings are fixed. CI is now green for The published-updater cell requested in review also passed after that review completed: Docker job installed Native Windows remains a disclosed proof gap. The PR's Windows matrix was skipped. A focused native attempt could not allocate: the repository wrapper expects a |
0ce58eb to
a97ffc2
Compare
Small follow-ups: #147544 protects clone publication; #147562 verifies Git rollback; #147621 preserves launcher identity; #147629 installs dirty dev checkouts separately; #147677 adds shell-installer support; #147653 adds Windows npm support.
What Problem This Solves
An edited development checkout produces a successful clean-check indicator and a skipped update, obscuring that the requested update failed.
User Impact
The clean check reports failure and explains that installation has not started and local changes remain intact. Existing skipped records also get useful guidance.
Why This Change Was Made
Classify the Git status result before publishing progress. Automatic relocation and launcher recovery are separate changes linked above.
Evidence
Runner and terminal-report regressions fail on main. All 199 focused tests pass, including the CLI failure path and unchanged service. Independent P0–P2 review is clean. Changed checks and CI pass.