Skip to content

refactor(discord): deslop Discord transport flows - #156579

Merged
steipete merged 3 commits into
mainfrom
deslop/l15-discord-sweep-20260923
Sep 23, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/l15-discord-sweep-20260923

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

This is a maintainer-requested Discord architecture cleanup, requested by @steipete to remove duplicated production logic while preserving behavior and public contracts.

Discord maintains parallel reaction, media, command, component, and voice paths that repeat transport decisions. Keeping those copies consistent adds maintenance work and obscures which function owns authorization, serialization, or delivery.

User Impact

No intended behavior change. Permissions, request ordering, serialized payloads, voice admission, public client methods, plugin SDK exports, configuration, and persisted state remain unchanged.

Why This Change Was Made

  • Share reaction notification and attachment/sticker processing while preserving authorization and download order.
  • Reuse existing action gates, parameter readers, and metadata dispatch; combine identical role, pin, and channel/category mutations.
  • Carry existing send options through text/media delivery and remove the thread-tail forwarding layer.
  • Reuse SDK grapheme truncation and one terminal approval renderer.
  • Resolve picker runtime choices once per render; share provider selectors, callback state types, and equivalent navigation paths.
  • Centralize component user authorization in the existing authorization owner, before consumption; reuse modal field types, getters, acknowledgement, and persisted-envelope types.
  • Use one native reply chunk loop, preserving first-message attachments/components/embeds and partial-delivery handling; remove unused native-command authorization plumbing.
  • Register existing channel conversation/approval operations directly instead of forwarding argument-by-argument.
  • Carry voice receipts and admitted byte counts with queued frames instead of a packet-keyed lookup and redundant packet copies; remove forwarding and unreachable cleanup paths and keep provider override construction with speaker configuration.

Public client methods exposed through runtime-api.ts remain intact. The only file outside Discord is an exact downward assertion-ratchet update: its obsolete picker entry goes from one assertion to zero.

Evidence

Head: cb0006ae7ecc59f3f36b01d04b418451127c201e (rebased onto 3d66eb5656736343b00a156329fda9cc6054a4c1).

  • OPENCLAW_TESTBOX=0 node scripts/check-changed.mjs: passed all selected guards, formatting, production/test types, and lint.
  • pnpm check:architecture: passed, including zero runtime and Madge import cycles.
  • pnpm build: passed, including plugin SDK export validation.
  • pnpm test:extensions:batch discord: 4,164 tests passed / 297 executed files (49 database-worker tests plus 4,115 Discord tests).
  • Focused node scripts/run-vitest.mjs invocation for the additional interaction, picker, component, channel, and voice changes: 412 passed / 17 files.
  • Cross-area Gateway/authority/transcript/SDK, progress-card, and QA thread-delivery consumers: 242 passed / 13 files.
  • Voice runtime and secret-owner E2E: 32 passed / 2 files.
  • Fresh Codex autoreview: scoped-clean at P0–P2, no accepted/actionable findings.

Architecture, build, the full Discord lane, consumers, and voice E2E passed in Blacksmith Testbox, delegated command exit 0. The wrapper verified exact committed source tree 50bc2cfafed52c8e47df48a2b4e4fd332ed4eade. The changed gate, architecture, build, focused tests, full Discord suite, consumers, and voice E2E all passed in this final run (delegated exit 0). The rebased commits are patch-identical to the clean Codex review by git range-diff. The backing Testbox Actions step may show canceled when its successful one-shot lease is released.

Behavior evidence: the tests exercise actual Gateway scheduled-job/message-tool/Discord-adapter paths against synthetic HTTP endpoints, including revocation before a 429 retry and settlement of an already-accepted edit. Transcript and voice-runtime cases cover session replacement, recording ownership, and cleanup. This is isolated boundary/E2E evidence, not a live Discord-server observation.

Changed-test costs measured with pnpm test <file> --maxWorkers=1: actions/handle-action.test.ts — 41 passed, 473.40s wall; voice/ingress.test.ts — 12 passed, 266.94s wall. Most elapsed time was fixture compilation and transforms. No tests were added or changed in the continuation sweep. The earlier expanded-head CI run completed with 104 successful jobs, 18 skips, and four failed leaf jobs plus the aggregate. The Discord extension bundle passed in 316 seconds. The failures and their attribution are recorded below; no failed check has been bypassed.

Production deletion

git diff --shortstat $(git merge-base origin/main HEAD) -- . ':(exclude)**/*.test.*' ':(exclude)**/test/**' ':(exclude)docs/**'
# 48 files changed, 694 insertions(+), 1923 deletions(-)

