Repository navigation
refactor(discord): deslop discord - #163728
Conversation
Consolidate Discord delivery, authorization setup, component registry, transport and voice helpers while preserving current behavior. Retire pre-July configuration transforms with unchanged-input bridge-upgrade guidance. Fix canonical allowlist audit detection and preserve deadline errors when cancellation settles work synchronously.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:47 PM ET / 20:47 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR consolidates Discord delivery, interaction, authorization, and transport helpers, fixes audit and timeout outcomes, and replaces older configuration repairs with byte-preserving bridge-upgrade guidance. Merge readiness✅ Ready for maintainer review The branch still contains useful work absent from current main. The prior documentation finding is resolved, the recorded upgrade proof covers the pinned head, and no blocking patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Discord plugin turns incoming messages and interactions into OpenClaw agent requests and sends responses through Discord. Doctor prepares its stored configuration before recovery, updates, and startup. flowchart TD
A[Stored configuration] --> B[Doctor admission]
B --> C[Supported configuration]
B --> D[Preserved retired inputs and bridge guidance]
E[Discord messages and interactions] --> F[Plugin policy and dispatch]
C --> F
F --> G[Agent requests and Discord replies]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1059, Tests -135, Docs +13, Other -1. Total -1182 across 57 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one Discord owner for each delivery and interaction responsibility, preserving supported state and explicit, byte-preserving recovery guidance for retired inputs. Do we have a high-confidence way to reproduce the issue? Yes, the audit precedence and synchronous timeout-settlement defects have clear source paths and focused negative-control regressions reported in the captured body; this review did not execute them. Is this the best way to solve the issue? Yes, the branch consolidates existing owners while retaining authorization, transport, and persistence contracts; the retired-config path uses established Doctor admission and demonstrated bridge recovery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aac001b30ba8. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (#163780) fix(ui): gate system information at the shared reader (#160982) chore(db): reclassify worker inventory sites with caller evidence (#163754) refactor(channels): deslop Slack and Matrix (#163740) fix(agents): reject empty sessions_search queries in the tool schema (#129120) perf(nodes): load only what a worker turn needs (#160442) test(cli): assert concise Gateway failure copy in CLI process tests (#163649) refactor(discord): deslop discord (#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (#163761) test(gateway): add sustained heap retention diagnostics (#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718) feat(macos): add a --no-activate launch flag for background automation (#163758) fix(agents): preserve host authority across module reloads (#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690) fix: keep video widgets scrollable and preload initial frames (#163762) feat(memory): add a provider-neutral memory provider runtime (#162175) ...
* refactor(discord): deslop discord Consolidate Discord delivery, authorization setup, component registry, transport and voice helpers while preserving current behavior. Retire pre-July configuration transforms with unchanged-input bridge-upgrade guidance. Fix canonical allowlist audit detection and preserve deadline errors when cancellation settles work synchronously. * fix(discord): finish deslop validation and Doctor guidance * refactor(discord): keep response state with interaction effects * docs(discord): document the retired config bridge * fix(discord): refuse retired config before backup recovery
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits) fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772) test(memory): open corpus database explicitly fix: bound Doctor migration capture to plugin data (openclaw#163780) fix(ui): gate system information at the shared reader (openclaw#160982) chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754) refactor(channels): deslop Slack and Matrix (openclaw#163740) fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120) perf(nodes): load only what a worker turn needs (openclaw#160442) test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649) refactor(discord): deslop discord (openclaw#163728) fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761) test(gateway): add sustained heap retention diagnostics (openclaw#163764) test(ui): disambiguate session filter controls refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767) fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718) feat(macos): add a --no-activate launch flag for background automation (openclaw#163758) fix(agents): preserve host authority across module reloads (openclaw#163725) perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690) fix: keep video widgets scrollable and preload initial frames (openclaw#163762) feat(memory): add a provider-neutral memory provider runtime (openclaw#162175) ...
What Problem This Solves
Discord still duplicates delivery, authorization setup, registry lifecycle, and transport plumbing around existing owners. This batch removes 1,059 net production lines through deletion and consolidation.
User Impact
Supported Discord configuration, message payloads, component rendering, and persisted state stay compatible. The fixes below correct audit and timeout outcomes.
Pre-July configuration forms (
voice.tts.<provider>and guild-channelallow/agentId) now stop before mutation and name the original path plus a bridge upgrade: install2026.9.7, runopenclaw doctor --fix, then upgrade again. July's strict schemas already requirevoice.tts.providers,enabled, and top-levelbindings; streaming, nested DM access, wake-name, and supported state migrations remain.Why This Change Was Made
Fixes found along the way
allowFromand falsely reported that native commands had no allowlist. Canonical values, including an empty override, now take precedence over nested aliases.dangerouslyAllowNameMatching.Evidence
node scripts/run-vitest.mjs extensions/discord,node scripts/run-vitest.mjs src/plugins/contracts, bothcheck-madge-import-cycles.tsandcheck-import-cycles.ts, and Knip's production dependency scan forextensions/discord.git range-diff).0ee7b9491511passed:[email protected]→ the frozen candidate tarball,basescenario, using the real published updater. Installed package identity, automatic migration, Doctor, config survival, candidate plugin requests, Gateway startup/readiness/status, and unavailable-plugin-path config preservation passed. The complete remote command (final tests/cycles, full package build, and Docker proof) took 25m44s; the full package build took 8m51s.Measured single-worker command wall times (
pnpm test <file> --maxWorkers=1): Doctor 26.109 s, security audit 27.735 s, timeouts 41.661 s. These include the existing 20–26 s compiled-worker preparation, with no new real timers, polling, or per-test process/Gateway boots. Initial exact-head hosted CI passed 44 jobs. Extension test bundles took 127, 132, 156, and 192 seconds including job setup. The new Doctor preflight file takes 56.55 s with one worker (13 tests); its added case took 793 ms. It fails on the previous recovery owner (expected refusal was absent), then passes with the early fence while preserving root, include, and valid backup bytes. At5448e2e4dcb5, installed production CLI proof passed all 12 retired-input cases (four TTS providers plus guildallow/agentId, each at root and account scope): exact diagnostic paths, 2026.9.7 bridge guidance, byte-identical active config, and validation refusal. A separately verified live-Gateway maintenance refusal preserved config and health; the retired-input matrix ran after the owned Gateway stopped. Published[email protected]plus published@openclaw/[email protected]then repaired the combined fixture, preserving speaker settings, enable flags, mention policy, and root/account bindings. Candidate Doctor, validation, and fresh Gateway readiness passed. Core/extension types, changed-file lint, plugin contracts, docs sanity, and both zero-cycle checks also passed. The final published-updater cell on5448e2e4dcb5also passed in 11m59s, including installed package identity, automatic migration, Doctor, config survival, candidate plugin requests, and Gateway readiness/status. Final exact-head hosted CI passed 49 jobs, with no failures.