Repository navigation
fix: update confirmation shows stale commit counts after refresh - #142837
Conversation
Prefer refreshed checkout lag in shared update labels while preserving cached fallback and distance wording. Refs: oc-a63
|
🦞👀 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 9, 2026, 12:55 AM ET / 04:55 UTC. ClawSweeper reviewWhat this changesThe Control UI confirmation and shared update labels prefer refreshed checkout commit counts while preserving cached fallback values and distance wording. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: current main and v2026.9.3 still prefer cached commit counts. No actionable correctness or security findings were identified. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway supplies update targets and refreshed checkout status to the Control UI. Shared formatting turns that data into labels displayed in Settings, the sidebar, and the update confirmation. flowchart LR
A[Gateway update target] --> C[Shared update labels]
B[Refreshed checkout status] --> C
C --> D[Settings]
C --> E[Sidebar]
C --> F[Update confirmation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +41. Total +51 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep checkout-distance presentation consistent across update surfaces while retaining the announced campaign target as the execution authority. Do we have a high-confidence way to reproduce the issue? Yes, from source: a cached target count of 1 alongside refreshed install.git status behind with count 50 produces inconsistent Settings and confirmation labels on current main. Runtime reproduction was not executed. Is this the best way to solve the issue? Yes. Changing the existing shared formatter and matching confirmation wording is a narrow repair that preserves fallback behavior without modifying update policy or execution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9636ae49e001. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…1-prep * commit 'b04a3f83adad8bd6a2ca8408e7940fc6bcbde212': (636 commits) docs(cli): split the doctor command reference by reader job (openclaw#142855) fix(ui): explain paused weekly skill reviews (openclaw#142840) docs(automations): describe supported schedule options (openclaw#135964) fix(image): close registration resources after generation (openclaw#142843) fix(slack): keep ack reactions independent of status reactions (openclaw#142595) fix(ui): avoid flashes when switching cold sessions (openclaw#134868) refactor(tests): share independent no-queued-reply expectations (openclaw#142845) perf: reduce generated media reference formatting overhead (openclaw#142836) fix: sessions_yield keeps long transcript history available (openclaw#137381) fix(music): close registration resources after generation (openclaw#142834) fix: update confirmation shows stale commit counts after refresh (openclaw#142837) fix(ci): retain Android emulator post-timeout evidence (openclaw#142835) fix(talk): retain final delivery across delegation waves (openclaw#142830) docs(gateway): run Linux system services as the state owner (openclaw#136266) fix(models): align static Anthropic aliases with manifest (openclaw#137376) test(gateway): simplify session lifecycle gates and report early rollback failures (openclaw#142833) refactor(ai): keep model policy parsing independent of transport host (openclaw#142804) refactor: simplify interactive SDK forwarding (openclaw#142824) fix(cli): finish pending cleanup before automatic macOS exit (openclaw#142814) docs(memory-lancedb): clarify enforced compatibility ranges (openclaw#142827) ...
…nclaw#142837) Prefer refreshed checkout lag in shared update labels while preserving cached fallback and distance wording. Refs: oc-a63
What Problem This Solves
Fixes an issue where users opening the Control UI update confirmation after refreshing update status see a different number of commits behind than Settings. For example, Settings shows 50 commits behind while the confirmation still shows 1.
Why This Change Was Made
Shared update labels prefer the refreshed checkout comparison when it supplies a commit count, then fall back to the announced target or cached availability. The confirmation also treats a checkout-only count as a distance, preserving its wording before target metadata arrives. Update targets, campaign state, and update execution are unchanged.
User Impact
The update confirmation and sidebar use the refreshed commit count shown in Settings. If no refreshed count exists, they retain the existing fallback.
Evidence
Rendered confirmation regressions fail before the fix for increasing and decreasing counts and diverged checkouts. A separate regression catches checkout-only metadata producing redundant wording.
After the fix, 62 tests pass across the confirmation, Settings, and sidebar suites:
Proof uses isolated synthetic UI data. No live Gateway was updated or restarted.
Changed-scope checks pass, including core-test and UI typechecking, lint, formatting, i18n verification, and repository guards:
Independent autoreview reports no actionable P0–P2 findings.
git diff --checkpasses.