1,229 net lines under the requested measurement: 1,228 production lines plus one obsolete baseline row.

Focused, consumer, and E2E commands
node scripts/run-vitest.mjs extensions/discord/src/monitor/native-command-reply.test.ts extensions/discord/src/monitor/native-command.commands-allowfrom.test.ts extensions/discord/src/monitor/model-picker.test.ts extensions/discord/src/monitor/native-command.model-picker.test.ts extensions/discord/src/monitor/native-command.interaction-boundary.test.ts extensions/discord/src/monitor/native-command.think-autocomplete.test.ts extensions/discord/src/components.test.ts extensions/discord/src/components.selects.test.ts extensions/discord/src/components-registry.persistence.test.ts extensions/discord/src/internal/interactions.test.ts extensions/discord/src/internal/interaction-dispatch.test.ts extensions/discord/src/monitor/agent-components.wildcard.test.ts extensions/discord/src/channel.policies.test.ts extensions/discord/src/voice/voice-receive.test.ts extensions/discord/src/voice/voice-receive-backlog.test.ts extensions/discord/src/voice/voice-session.lifecycle.test.ts extensions/discord/src/voice/realtime-voice-selection.test.ts
node scripts/run-vitest.mjs test/channel-message-read-authority.integration.test.ts test/cli-message-authority.integration.test.ts test/discord-metadata-read-authority.integration.test.ts test/cron-message-read.integration.test.ts extensions/qa-lab/src/live-transports/discord/discord-transcripts-authorization.runtime.test.ts src/plugin-sdk/discord.test.ts test/scripts/check-session-accessor-boundary.test.ts test/discord-live-policy.integration.test.ts test/transcripts-discord-audio.integration.test.ts test/transcripts-tool.discord-lifecycle.integration.test.ts test/transcripts-tool.discord-provider.integration.test.ts
node scripts/run-vitest.mjs test/progress-card-channel-literals.integration.test.ts extensions/qa-lab/src/crabline-discord-thread-delivery.test.ts
node scripts/run-vitest.mjs extensions/discord/src/voice/voice-runtime.e2e.test.ts extensions/discord/src/voice/voice-runtime.secret-owner.e2e.test.ts

Failures investigated

The first implementation dropped enum aliases and introduced a type-only request-body import cycle. Clean-base comparisons attributed both failures to those simplifications, which were reverted; lint rules and architecture gates remain intact. The continuation's cast-helper inlining raised interactions.ts from 8 assertions to 9, so that sub-change was also reverted. The picker independently removed its last cast; the required baseline entry was deleted rather than relaxed.

One review claimed chunked media would repeat components/embeds. The send owner clears both variables after accepted delivery, and the existing multi-chunk test asserts a text-only follow-up. Review with that full source and test context is clean.

An earlier local scheduled-read run had 2 failures / 7 passes: claude-cli/read timed out after 60 seconds, then openclaw/channel-info observed duplicate metadata GETs before scheduled-job creation/action dispatch. Clean merge base bdd47f252a33146c8c4dd055a9ce1c6d7e0c31df reproduced both in the same order. Hosted runs passed unchanged, including all nine scheduled cases in this final run. This does not claim the local fixture instability was fixed.

No merge or auto-merge requested; coordinator review and a land order remain required.

CI attribution and recovery

The merge run incorporated main's dependency refresh 7dbfab8c2c7, after this branch's validated base. Its failed jobs were whole-tree formatting (an untouched UI geometry test), extension-test types (two incompatible Vitest 5.0.1 peer instances at extensions/qa-lab/src/control-ui-openclaw-delegation.real-gateway.e2e.test.ts:426), core-test types (an unresolved Vitest augmentation), and the unchanged Gateway model-catalog fixture (60-second timeout followed by an unavailable catalog). The catalog fixture disables bundled plugins and channel execution; the original 15-file group replay on clean base completed with 148 passes and 5 failures, including all four catalog cases (first timeout 60,070 ms versus 60,063 ms in CI) plus a clock-test timeout. This is attribution evidence, not a claimed fixture fix.

