Repository navigation
fix: restore channel recovery after crash-loop suppression - #134165
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 10:30 AM ET / 14:30 UTC. ClawSweeper reviewWhat this changesThe PR retains configured channel data in the active secrets runtime during crash-loop safe mode, while preserving channel-start suppression and fencing recovery work during Gateway shutdown. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this maintainer-owned PR open for normal exact-head validation. The current main and latest release still remove channel assignments during crash-loop startup; the proposed change repairs that owner-boundary mismatch, and no introduced correctness defect was found in the reviewed source. Priority: P1 Review scores
Verification
How this fits togetherGateway startup prepares the active runtime configuration and passes crash-loop state to the channel manager. The flowchart LR
A[Gateway boot] --> B[Crash-loop breaker]
B --> C[Active secrets configuration]
C --> D[Channel manager]
D --> E[Manual channel recovery]
F[Gateway close prelude] --> D
Before merge
Agent review detailsSecurityNone. PR surfaceSource -69, Tests +315. Total +246 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain channel configuration in the active runtime while keeping crash-loop suppression solely in channel lifecycle policy, then merge only after the exact-head Gateway and startup-secrets checks pass. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path: suppressed startup removes Is this the best way to solve the issue? Yes. Keeping authored channel configuration in the configuration owner while leaving automatic-start suppression in the channel lifecycle owner removes the projection mismatch; a manual-start-only workaround would retain the invalid active runtime state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0e0b89663f94. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: Crash-loop recovery now retains owner-isolated channel configuration while preventing stale Gateway lifetimes from restarting channels. |
Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]>
* fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(pr): prevent parallel main refreshes from colliding * test(pr): observe private main refresh checkpoints * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * test: include historical prerequisite in routing expectations * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * fix(ci): prepare Testbox against the checked-out merge base * docs(plugins): use public provider auth import in tutorial --------- Co-authored-by: Shakker <[email protected]>
) * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(release): bind ClawHub staging to exact parent transactions Seal packed inventories before parent authorization, preserve distinct parent and child refs, and verify public bytes after terminal success. Record immutable npm producer provenance and avoid claiming historical OIDC authentication from artifact readback. * fix(release): pin ClawHub parent receipt contract Use the reviewed merged reusable workflow with parent-only 64 KiB receipt parsing and bounded file preflight. Keep v2 identity and recovery limits unchanged. * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * test(release): follow canonical publication helpers * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * docs(release): clarify optional ClawHub staging wait * docs(plugins): use public provider auth import in tutorial * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * docs(release): explain parent-bound ClawHub repair authority --------- Co-authored-by: Shakker <[email protected]>
* fix(doctor): report interrupted auth archive recovery * test(ui): isolate workspace icon recovery fetches * docs(changelog): note Doctor archive recovery outcomes * test(ui): split workspace icon header coverage * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test: include historical prerequisite in routing expectations * docs(plugins): use public provider auth import in tutorial * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> --------- Co-authored-by: Shakker <[email protected]>
Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]>
* fix(skills): retain Windows short-path watcher repair on main * fix(release): verify freshly published npm plugin artifacts * fix(plugin-sdk): forward release caller contracts to main Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures. Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority. * fix(changelog): include merged side ancestry in release inventory * test: align catalog and node lifecycle readiness * docs(changelog): remove already shipped unreleased notes Remove 89 stale Unreleased bullets whose 109 primary PR references already shipped in 2026.8.1. Preserve every other line and all numbered release sections byte-for-byte, including contributor credit and the canonical 2026.8.1 record. The removed mixed references are existing issue context or unmerged candidate PR citations already corrected in the published notes. New post-release followups remain untouched. * fix(runtime): preserve restart claims and deadline outcomes Forward the missing release runtime fixes while retaining main native accounting ownership. Validate restart cleanup in the synchronous commit after queued patch preparation, preserve parent deadline precedence, and mark empty-session token totals stale when a turn supplies no usage. * test(agents): prepare real admission for runner regressions Seed canonical durable sessions, retain one admission across fallback candidates, and close the actual prepared context after each run. Preserve result assertions and drain preparation failures before restoring shared filesystem spies. * docs(changelog): note restart cleanup ownership repair * test: capture lifecycle operator before polling * docs(changelog): retire published notes from Unreleased * fix: authenticate CI checkout and lazy blob fetches * test(ui): isolate workspace icon retries from asset fetches * test(agents): prepare the model identity in prompt fixture * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * docs: note deferred Anthropic runtime loading * test: include historical prerequisite in routing expectations * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * docs(plugins): use public provider auth import in tutorial * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> --------- Co-authored-by: Shakker <[email protected]>
* fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in #134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(skills): refresh roots created after startup * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * docs: group the skills refresh release note * test(skills): await positive-control directory watch readiness * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * test: include historical prerequisite in routing expectations * fix(ci): prepare Testbox against the checked-out merge base * docs(plugins): use public provider auth import in tutorial * test(ui): route agent file proof through real Gateway CI --------- Co-authored-by: Shakker <[email protected]>
…134165) Restores configured channel recovery after crash-loop suppression while preserving unavailable-secret isolation and Gateway lifetime fencing. Refs openclaw#134134.
Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]>
) * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(pr): prevent parallel main refreshes from colliding * test(pr): observe private main refresh checkpoints * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * test: include historical prerequisite in routing expectations * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * fix(ci): prepare Testbox against the checked-out merge base * docs(plugins): use public provider auth import in tutorial --------- Co-authored-by: Shakker <[email protected]>
…claw#134053) * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(release): bind ClawHub staging to exact parent transactions Seal packed inventories before parent authorization, preserve distinct parent and child refs, and verify public bytes after terminal success. Record immutable npm producer provenance and avoid claiming historical OIDC authentication from artifact readback. * fix(release): pin ClawHub parent receipt contract Use the reviewed merged reusable workflow with parent-only 64 KiB receipt parsing and bounded file preflight. Keep v2 identity and recovery limits unchanged. * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * test(release): follow canonical publication helpers * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * docs(release): clarify optional ClawHub staging wait * docs(plugins): use public provider auth import in tutorial * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * docs(release): explain parent-bound ClawHub repair authority --------- Co-authored-by: Shakker <[email protected]>
* fix(doctor): report interrupted auth archive recovery * test(ui): isolate workspace icon recovery fetches * docs(changelog): note Doctor archive recovery outcomes * test(ui): split workspace icon header coverage * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test: include historical prerequisite in routing expectations * docs(plugins): use public provider auth import in tutorial * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> --------- Co-authored-by: Shakker <[email protected]>
* fix(skills): retain Windows short-path watcher repair on main * fix(release): verify freshly published npm plugin artifacts * fix(plugin-sdk): forward release caller contracts to main Preserve the stable envelope, provider catalog, and thinking callback names while retaining current main runtime owners. Carry forward the verified realtime catalog cleanup and its consumer fixtures. Clarify the required-terminal result contract shipped in 2026.8.1 and the supported legacy producer migration path. Correct the unavailable FileAuthStorageBackend import promise without changing storage or authority. * fix(changelog): include merged side ancestry in release inventory * test: align catalog and node lifecycle readiness * docs(changelog): remove already shipped unreleased notes Remove 89 stale Unreleased bullets whose 109 primary PR references already shipped in 2026.8.1. Preserve every other line and all numbered release sections byte-for-byte, including contributor credit and the canonical 2026.8.1 record. The removed mixed references are existing issue context or unmerged candidate PR citations already corrected in the published notes. New post-release followups remain untouched. * fix(runtime): preserve restart claims and deadline outcomes Forward the missing release runtime fixes while retaining main native accounting ownership. Validate restart cleanup in the synchronous commit after queued patch preparation, preserve parent deadline precedence, and mark empty-session token totals stale when a turn supplies no usage. * test(agents): prepare real admission for runner regressions Seed canonical durable sessions, retain one admission across fallback candidates, and close the actual prepared context after each run. Preserve result assertions and drain preparation failures before restoring shared filesystem spies. * docs(changelog): note restart cleanup ownership repair * test: capture lifecycle operator before polling * docs(changelog): retire published notes from Unreleased * fix: authenticate CI checkout and lazy blob fetches * test(ui): isolate workspace icon retries from asset fetches * test(agents): prepare the model identity in prompt fixture * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * docs: note deferred Anthropic runtime loading * test: include historical prerequisite in routing expectations * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * docs(plugins): use public provider auth import in tutorial * fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> --------- Co-authored-by: Shakker <[email protected]>
* fix: restore gateway recovery fixture lint and types Preserve the recovery coverage added in openclaw#134165 while using the actual WebSocket dependency and authored SecretRef fixture boundary. Co-authored-by: Shakker <[email protected]> * fix(skills): refresh roots created after startup * fix: authenticate CI checkout and lazy blob fetches * fix: prepare immutable reader history during CI checkout * fix(ci): declare historical reader selector entry point * docs: group the skills refresh release note * test(skills): await positive-control directory watch readiness * perf(anthropic): defer auth and catalog runtime imports Keep provider descriptors synchronous without importing credential stores, external auth discovery, or live catalog transport during registration. Load those implementations only when the existing asynchronous setup, doctor, usage, and catalog hooks need them. Expose the existing lightweight API-key descriptor factory through provider-entry while preserving the shipped auth SDK helpers and their synchronous contracts. The unchanged fresh-process registry proof retains its original timeout and verifies scoped failover without global activation. * test(ui): await agent menu lifecycle before keyboard navigation Wait for opening focus initialization and visible popup retirement before exercising selection and typing ownership. Preserve the existing focus, selected-agent, and composer assertions without changing product behavior or timeouts. * test: include historical prerequisite in routing expectations * fix(ci): prepare Testbox against the checked-out merge base * docs(plugins): use public provider auth import in tutorial * test(ui): route agent file proof through real Gateway CI --------- Co-authored-by: Shakker <[email protected]>
Closes #134134
Additional instructions
Keep Allow edits from maintainers enabled.
What Problem This Solves
Fixes an issue where operators following the documented crash-loop recovery procedure could not manually start configured channel accounts because safe-mode startup removed their channel configuration from the active runtime.
Why This Change Was Made
Crash-loop suppression now remains a channel lifecycle decision while the active secrets runtime retains owner-isolated channel configuration. Recovery callbacks are bound to the Gateway boot that created them, and deferred or retrying channel starts stop when that Gateway lifetime begins closing.
The change does not add configuration, protocol, persistence, migration, or plugin-specific behavior.
User Impact
Operators can use
channels.startto recover configured accounts while crash-loop suppression remains active, without first runningsecrets reload. Unavailable channel credentials remain isolated and fail closed, healthy sibling accounts remain usable, and automatic channel startup remains suppressed until recovery is proven.Evidence
The live reproduction in #134134 showed the Gateway remain healthy while a configured SMS account was reported as
unconfigured;secrets reloadmade the same manual start succeed. The same failure occurred with plaintext and SecretRef credentials.The first focused Blacksmith Testbox run passed 115 of 116 assertions across the Gateway composition, startup secrets, channel lifecycle, and CLI boot-recovery suites. It verified plaintext manual recovery, unavailable-owner isolation, suppression behavior, close-time handoff fencing, boot-bound callback behavior, and existing channel ownership/retry regressions. The remaining newly added resolved-SecretRef assertion is being completed on this PR before final review and landing.
Exact-head changed gates, independent Workloop review, repository autoreview, and required CI will complete on this PR before merge.