Repository navigation
fix(zalo): stop provider startup after gateway shutdown - #115763
Merged
Merged
Conversation
Reconstruct the verified Zalo lifecycle fix from #109990 on current main and preserve its exact production and regression-test blobs. Source: #109990 Co-authored-by: LZY3538 <[email protected]>
Contributor
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 29, 2026
* origin/main: fix(zalo): stop provider startup after gateway shutdown (#115763) fix(agents): bound completed background process retention (#115760) fix(plugins): bound hook execution and retire stale registrations (#115695) fix(ui): collapse custodian startup error gap (#115720) fix(gateway): reload edited hook transforms (#107875) refactor: centralize channel streaming config hints (#115739) fix(msteams): finalize sent replies after dispatch (#82354) fix(cron): deliver explicitly configured failure alerts (#115762) fix(hooks): resolve inbound claim conversation once (#115491) refactor: retire legacy provider and secret paths (#115655) fix(memory): reject malformed QMD result entries (#115705) fix(diagnostics): keep internal thinking out of telemetry [AI] (#115261) fix(ui): localize remaining control surfaces (#115730) fix(gateway): prevent model owner mismatch after plugin activation (#115747) fix(agents): run reply hooks for restart recovery (#115711) fix(cron): initialize detached hook run sessions (#115765) fix(ios): keep stop available for staged voice notes (#115744) fix(doctor): preserve config includes during cleanup (#115723) fix(memory): keep dreaming consolidation within project scope (#115721) fix(discord): keep tool rows under verbose progress (#111947) # Conflicts: # ui/src/pages/custodian/custodian-surface.ts # ui/src/styles/custodian.css
vincentkoc
added a commit
that referenced
this pull request
Jul 29, 2026
…ft-ingestion * origin/main: fix(feishu): reject unsupported initial document content (#115697) feat(media): probe duration and dimensions for playback metadata (#115728) fix(sandbox): scope runtimes by workspace (#115766) fix(ui): guide users through missing or broken AI setup (#115716) fix(sessions): return direct-agent replies to their active session (#115756) fix(zalo): stop provider startup after gateway shutdown (#115763) fix(agents): bound completed background process retention (#115760) fix(plugins): bound hook execution and retire stale registrations (#115695) fix(ui): collapse custodian startup error gap (#115720) fix(gateway): reload edited hook transforms (#107875) refactor: centralize channel streaming config hints (#115739)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
) Reconstruct the verified Zalo lifecycle fix from openclaw#109990 on current main and preserve its exact production and regression-test blobs. Source: openclaw#109990 Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: LZY3538 <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
…ft-ingestion * origin/main: fix(feishu): reject unsupported initial document content (openclaw#115697) feat(media): probe duration and dimensions for playback metadata (openclaw#115728) fix(sandbox): scope runtimes by workspace (openclaw#115766) fix(ui): guide users through missing or broken AI setup (openclaw#115716) fix(sessions): return direct-agent replies to their active session (openclaw#115756) fix(zalo): stop provider startup after gateway shutdown (openclaw#115763) fix(agents): bound completed background process retention (openclaw#115760) fix(plugins): bound hook execution and retire stale registrations (openclaw#115695) fix(ui): collapse custodian startup error gap (openclaw#115720) fix(gateway): reload edited hook transforms (openclaw#107875) refactor: centralize channel streaming config hints (openclaw#115739)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #109990
What Problem This Solves
Fixes an issue where a configured Zalo account could keep starting after its gateway lifecycle had already been canceled. Polling could still inspect or mutate webhooks, and webhook mode could acquire local HTTP routes or change remote webhook registration after shutdown.
Why This Change Was Made
Preserves and credits @LZY3538's original fix from #109990 while reconstructing its exact three reviewed file blobs on current, repaired main. The Zalo-owned monitor now handles an already-aborted signal before registering its listener and before acquiring any polling, webhook, hosted-media, or HTTP-route resource. No SDK, dependency, configuration, or unrelated plugin behavior changes.
The original contributor fork could not accept the required current-main refresh because the repository-native publisher correctly rejects an unsigned merge and its signed GraphQL fallback cannot preserve merge ancestry. This official, GitHub-signed, expected-head-guarded reconstruction retains the original production fix and regression tests byte-for-byte and includes the contributor's actual
Co-authored-bytrailer.User Impact
Zalo polling and webhook accounts now stop immediately and cleanly when gateway shutdown wins the startup race. Already-running accounts retain their existing abort and cleanup behavior.
Evidence
f466ad0e71b73b3dbb8cce2a29631edd088ee6a7: both polling and webhook integration cases failed as expected while 26 adjacent controls passed.14a96a5713d880830ea82a9cfb3ae140b1a44639: all 123 Zalo tests in 20 files passed on remote Blacksmith.c0e050bbf275202a3a9eeca86cb9084e33ad7a1b:OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs extensions/zalo/src/channel.pre-aborted.integration.test.ts extensions/zalo/src/monitor.lifecycle.test.ts extensions/zalo/src/channel.startup.test.ts: 3 files, 10 tests passed.fetch, the account monitor, the abort signal, nor the plugin route registry. In both modes only the legitimategetMeaccount probe occurs and zero HTTP routes remain.gpt-5.6-solautoreview atxhigh: clean, no findings, 0.97 correctness; TruffleHog clean.git diff --check: passed. Current repaired main and workflow sanity fixes are ancestors.