Clean merge base f649fdf3381 passes the UI file's format check and both affected typecheck commands. Recent merged controls #156676, #156665, and #156661 show no failed checks. Main repair 82411a34c8b fixes the formatting and module-augmentation failures; both now pass locally after rebasing. The separate QA/UI Vitest context mismatch reproduced both on the rebased candidate and on a clean checkout of repaired main 82411a34c8b with the Discord patch absent (node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --incremental false, exit 1). The original base passes that command. The consumer at QA-lab line 426 receives a context from root Vitest; ui/src/e2e/control-ui-e2e-suite.test-support.ts:60 requires the UI Vitest task tree, whose nested suite/file task types are incompatible across peer instances. Its owning test-support boundary is outside this Discord refactor. The remaining owning repair has now landed as 3d66eb56567 (fix(ci): decouple UI scenario contexts from Vitest peers). The previously failing extension typecheck passes after rebasing onto it. The three PR commits are patch-identical by git range-diff; full final validation passed on the rebased head. The fresh exact-head CI result and remaining timeout are recorded below.

The final rebased build exits 0 but reports a non-fatal Control UI diagnostic: isolated Mermaid JS is 1,555.8 KiB gzip versus its unchanged 960 KiB budget. Main upgraded packages/mermaid-renderer from Mermaid 11.17.2 to 12.0.0 (and its parser from 1.2.1 to 2.0.0); the earlier validated base measured 951.7 KiB. This PR changes neither Mermaid/UI inputs nor the budget. The observation is retained for the UI/dependency owner rather than changing unrelated files.

Exact-head CI timeout and recovery

CI run 35908895715 initially completed with failure on PR head cb0006ae7ecc59f3f36b01d04b418451127c201e (event=pull_request, branch deslop/l15-discord-sweep-20260923). Its sole failed leaf job is checks-node-compact-large-27: src/gateway/server-methods/models-connect-publication.integration.test.ts:52 exceeded its 60-second test deadline at 60,220 ms; 180 sibling tests passed. The aggregate failed accordingly. The failing test is byte-identical at the clean base and candidate and explicitly disables plugins and channels. The log does not identify which awaited operation exceeded the deadline.

The saved original 14-file CI group was replayed using node --import tsx scripts/ci-run-node-test-shard.mts with its original OPENCLAW_NODE_TEST_GROUPS_GZIP_BASE64 plan in Blacksmith Testbox. The wrapper verified the candidate tree; a separate clean worktree at merge base 3d66eb5656736343b00a156329fda9cc6054a4c1 was installed and tested first, then removed before testing the candidate. Both sides passed 181 tests / 14 files: base 121.12s, candidate 118.44s. The catalog case took 10,237 ms on base and 11,563 ms on candidate. Delegated command exit 0; lease completed.

This comparison used Node 24.19.0 on both sides. The resource owner observed 4 CPUs/16 GiB and correctly admitted the plan's two-worker fallback; the failing CI job had 8 CPUs/32 GiB and admitted eight workers. Thus the replay found no reproducible regression on the tested allocation, but does not prove the original timeout was fixed or reproduce its worker concurrency. No test timeout, worker admission policy, assertion, or source file was changed. Recent merged controls #156724, #156718, and #156696 had no failed checks. There is no source conflict with current main.

A maintainer-authorized rerun of the failed compact-27 job on the same head passed; run 35908895715 and both enforced openclaw/ci-gate checks are now green. The PR has 125 successful checks, 44 skips, and one neutral check. No source, timeout, assertion, or worker-policy change was needed. The intermittent timeout and the limits of its A/B evidence remain recorded above. The maintainer reviewed and approved this diff for native landing.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: XL labels Sep 23, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 4:25 PM ET / 20:25 UTC (Revision 6).

ClawSweeper review

What this changes

The Discord plugin consolidates reaction and media handling, action and component authorization, command replies, message sending, and voice transport code while aiming to preserve existing behavior.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open. The cleanup remains distinct from current main, and the reviewed paths show no concrete blocking code defect. OpenClaw’s refactor-only policy still needs a verified maintainer request tied to a concrete active fix or deliverable; the PR body asserts approval, but the captured discussion and reviews do not establish that link.

