Repository navigation
fix(gateway): scope crash loop channel recovery hints - #129697
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 8:55 PM ET / August 26, 2026, 00:55 UTC. ClawSweeper reviewWhat this changesThe PR makes Gateway crash-loop recovery hints emit a manual channel-start command for the active named profile or container. Merge readinessThe recovery hint is still needed: current main hard-codes an unscoped command, while this patch delegates to the established CLI formatter and covers profile/container precedence. It is maintainer-authored and labeled for maintainer handling, so it remains open for the ordinary exact-head merge decision. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherGateway boot detects repeated failed starts and suppresses automatic channel startup so an operator can recover safely. Its diagnostic hint is copied into the OpenClaw CLI, which routes the channel-start request to the selected Gateway. flowchart LR
A[Gateway boot] --> B[Crash-loop breaker]
B --> C[Recovery hint]
C --> D[CLI context formatter]
D --> E[Scoped channel-start command]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +22. Total +22 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the formatter-based repair once the exact PR head has the required green checks, so every crash-loop recovery hint targets the active Gateway consistently. Do we have a high-confidence way to reproduce the issue? Yes—current main's source hard-codes an unscoped command while the existing formatter maps active profile or container context to CLI root flags; the focused test table expresses the failing cases. Is this the best way to solve the issue? Yes—the patch removes local command-context assembly and reuses the canonical formatter that already owns validation and container-over-profile precedence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0036788055b5. 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.
|
What Problem This Solves
Fixes Gateway crash-loop channel recovery instructions targeting the wrong default Gateway when the operator uses an active named profile or container. Following the displayed command previously left the intended channel disconnected.
Why This Change Was Made
The crash-loop diagnostic owner hard-coded an unscoped
openclawcommand even though the existing canonical CLI formatter already carries profile/container context. The repair reuses that formatter and removes a duplicated target-versus-placeholder serialization branch, keeping production code net neutral.User Impact
Operators can copy the displayed manual channel-start command directly; it now addresses the actual active Gateway, preserves channel/account parameters, and respects the established container-over-profile precedence.
Evidence