Repository navigation
fix(ui): revert Slack and Discord session return buttons - #165334
Conversation
Revert the feature from a49a332 while preserving its unrelated build, session alias, and worker-routing fixes. Remove the link metadata and plugin UI; retire the persisted field through canonical projection and keep its slot reserved.
|
🦞👀 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. |
|
@clawsweeper autofix |
|
🦞🔧
This is fix-only; I will not merge this PR. |
|
CI diagnosis for The sibling tooling shard reproduces the same inventory failure. The focused inventory test also fails locally (3.50s). The build-artifacts job additionally reports stale generated browser-asset pointers in |
|
Codex review: needs changes before merge. Reviewed October 6, 2026, 4:52 PM ET / 20:52 UTC (Revision 12). ClawSweeper reviewWhat this changesRemoves Slack and Discord return links from Control UI session headers and retires their metadata and SDK helper, while incorporating an MCP dependency and OAuth prerequisite. Merge readiness⛔ Needs changes before merge - 1 item remains The prior OAuth finding and authority-proof gap are resolved on the pinned head. Current main still contains the feature being retired, and this maintainer-owned PR remains necessary. Priority: P2 Review scores
Verification
How this fits togetherChannel plugins feed conversation metadata into OpenClaw’s session store, which the Gateway presents to Control UI. The included MCP prerequisite governs OAuth registration and credential persistence when connecting to external tools. flowchart TD
A[Channel messages] --> B[Session metadata]
B --> C[Canonical session projection]
C --> D[Gateway session snapshots]
D --> E[Control UI headers]
F[MCP issuer discovery] --> G[OAuth eligibility guard]
G --> H[Registration and credential storage]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -257, Tests -233, Docs -68, Config -14, Other -3. Total -575 across 63 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Complete the approved retirement through canonical session projection while retaining generic plugin accessories and existing OAuth credentials. Do we have a high-confidence way to reproduce the issue? Not applicable to the intentional feature retirement; inspected before/after images demonstrate it. The included OAuth correction has a concrete red/green production-transport trace. Is this the best way to solve the issue? Yes. The coordinated removal retires producers, projection, protocol fields, UI contributions, SDK exports, and obsolete tests while preserving the generic accessory owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 660556970ac3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
|
ClawSweeper 🐠 automerge status ClawSweeper finished this automerge repair pass without changing the branch. Executor outcome: validation command failed (pnpm check:changed): $ node scripts/check-changed.mjs --timed [check:changed] lanes=all [check:changed] extension-impacting surface; extension typecheck included [check:changed] extensions/browser/package.json: bundled channel con.... Worker actions:
No branch push, rebase, replacement PR, merge, or ClawSweeper re-review was started on this pass. fish notes: reasoning medium; reviewed against d1bc7ab. Automerge progress:
|
|
Both reported cleanup findings are addressed in Before: the inventory assertion failed on the deleted conversation-link module, and CI rejected the stale asset pointers. After: 17 eager-import/inventory tests pass, provisioning has 16 passed / 1 skipped (282.18s), and Both bot repair attempts ended without publication; the most recent queued run completed with repair execution skipped before this local push. The existing full build, 254 behavioral tests, production type checks, and visual comparisons remain applicable. Local |
|
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
Merged via squash.
|
The Control UI revert in #165334 removed Discord's manifest-writing hook. Check its remaining SDK hook and preserve early manifest generation in the existing isolated-plugin fixture, independent of the retired Discord UI. Validation: 14 focused Linux tests passed in 1.31s; a fresh isolated Discord build and metadata preparation produced the SDK and packaged manifest. The full tooling inventory was covered across Linux runs: 942 passing files and 7 existing skipped files. Changed checks, root test types, boundary lint, and P2 autoreview passed. Fallback-image toolchain and partial-Git failures passed on the standard CI image. One unrelated 300ms Gateway probe timing failure also passed unchanged there; retained as first-sighting evidence, without changing its assertions.
…5334) * fix(ui): revert Slack and Discord session return buttons Revert the feature from 929126f while preserving its unrelated build, session alias, and worker-routing fixes. Remove the link metadata and plugin UI; retire the persisted field through canonical projection and keep its slot reserved. * fix(build): complete channel link revert cleanup * fix(diagnostics-otel): handle Prometheus worker events explicitly * fix(deps): unblock CI on MCP OAuth advisory * fix(deps): unblock CI on MCP OAuth advisory * test(ui): release every service-worker install request * fix(mcp): retain credentials when refresh changes issuer * test(mcp): expect issuer-bound SDK client receipt * test(ui): match worker reconciliation status wording --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
The Control UI revert in openclaw#165334 removed Discord's manifest-writing hook. Check its remaining SDK hook and preserve early manifest generation in the existing isolated-plugin fixture, independent of the retired Discord UI. Validation: 14 focused Linux tests passed in 1.31s; a fresh isolated Discord build and metadata preparation produced the SDK and packaged manifest. The full tooling inventory was covered across Linux runs: 942 passing files and 7 existing skipped files. Changed checks, root test types, boundary lint, and P2 autoreview passed. Fallback-image toolchain and partial-Git failures passed on the standard CI image. One unrelated 300ms Gateway probe timing failure also passed unchanged there; retained as first-sighting evidence, without changing its assertions.
…d compat export Stable 2026.10.1 and 2026.10.2 ship createSessionHeaderLink from openclaw/plugin-sdk/control-ui; #165334 removed it on main without a compat window. Restore the shipped helper verbatim as a deprecated export, record plugin-sdk-session-header-link (removeAfter 2027-01-12), and refresh the shipped-surface inventory to v2026.10.2.
…d compat export (#169746) * fix(plugin-sdk): restore shipped createSessionHeaderLink as deprecated compat export Stable 2026.10.1 and 2026.10.2 ship createSessionHeaderLink from openclaw/plugin-sdk/control-ui; #165334 removed it on main without a compat window. Restore the shipped helper verbatim as a deprecated export, record plugin-sdk-session-header-link (removeAfter 2027-01-12), and refresh the shipped-surface inventory to v2026.10.2. * fix(plugin-sdk): type restored session header link against current accessory props * test(plugin-sdk): name the lane that type-checks the shipped accessory shape
…d compat export (#169746) * fix(plugin-sdk): restore shipped createSessionHeaderLink as deprecated compat export Stable 2026.10.1 and 2026.10.2 ship createSessionHeaderLink from openclaw/plugin-sdk/control-ui; #165334 removed it on main without a compat window. Restore the shipped helper verbatim as a deprecated export, record plugin-sdk-session-header-link (removeAfter 2027-01-12), and refresh the shipped-surface inventory to v2026.10.2. * fix(plugin-sdk): type restored session header link against current accessory props * test(plugin-sdk): name the lane that type-checks the shipped accessory shape (cherry picked from commit 4d17409)
Related: #158742
What Problem This Solves
Reverts the recently added Slack and Discord return buttons at Patrick's request.
User Impact
Channel sessions no longer show a button linking back to Slack or Discord. Existing sessions remain readable; session identity, delivery routing, plugin metadata, and generic plugin accessories remain supported. The feature's new SDK helper and accessory props are retired. Canonical projection discards historical navigation metadata, which reverting this patch would not restore. No database migration is required.
Why This Change Was Made
This is a scoped revert of
a49a3321fa9a, adapted to current main. It preserves the original PR's independent shared-store alias, browser-asset, worker-test-routing, and contributor-preservation fixes, plus newer session, chat-layout, and X publication behavior.The CI prerequisite #166217 must land first. Its MCP dependency repair and reviewed issuer guard are temporarily included here; landing it removes those changes from this PR's main-relative diff. The feature portion remains 53 files and is byte-for-byte identical to the previously reviewed revert.
Evidence
caf1c8bintegration passed 62 tests across six routed shards (147.37s), all production/test type graphs, dependency/ratchet guards, SDK checks, canonical asset generation, and committed-byte verification. Independent scope review and AutoReview found no actionable findings.ec1945bad347: 115 tests across seven files/six routed shards passed (215.48s), covering projection, protocol, session creation/forking, OAuth login and issuer handling, generic UI accessories, and X publication. Canonical plugin-asset committed-byte verification passed. The independent review confirmed the complete 53-file feature patch is unchanged and all four prerequisite source/test files match its reviewed head.f3f8f7b6b2a8: the full feature patch is byte-identical to the earlier reviewed version; its delta against prerequisiteab4445bis exactly 53 files (+38/-731). The refreshed changed check passed all production/test types, 104 lock mirrors, SDK/dependency/policy guards, unused-export scans, and extension/script lint. Full core lint reports only the three unchanged main files detailed below. The final integrated cloud workflow passes (1 case, 13.00s wrapper / 1.191s case), and UI style checks pass.Desktop comparison
Mobile comparison
Investigated prior failures and validation limits
The prior
d1bc7abCI attempt passed security-fast but failed seven Node jobs. The reproduced Mention Inbox fixture error and release-timing fixture failure are fixed upstream bydf73bb11139aand69ccd1e6b7b, both incorporated here. The AppSDK and Codex required-command cases passed bounded local replays; this does not establish a fix. Three QA deadline failures remain unattributed, and a separate Codex mirror-persistence assertion reproduced on candidate and baseline. Their original failures and investigation are retained in the CI handoff; none is waived by a passing replay.Local QA execution was refused before cases because the supported wrapper could not verify separation from the running personal Gateway; that service and the guard were left intact. Current-head required GitHub CI remains the landing gate.
The refreshed changed-check run stopped on three unchanged inherited max-lines violations:
ui/src/components/session-organizer-operations.runtime.ts(734/700),src/agents/subagents/announce/subagent-announce.requester-settle-wake.ts(703/700), andsrc/cli/update-cli/update-command-service-maintenance.ts(710/700). All three source blobs and lint configuration match main660556970ac3. Other planned checks passed; this is not a claim that the full local check passed.