Priority: P3
Reviewed head: cb0006ae7ecc59f3f36b01d04b418451127c201e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is coherent and has strong production-boundary validation; its remaining blocker is a maintainer scope decision.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR reports after-change Testbox runs bound to the exact source tree through production Gateway, Discord adapter, message-action, and voice-runtime paths against synthetic HTTP endpoints, with observed 429 retry rejection and accepted-edit settlement. This is sufficient boundary proof for the internal refactor under the repository’s channel policy; it is not a live Discord-server observation. The diff changes no stored-data format or schema.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR reports after-change Testbox runs bound to the exact source tree through production Gateway, Discord adapter, message-action, and voice-runtime paths against synthetic HTTP endpoints, with observed 429 retry rejection and accepted-edit settlement. This is sufficient boundary proof for the internal refactor under the repository’s channel policy; it is not a live Discord-server observation. The diff changes no stored-data format or schema.
Evidence reviewed 13 items Refactor-only contribution rule: Current main requires a maintainer request tied to a concrete fix before accepting a refactor-only PR.
Captured PR explanation: The live body has the captured SHA-256 and 13,459 UTF-16 units, so its previously omitted ending was inspected against the same source. It says there is no intended behavior change and asserts maintainer approval, but names no concrete active fix or deliverable.
Discussion and review state: The REST review list is empty. The captured human comment is the author’s re-review request, so the available PR discussion does not independently confirm the claimed maintainer sponsorship.
Findings None None.
Security None None.

How this fits together

OpenClaw’s Discord plugin receives Discord events and Gateway message actions, checks channel policy, and routes work to agent sessions. It also sends replies and voice output through Discord transport clients.

flowchart LR
  A[Discord events and commands] --> B[Discord plugin]
  C[Gateway message actions] --> B
  B --> D[Channel authorization and routing]
  D --> E[Agent session events]
  D --> F[Message and voice delivery]
  F --> G[Discord API]
Loading

Decision needed

Question Recommendation
Which concrete active fix or deliverable requested this Discord transport refactor, and does the submitted scope belong to it? Confirm the active deliverable: A project maintainer names the active fix or deliverable and confirms this cleanup is needed for it.

Why: The repository requires explicit maintainer sponsorship for refactor-only work; code quality and the author’s PR-body assertion cannot establish that intent.

Before merge

  • Resolve merge risk (P1) - The refactor-only contribution rule requires a maintainer request tied to a concrete active fix or deliverable. The PR body asserts approval, but the available discussion and reviews do not independently establish that scope.
  • Complete next step (P2) - A project maintainer must name the concrete active fix or deliverable that requested this refactor and confirm its scope.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source -1228, Tests -4, Other -1. Total -1233 across 50 files.

View PR surface stats
Area Files Added Removed Net
Source 47 682 1910 -1228
Tests 2 24 28 -4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 50 706 1939 -1233

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one owner for each Discord authorization, delivery, and voice receipt decision, and land this consolidation only when a project maintainer identifies the active fix or deliverable it serves.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one owner for each Discord authorization, delivery, and voice receipt decision, and land this consolidation only when a project maintainer identifies the active fix or deliverable it serves.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR addresses duplicated implementation paths rather than a reported user-facing defect. Its boundary checks exercise the affected paths after the change.

Is this the best way to solve the issue?

Unclear: the consolidation follows existing Discord owners and preserves the reviewed contracts, but its acceptance under the refactor-only rule depends on a named active deliverable.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against bdeca1661473.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is an internal cleanup with no intended user-facing behavior change or reported active regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR reports after-change Testbox runs bound to the exact source tree through production Gateway, Discord adapter, message-action, and voice-runtime paths against synthetic HTTP endpoints, with observed 429 retry rejection and accepted-edit settlement. This is sufficient boundary proof for the internal refactor under the repository’s channel policy; it is not a live Discord-server observation. The diff changes no stored-data format or schema.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR reports after-change Testbox runs bound to the exact source tree through production Gateway, Discord adapter, message-action, and voice-runtime paths against synthetic HTTP endpoints, with observed 429 retry rejection and accepted-edit settlement. This is sufficient boundary proof for the internal refactor under the repository’s channel policy; it is not a live Discord-server observation. The diff changes no stored-data format or schema.

Evidence

