Repository navigation
fix(setup): preserve configured channel when status refresh fails - #124383
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 11:47 PM ET / August 16, 2026, 03:47 UTC. ClawSweeper reviewWhat this changesThe PR preserves completed channel configuration when the immediate post-setup status refresh fails, records status as unavailable, and gives the operator a sanitized retry command. Merge readinessKeep this PR open for normal maintainer merge: current main still lets the post-configuration status probe abort setup, while the revised head contains a narrowly scoped recovery and no blocking patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherInteractive channel setup obtains a configuration result from a channel plugin, refreshes its status for the setup UI, and returns the resulting configuration for persistence. Status is observational after successful configuration but remains operational for install, enable, removal, and cancellation paths. flowchart LR
A[Operator selects channel] --> B[Channel setup flow]
B --> C[Plugin configuration]
C --> D[Post-configuration status refresh]
D --> E[Status note and selection state]
C --> F[Returned configuration]
F --> G[Onboarding persists configuration]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +55. Total +70 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrow post-configuration recovery once exact-head checks are green, while retaining fail-fast behavior for configuration, cancellation, install, enable, and removal paths. Do we have a high-confidence way to reproduce the issue? Yes, from source: make the adapter's initial status read succeed, return a configuration result, then reject the next status read; current main rejects at the unguarded refresh while the head returns configuration with a retry note. Is this the best way to solve the issue? Yes. The recovery sits at the completed-result owner boundary, mirrors existing initial-status failure treatment, and leaves configuration and other lifecycle refresh failures fail-fast. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4823b236a795. LabelsLabel changes:
Label 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)
|
|
Land-ready update for head d1e06d124ff435d47f65caa202a9ac484a1b1a8c. ClawSweeper's scope move was applied, not waived: fail-soft recovery moved from shared Final proof:
Known proof gaps: none. Invalid/empty |
|
Merged via squash.
|
…enclaw#124383) * fix(setup): preserve channel config on status failure * fix(setup): limit status recovery to configure results
What Problem This Solves
Fixes an issue where users could complete channel configuration successfully but have the wizard report failure and skip persisting the configured state when the plugin's immediate follow-up status refresh failed.
Why This Change Was Made
The channel setup flow now treats only the observation after a completed configuration as fail-soft. It preserves the configured result, records status as unavailable, and shows sanitized diagnostic detail plus the exact
openclaw channels status --channel <id>retry. The actual configure operation and cancellation path remain outside that recovery boundary and still fail normally.This does not change config shape, defaults, provider or channel policy, the public CLI contract, plugin APIs, or security behavior. Invalid or empty
--channelwizard handling is separate and intentionally excluded.User Impact
Operators keep successfully configured channel state even when an optional status read is temporarily unavailable. They receive a visible, redacted explanation and a precise status retry command instead of a false setup failure.
Evidence
controlled status failureat the unguarded post-configure status refresh.check:changed, full lint, focused format check, runtime import-cycle check, andgit diff --checkpassed.