Repository navigation
refactor(discord): let carbon own gateway reconnects - #59019
Conversation
efab5d1 to
ab6da92
Compare
Greptile SummaryThis PR removes OpenClaw's bespoke gateway reconnect controller ( Key changes:
Confidence Score: 5/5Safe to merge — no critical or blocking issues found; remaining findings are minor style and test-coverage suggestions. All three findings are P2: one is a very-narrow-window race (effectively cosmetic given single-threaded JS), one is an unused type field, and one is a missing assertion in a test. The architectural simplification is well-motivated, the behavioral changes are intentional and clearly documented, and the updated test suite covers the key new paths. No files require special attention, but reviewers may want to confirm that the Carbon library version in use handles
|
7716b0c to
51afe63
Compare
51afe63 to
1061d01
Compare
Resolves conflicts from the carbon-native reconnect refactor (openclaw#59019): - Remove provider.lifecycle.reconnect.ts (deleted in refactor) - Accept rewritten provider.lifecycle.test.ts (watchdog tests no longer apply)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
* refactor(discord): let carbon own gateway reconnects * fix: finalize Discord gateway reconnect landing (openclaw#59019)
Fixes #58764
Fixes #58577
Carbon already owns the Discord gateway reconnect/resume state machine, so this removes the OpenClaw-side reconnect controller and hands reconnect behavior back to Carbon.
OpenClaw now only supervises startup readiness and lifecycle shutdown. It no longer reads gateway debug events as control flow, no longer suppresses reconnect exhaustion, and no longer carries the stale-socket/force-stop reconnect patch layer.