What I checked:

  • Refactor-only contribution rule: Current main requires a maintainer request tied to a concrete fix before accepting a refactor-only PR. (CONTRIBUTING.md:21, bdeca1661473)
  • Captured PR explanation: The live body has the captured SHA-256 and 13,459 UTF-16 units, so its previously omitted ending was inspected against the same source. It says there is no intended behavior change and asserts maintainer approval, but names no concrete active fix or deliverable. (cb0006ae7ecc)
  • Discussion and review state: The REST review list is empty. The captured human comment is the author’s re-review request, so the available PR discussion does not independently confirm the claimed maintainer sponsorship.
  • Work remains distinct from main: Current main still has the thread text forwarding helper removed by this PR. The verified test merge has the pinned base followed by the exact PR head as parents and changes Discord files relative to that base; no intervening Discord change appears between the pinned base and fetched main. (extensions/discord/src/send.outbound.ts:85, bdeca1661473)
  • Component authorization order: The consolidated component path checks allowed users before returning to handlers that consume the registry entry. (extensions/discord/src/monitor/agent-components-guild-auth.ts:283, cb0006ae7ecc)
  • Reply delivery shape: The shared reply loop gives files to the first chunk; the send operation clears first-message components and embeds after accepted delivery. (extensions/discord/src/monitor/native-command-reply.ts:160, cb0006ae7ecc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-23T14:52:35.408Z sha 5449211 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-23T16:06:22.904Z sha 60b2ae8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T16:15:12.700Z sha 60b2ae8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T17:12:07.890Z sha 60b2ae8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-23T18:05:47.944Z sha 54bc753c82608371737bf9260f5a8c6a6b1dd319 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The current head 60b2ae805522b57386da07d21c1ff5e9bf5ea33e removes the type-only import cycle identified by CI. The full architecture gate, changed checks, build, and 49 REST tests passed on the corrected source tree; fresh Codex autoreview is clean.

The main PR body now describes the after-change behavior evidence explicitly: real Gateway scheduled-job/message-tool/Discord-adapter paths against synthetic endpoints, including revocation before a 429 retry and settlement of an accepted edit, plus 28 voice-runtime E2E cases. The root working agreement states that a covering isolated mock-Gateway harness is valid channel boundary proof. This is that validation route; no live Discord-server observation is claimed. The body links the successful Testbox runs and retains the baseline-reproduced Mac fixture failures.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@steipete
steipete force-pushed the deslop/l15-discord-sweep-20260923 branch from 60b2ae8 to 54bc753 Compare September 23, 2026 17:57
@steipete
steipete force-pushed the deslop/l15-discord-sweep-20260923 branch from 54bc753 to cb0006a Compare September 23, 2026 19:22
@steipete
steipete merged commit c1c79ae into main Sep 23, 2026
318 of 320 checks passed
@steipete
steipete deleted the deslop/l15-discord-sweep-20260923 branch September 23, 2026 20:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 24, 2026
* refactor(discord): deslop Discord transport flows

* refactor(discord): keep request body types acyclic

* refactor(discord): consolidate interaction and voice owners
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
steipete added a commit that referenced this pull request Sep 25, 2026
Consolidate transport preparation, result projection, interaction handling,
and private SDK helper ownership after #156579 and #156773. Preserve
channel authorization, registration payloads, credentials, public exports,
and persisted state.

Fix stale Slack HTTP route disposal so repeated cleanup cannot unregister
a replacement handler. Keep a boundary regression for same-callback
re-registration and preserve transport assertions through fixture cutovers.
steipete added a commit that referenced this pull request Sep 25, 2026
Consolidate transport preparation, result projection, interaction handling,
and private SDK helper ownership after #156579 and #156773. Preserve
channel authorization, registration payloads, credentials, public exports,
and persisted state.

Fix stale Slack HTTP route disposal so repeated cleanup cannot unregister
a replacement handler. Keep a boundary regression for same-callback
re-registration and preserve transport assertions through fixture cutovers.
steipete added a commit that referenced this pull request Sep 25, 2026
* refactor(channels): deslop discord and slack second pass

Consolidate transport preparation, result projection, interaction handling,
and private SDK helper ownership after #156579 and #156773. Preserve
channel authorization, registration payloads, credentials, public exports,
and persisted state.

Fix stale Slack HTTP route disposal so repeated cleanup cannot unregister
a replacement handler. Keep a boundary regression for same-callback
re-registration and preserve transport assertions through fixture cutovers.

* fix(discord): keep shared transport contracts acyclic

Move RequestData to its serializer owner and import it directly from private
consumers. Give voice listeners a leaf contract implemented by the manager,
removing both type-import cycles reported by the architecture CI gate.

Preserve request fields, listener method signatures, and runtime behavior.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…8085)

* refactor(channels): deslop discord and slack second pass

Consolidate transport preparation, result projection, interaction handling,
and private SDK helper ownership after openclaw#156579 and openclaw#156773. Preserve
channel authorization, registration payloads, credentials, public exports,
and persisted state.

Fix stale Slack HTTP route disposal so repeated cleanup cannot unregister
a replacement handler. Keep a boundary regression for same-callback
re-registration and preserve transport assertions through fixture cutovers.

* fix(discord): keep shared transport contracts acyclic

Move RequestData to its serializer owner and import it directly from private
consumers. Give voice listeners a leaf contract implemented by the manager,
removing both type-import cycles reported by the architecture CI gate.

Preserve request fields, listener method signatures, and runtime behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant