Skip to content

fix: prevent Slack and Feishu ingress startup leaks - #115295

Merged
steipete merged 3 commits into
mainfrom
codex/fix-slack-feishu-ingress-cleanup
Jul 28, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/fix-slack-feishu-ingress-cleanup

Conversation

@steipete

@steipete steipete commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #115293

What Problem This Solves

Fixes an issue where Slack and Feishu gateway accounts could leak transport resources when durable ingress initialization failed. Each supervisor retry could construct another Bolt/receiver, dispatcher, or ingress lifecycle without releasing the failed attempt.

Why This Change Was Made

The existing teardown paths already own these resources, but ingress startup happened just before their try/finally scopes. This moves startup into the cleanup-owning scopes; Slack also brings presence and HTTP handler startup under the same lifecycle boundary.

User Impact

Operators now get the original channel startup failure without accumulating leaked Slack or Feishu transport resources across health-monitor or supervisor retries.

Evidence

  • Added focused Slack and Feishu regression tests that force durable ingress start() to throw and assert teardown still runs before the error propagates.
  • Focused Testbox run: both new Vitest shards passed.
  • Exact-head CI exposed that Feishu's shared monitor mock predated eager ingress queue opening; the regression now lives in the established startup harness and the mock provides an isolated real ingress queue. The startup, webhook E2E, and Slack cleanup targets pass together (25 tests).
  • pnpm check:changed on Blacksmith Testbox: clean, including extension production/test typechecks, formatting, lint, boundary guards, and import-cycle checks.
  • Independent Codex autoreview: no accepted or actionable findings; patch rated correct with 0.94 confidence.

AI-assisted: Codex implemented and independently reviewed this change; I understand the lifecycle ownership and validation described above.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack channel: feishu Channel integration: feishu size: S maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@steipete
steipete merged commit 2964be2 into main Jul 28, 2026
93 of 95 checks passed
@steipete
steipete deleted the codex/fix-slack-feishu-ingress-cleanup branch July 28, 2026 17:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 28, 2026
…224005-host

* origin/main: (72 commits)
  fix: macOS-only Parallels smoke harness regression (#75293)
  fix(ios): use configured speech language for system voice (#113372)
  refactor: centralize isolated agent test ownership (#115340)
  test(ui): stabilize browser route readiness (#115320)
  fix(cron): clear automation after failed scheduler shutdown (#115316)
  fix: keep isolated gateway workspaces and skills inside state dir (#114487)
  docs: document local TTS on macOS, Linux, and Windows (#110230)
  fix(tasks): clone only the requested task page (#114277)
  fix(agents): prevent Code Mode resume loss and unbounded preparation (#115314)
  fix(process): preserve the first process cancellation reason (#115317)
  fix(nostr): report unavailable ingress when queue open fails (#115313)
  fix: prevent Slack and Feishu ingress startup leaks (#115295)
  fix(slack): avoid unsafe emphasis boundaries (#111575)
  fix: prevent changed checks from expanding into full lint (#115322)
  fix(codex): stabilize prompts and expose real cache regressions (#115238)
  refactor(ui): derive page route specs from the route table (#115214)
  fix(compaction): plan cut points in trigger units (#111886) (#115309)
  fix: prevent cron and gateway stress-run timeouts (#115241)
  fix(ci): validate frozen Matrix QA targets (#115298)
  test(macos): block real process fallthrough (#113337)
  ...

# Conflicts:
#	CHANGELOG.md
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
* fix(channels): clean up failed ingress startup

* chore: leave release notes to release prep

* test(feishu): initialize monitor ingress state
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…afea23-host

* origin/main: (72 commits)
  fix: macOS-only Parallels smoke harness regression (openclaw#75293)
  fix(ios): use configured speech language for system voice (openclaw#113372)
  refactor: centralize isolated agent test ownership (openclaw#115340)
  test(ui): stabilize browser route readiness (openclaw#115320)
  fix(cron): clear automation after failed scheduler shutdown (openclaw#115316)
  fix: keep isolated gateway workspaces and skills inside state dir (openclaw#114487)
  docs: document local TTS on macOS, Linux, and Windows (openclaw#110230)
  fix(tasks): clone only the requested task page (openclaw#114277)
  fix(agents): prevent Code Mode resume loss and unbounded preparation (openclaw#115314)
  fix(process): preserve the first process cancellation reason (openclaw#115317)
  fix(nostr): report unavailable ingress when queue open fails (openclaw#115313)
  fix: prevent Slack and Feishu ingress startup leaks (openclaw#115295)
  fix(slack): avoid unsafe emphasis boundaries (openclaw#111575)
  fix: prevent changed checks from expanding into full lint (openclaw#115322)
  fix(codex): stabilize prompts and expose real cache regressions (openclaw#115238)
  refactor(ui): derive page route specs from the route table (openclaw#115214)
  fix(compaction): plan cut points in trigger units (openclaw#111886) (openclaw#115309)
  fix: prevent cron and gateway stress-run timeouts (openclaw#115241)
  fix(ci): validate frozen Matrix QA targets (openclaw#115298)
  test(macos): block real process fallthrough (openclaw#113337)
  ...

# Conflicts:
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: feishu Channel integration: feishu channel: slack Channel integration: slack maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slack and Feishu leak transports when durable ingress startup fails

1 participant