Repository navigation
refactor(release): share agent turn retry lifecycle - #147076
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, 2:57 PM ET / 18:57 UTC (Revision 2). ClawSweeper reviewWhat this changesShares the retry lifecycle for packaged and installed release-check agent turns and adds adapter-level coverage while preserving existing behavior. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, behavior-preserving consolidation that current main does not contain. No actionable correctness or security findings remain, consistent with the prior review of the same head. Priority: P3 Review scores
Verification
How this fits togetherCross-platform release checks run agent commands against packaged and installed OpenClaw candidates. The retry lifecycle evaluates command output and fresh log entries, then returns success, retries a transient failure, or reports failure or an explicitly enabled skip. flowchart TD
A[Packaged release check] --> C[Shared retry lifecycle]
B[Installed release check] --> C
C --> D[Adapter runs agent command]
D --> E[Check output and fresh logs]
E --> F[Success or optional skip]
E --> G[Retryable failure]
G --> C
G --> H[Failure after attempt limit]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +170, Other -23. Total +147 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one retry owner in the release agent module, with packaged and installed adapters retaining their command-launch responsibilities. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing behavior rather than reporting a runtime defect; the duplicated loops are directly visible on current main. Is this the best way to solve the issue? Yes: extracting the identical lifecycle into its existing owner removes duplication while preserving both command adapters and their observable contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c560e8141243. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…1-prep * commit '912ae8d96e5964dfdcdf419b79613fb941cdf0a8': (350 commits) fix: keep workspace preparation responsive during cleanup (openclaw#147358) docs: alphabetize donors and sponsors and add Red Hat logo (openclaw#147302) fix(plugins): retain update authority through doctor effects (openclaw#144316) refactor(qa): share Multipass mount retry lifecycle (openclaw#147084) fix(memory): emit one JSON result for command failures (openclaw#147366) improve(plugins): speed up cold metadata loading (openclaw#147411) fix(sessions): avoid duplicate work after waited child replies (openclaw#147394) fix(agents): retain outstanding child results in parent context (openclaw#112623) test: preserve native workflow loader selection (openclaw#147403) fix: reduce repeated work while polling session pull requests (openclaw#147373) test(qa): preserve task cancellation across process replacement (openclaw#147382) fix: prevent sidebar refresh storms during session activity (openclaw#147400) refactor: simplify skills CLI formatting (openclaw#147368) fix: prevent Git checkout certificate failures behind egress proxy (openclaw#147410) fix(qa): stop live threads after their process leader exits (openclaw#147386) refactor(release): share agent turn retry lifecycle (openclaw#147076) fix(ui): keep uploaded images aligned with their prompts (openclaw#147389) fix(fs): guard skill reads and bound worker bundle staging (openclaw#147336) fix(ci): restore Linux service ownership fixtures (openclaw#147398) fix(plugins): preserve manifest permissions when building plugins (openclaw#147393) ...
What Problem This Solves
Runtime and installed release checks duplicate the agent-turn retry lifecycle.
User Impact
No behavior change. Both adapters retain two attempts, fresh sessions and log windows, existing deadlines and retry messages, and explicit optional skipping only after exhaustion.
Why This Change Was Made
Move the lifecycle into the existing agent owner and inject each adapter's command runner. Session generation remains outside the catch boundary; per-attempt log offsets prevent stale success markers from qualifying a retry. Production changes: −23 lines; tests: +170 lines.
Evidence
f30e8da246692af2467f1d683ccf849fd7692651, normal CI 34762087915, attempt 1 and aggregate gate 103738285524 passed, including selected types, lint and formatting.