Skip to content

refactor(channels): deslop Telegram, Matrix and Feishu fifth pass - #160970

Merged
steipete merged 2 commits into
mainfrom
deslop/l158-tg-matrix-feishu5
Sep 29, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l158-tg-matrix-feishu5

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

This maintainer-requested fifth pass removes remaining duplicate owners, unused forwarding and repeated projections across Telegram, Matrix and Feishu after the earlier channel sweeps.

User Impact

No user-visible behavior change. Request/event bytes, callback formats, authorization and allowlists, rate limits, chunking, crypto/device state, persisted state, manifests and configuration keys remain unchanged. No migration or operator action is required.

Why This Change Was Made

The measured candidate removes 459 net production lines (320 added, 779 removed), plus 65 net test/support lines. The full large-file sweep found a smaller safe result than the 1,000-line target. The coverage log below accounts for every one of the 204 baseline production files over 200 lines, sorted by size; untouched files over 150 lines were inspected first.

  • Telegram: share sticker vision/model selection through its existing lazy owner; reuse album text/entity joining; derive authorization and retained-cache types from their owners; preserve the public reply-ID helper as a direct alias; collapse identical command projections and completion handling.
  • Matrix: use the canonical poll parser without manufacturing an empty event envelope; remove media-rendering and formatted-content forwarding layers; share avatar upload flow and stable outbound/approval options; reuse reaction bindings; leave redirect cleanup to its existing catch owner; share delivery-target and setup-result types.
  • Feishu document tools: resolve file/image upload inputs once before mutation and pass schema-owned parameters; remove the always-empty batch-result wrapper; avoid a redundant table-width pass and manual surrogate scanning; reuse Bitable schema properties and remove rename-and-rename-back arguments.
  • Feishu channel runtime: remove unused bot-name propagation and its write-only in-memory map; prepare direct/reply payload fields in the send owner; return the media client directly; use SDK directory parameters so adapters can forward directly; reuse binding-manager state, result types, expiry helpers; simplify identical card branches and escaping without changing output bytes.

The dedicated WebSocket wait remains because a generic promise race changes same-turn abort/terminal-error ordering. Persisted identity-name fields and probe/UI output are also retained; only the unused in-memory name mirror is removed.

Related earlier passes: #160032, #158923, #159430. Their merged name-only diffs were read before this pass; this PR does not replay those changes.

Fixes Found Along the Way

No product bug or flaky-test fix is claimed. The removed bot-name test only asserted forwarding of an unused private argument; the ID-based mention regression remains. Existing batch and poll assertions were updated to follow the canonical owners, and the Telegram dispatch fixture now mocks the shared sticker-vision owner.

Evidence

Linux / Node 24.19.0 / pnpm 12.5.1, Blacksmith Testbox. The full extension/boundary run used tbx_01m3ndgfhrma5t8nm8ra0fxjmf (run); final validation used replacement lease tbx_01m3nkw0s40z21hw6kwwgefytt (run). Commands ran sequentially with frozen source and dependency verification.

  • pnpm build: passed on the final source tree, 275.68 s wall.
  • pnpm test:extensions:batch telegram,matrix,feishu: passed, 451 test files / 6,569 tests, 2,878.83 s wall. The normal batching and database-worker isolation were preserved.
  • node scripts/run-vitest.mjs src/infra/fs-safe-import-boundary.test.ts test/plugin-extension-import-boundary.test.ts test/extension-test-boundary.test.ts test/test-helper-extension-import-boundary.test.ts src/plugins/contracts/core-extension-facade-boundary.test.ts: passed, 5 files / 49 tests, 44.96 s wall.
  • Existing isolated boundary proof passed within the extension run: Telegram sticker/media-carrier, album and registered native-pipeline tests; Matrix registered-handler media/body/history tests; Feishu real Lark SDK DM loopback and Gateway webhook tests (1 and 25 cases respectively). No live-channel proof is claimed.
  • Independent Codex autoreview: scoped clean through P2. git diff --check: passed.
  • node scripts/check-changed.mjs: passed on the final source tree, 569.26 s wall, including production/test types, dead exports, lint and runtime import-cycle checks. Three assertion-safety baseline counts shrink; no new exception was added.

Changed-test costs, measured with pnpm test <file> --maxWorkers=1 (all passed, no new tests):

Test file Tests Wall seconds
extensions/feishu/src/bot.checkBotMentioned.test.ts 19 30.58
extensions/feishu/src/docx-batch-insert.test.ts 2 1.56
extensions/feishu/src/monitor.bot-menu.test.ts 5 25.82
extensions/feishu/src/monitor.reaction.test.ts 31 30.10
extensions/matrix/src/matrix/poll-types.test.ts 12 2.00
extensions/feishu/src/monitor.bot-identity.test.ts 1 1.63
extensions/feishu/src/monitor.cleanup.test.ts 7 25.61
extensions/feishu/src/monitor.webhook-routing.test.ts 11 24.99
extensions/feishu/src/monitor.vc-meeting-invited-handler.test.ts 12 28.30

The full extension run preceded the final removal of the write-only name map. After that cutover, all four changed monitor suites above passed again, plus monitor.bot-identity.rejection.test.ts, bot-identity-cache.test.ts, monitor.startup.test.ts and monitor.lifecycle.test.ts (35 cases, 47.73 s wall). The account/reply dispatcher follow-up also passed 188 cases. The final build, changed gate and independent review bind the finished source tree 4772e48821c80156ffd1847d15daaa35ed088d8c.

The removed Telegram fixture mocks are covered by the full Telegram suite; no test cases were added there. Hosted PR CI timings are not available yet. The Testbox hosting Actions runs can show cancelled after lease cleanup; the recorded command exits are authoritative.

Coverage log: all 204 production files over 200 lines

l158 Telegram, Matrix and Feishu fifth-pass coverage

Baseline: 58e1481. Recent merged PRs and their name-only diffs were inspected first; untouched files over 150 lines were read before previously touched large owners. Each production source file over 200 lines is listed by baseline size. READ denotes complete source inspection, with callers and shared owners checked as relevant. Test/support files are excluded.

Baseline lines Production file Disposition
1890 extensions/feishu/src/channel.ts READ: use canonical SDK directory parameters and direct directory functions; remove four null-normalizing forwarding closures. Retain action-specific authorization, argument precedence, direct-send failure propagation and native-card validation.
1842 extensions/feishu/src/bot.ts READ — Removed obsolete botName parser/handler parameter plumbing. ID-based mention resolution replaced name checks in #36333 (627b37e); parser is private and absent from API barrels. Preserved routing, authorization refresh, history visibility, and broadcast settlement.
1643 extensions/feishu/src/reply-dispatcher.ts READ: direct assignments replace a state-marker wrapper with no invariant. Retain manual resolver capture for the extension library target, generation sealing, finalization settlement, media partial receipts and all preview/final ordering.
1190 extensions/feishu/src/monitor.comment.ts READ — Fourth pass already consolidated page fetching/selection. Remaining timelines, comment-versus-document references, prompt bytes, and provider retry lookup have distinct behavior; no sound larger simplification.
1115 extensions/telegram/src/channel.ts READ
1078 extensions/feishu/src/docx.ts READ: moved upload input resolution into the common upload action boundary; schema-owned action parameters and prepared upload values replace long positional forwarding; removed projection through dead batch-result envelope. Conversion ordering, request bodies, media limits, sandbox policy, read timeouts, and mutation order remain intact.
941 extensions/telegram/src/action-runtime.ts READ
935 extensions/telegram/src/bot-message-context.session.ts READ
919 extensions/telegram/src/message-cache.ts READ
917 extensions/telegram/src/bot/delivery.replies.ts READ
908 extensions/feishu/src/doctor.ts READ — Finding classification, backups, transcript path restrictions, canonical store inspection, and archival are distinct recovery obligations. Avoided state/recovery changes under hard contracts.
893 extensions/telegram/src/draft-stream.ts READ
863 extensions/feishu/src/media.ts READ — Media client now returns the only consumed value, its client; removed unreachable Readable fallback after async iterable handling; send owner now receives the prepared target and packs direct fallback payload once. Upload/transcode/routing envelopes preserved.
822 extensions/feishu/src/outbound.ts READ — Shared SDK owns chunking, payload/media sequence, result attachment and reply fanout. Remaining comment/TTS/native-card/failure branches protect different recipient-visible and partial-delivery contracts.
815 extensions/telegram/src/fetch.ts READ
758 extensions/feishu/src/monitor.transport.ts READ — Retained the dedicated WebSocket cycle wait: the shared race helper changes same-turn terminal-error versus synchronous-abort priority and callback/identity cleanup ordering. Delay schedule, auth/rates and hosted legacy listener compatibility remain unchanged.
746 extensions/matrix/src/matrix/sdk/verification-manager.ts READ — Session dedupe, identity fallback, SAS timers and verification settlement are live crypto state; apparently repeated reads use intentionally different fallbacks.
728 extensions/telegram/src/bot-message-dispatch-delivery.ts READ
725 extensions/matrix/src/matrix/sdk/client-base.ts READ — Generation authority, crypto startup/shutdown, sync quiescence and persistence settlement encode separate lifecycle invariants; retain explicit ordering.
716 extensions/feishu/src/drive.ts READ: comment and file action owners were already consolidated by earlier passes. The remaining metadata compatibility paths, dispatch authority, external result projections, and specific error mapping protect distinct contracts; no additional sound simplification found.
712 extensions/telegram/src/bot-native-command-menu.ts READ
708 extensions/matrix/src/matrix/thread-bindings.ts READ — Session adapter already delegates lifecycle to SDK; legacy imports, queued snapshots, final persist and live-generation retirement preserve state/FIFO contracts.
708 extensions/telegram/src/bot-message-dispatch-reply.ts READ
690 extensions/matrix/src/matrix/client/config.ts READ — Auth precedence, lazy secret resolution, cached lineage, whoami and device backfill enforce distinct authority/storage boundaries; no safe unconditional unification.
686 extensions/telegram/src/bot-handlers.callback-router.ts READ
666 extensions/feishu/src/streaming-card.ts READ — Fourth pass unified guarded CardKit requests and content updates. Remaining close/discard/replace/note behavior and token/throttle contracts are distinct; no safe additional rewrite.
665 extensions/telegram/src/webhook.ts READ
660 extensions/telegram/src/bot-handlers.callback-router-controls.ts READ
660 extensions/telegram/src/thread-bindings.ts READ
659 extensions/matrix/src/onboarding.ts READ — Common configure flow already owns add/update; interactive auth, room resolution and invite prompts preserve config precedence and user decisions.
658 extensions/telegram/src/rich-blocks.ts READ
657 extensions/feishu/src/send.ts READ — Collapsed duplicated directParams payload packing into sendReplyOrFallbackDirect; callers pass the existing prepared target. Preserved target resolution order, withdrawn-thread fallback rules, wire fields, and error prefixes.
652 extensions/telegram/src/bot-message-context.ts READ
648 extensions/telegram/src/lane-delivery-text-deliverer.ts READ
645 extensions/telegram/src/doctor.ts READ
642 extensions/matrix/src/cli-shared.ts READ — CLI result/error lifecycle and diagnostics are already shared. Generic terminal sanitizer differs in control-character handling; retain exact terminal safety behavior.
642 extensions/telegram/src/format.ts READ
640 extensions/telegram/src/bot/helpers.ts READ
638 extensions/matrix/src/matrix/sdk.ts READ — Recovery-key staging, backup restore/reset and cross-signing branches preserve E2EE/device state; shared bootstrap and event-bridge owners are already used.
635 extensions/matrix/src/matrix/client/shared.ts READ — Single lease-generation owner already centralizes startup/retirement; monitor/transient drains and poison states must retain distinct settlement paths.
629 extensions/matrix/src/matrix/monitor/handler.ts READ — Ingress/history/preview dispatch already split by canonical owners; replay claim adoption, current route and cleanup preserve real inbound boundaries.
621 extensions/matrix/src/matrix/format.ts READ — Mention token mutation, HTML rendering, spoiler nesting and loose-list compaction encode exact Matrix formatting; no equivalent shared renderer found.
614 extensions/telegram/src/polling-session.ts READ
612 extensions/matrix/src/channel.ts READ — Channel adapters already reuse SDK factory/status/directory/policy owners; Matrix room/thread and named-account projections remain integration-specific.
609 extensions/telegram/src/send-message.ts READ
608 extensions/telegram/src/bot-message-dispatch-draft.ts READ
605 extensions/matrix/src/matrix/monitor/verification-events.ts READ — Stage classification is small beside distinct SAS fingerprints, strict-DM fallback, authorization and delayed lookups; another lookup object would not consolidate an owner.
595 extensions/matrix/src/matrix/send.ts READ — Text/media/poll/control/edit flows already reuse client/format/media owners; durable topology, accepted receipts and edit mention deltas must remain distinct.
592 extensions/feishu/src/bitable.ts READ: reused existing schema property owners for app/table/field definitions, removed rename-then-rename-back forwarding and narrating comments. Retained cleanup result accounting, empty-value classification, field cleanup ordering, and batch-delete fallback.
591 extensions/telegram/src/bot-handlers.inbound-authorization.ts READ
587 extensions/telegram/src/bot-handlers.message-pipeline.ts READ
581 extensions/telegram/src/bot-handlers.message-context.ts READ
578 extensions/matrix/src/approval-handler.runtime.ts READ — APPLIED one per-delivery Matrix transport options value for identical primary/fallback sends, preserving the single-message-limit retry distinction (6 net production lines removed). Shared adapter/retry owners already handle lifecycle. Local thread normalization retains fractional/nonfinite numeric String values unlike SDK normalizeOptionalStringifiedId; retained unchanged.
575 extensions/feishu/src/monitor.account.ts READ — Removed dead botName forwarding to message parser and dispatcher. Kept identity publication/cache and separate transport shutdown/adoption lifecycle.
572 extensions/matrix/src/matrix/crypto-state-store.ts READ — State normalizers, namespace/key codecs, legacy-file archival, CAS conflict loops and host-floor fallbacks preserve distinct persisted-state contracts; chunk encoding/read/write already use chunked-state.ts, so no sound larger reduction remains here.
571 extensions/matrix/src/matrix/actions/verification.ts READ — Tracked DM lookup, self-verification polling, cancellation and one-off readiness have distinct contracts; existing action-client owner centralizes lifecycle.
568 extensions/matrix/doctor-contract-api.ts READ — Legacy file migration duplication is already centralized in defineMatrixLegacyFileMigration; remaining credential revocation/readback and inbound-dedupe global gather/import/retirement flows have distinct durable-state ordering contracts and should remain explicit.
568 extensions/matrix/src/tool-actions.ts READ — Prior passes already centralized action gating and verification dispatch; remaining action parsers/results intentionally differ in validation order and authorization.
567 extensions/telegram/src/outbound-adapter.ts READ
565 extensions/matrix/src/matrix/monitor/index.ts READ — APPLIED: removed onSyncState forwarding wrapper by making it the health-state implementation directly, preserving its single-argument signature and timestamp capture. Client retirement, lease release and setup-closed checks guard different awaited boundaries and remain unchanged.
550 extensions/telegram/src/send-context.ts READ
547 extensions/matrix/src/matrix/sdk/recovery-key-store.ts READ — Serialization, staged-key cache invalidation, write joining, shutdown fences, failed-migration reads and explicit secret-storage recovery each protect crypto/state behavior; factoring them together would obscure those contracts.
542 extensions/telegram/src/bot-message-dispatch.ts READ
535 extensions/feishu/src/presentation-card.ts READ — SDK already owns generic presentation normalization and fallbacks. Native sanitization, card element/table limits, legacy controls, and fallback markers each protect separate rendering contracts.
528 extensions/telegram/src/rich-blocks-html-map.ts READ
526 extensions/telegram/src/bot-handlers.inbound-media.ts READ
518 extensions/matrix/src/matrix/client/storage.ts READ — Token-root selection retains device identity checks, scoring/tie order and diagnostics; mutations already share one prepareStorageMetaMutation/mutateStorageMeta owner with published-host fallback, and legacy migration ordering cannot be collapsed safely.
515 extensions/feishu/src/client.ts READ — Multipart conversion, proxy pooling, SDK target URL expansion, and request authority fences have dependency or credential boundaries. Handwritten method adapters preserve Axios verbs and auth/message dispatch distinctions.
515 extensions/telegram/src/telegram-ingress-drain.ts READ
513 extensions/telegram/src/bot-message.ts READ
508 extensions/matrix/src/matrix/monitor/events.ts READ — Concrete client guards also support existing runtime/test facades; event routes keep distinct decryption warning, reaction and join behavior, so no boundary guard removed.
507 extensions/matrix/src/matrix/sdk/client-core.ts READ — SDK wrapper provides Matrix transaction, authorization, encrypted-room, media fallback and event hydration contracts; forwarding methods are consumed client interface.
506 extensions/feishu/src/feishu-ingress.ts READ: monitor already delegates durable queue/drain/retry ownership to SDK; local merged-claim adoption and replay-guard settlement are distinct contracts. No further safe simplification.
506 extensions/telegram/src/bot-handlers.event-bindings.ts READ
505 extensions/matrix/src/matrix/monitor/handler-ingress-content.ts READ — Deferred audio/history reservation, authorization before downloads, poll snapshots, ACP admission and mentions have separate invariants; existing owners already shared.
503 extensions/matrix/src/matrix/sdk/decrypt-bridge.ts READ — Retry scheduling, exhausted-session revival, SDK decryption joining, quiescing drain and de-duplication represent distinct states; generic retry helpers cannot preserve its event-driven lifecycle and exact retry/rate contracts without an equally complex adapter.
499 extensions/telegram/src/bot-message-context.body.ts READ
493 extensions/feishu/src/monitor.message-handler.ts READ — Removed unused getBotName hook and per-message lookups. Kept durable lifecycle, merged-event mention normalization, dedupe claims, and per-chat queue ownership.
491 extensions/matrix/src/matrix/monitor/config.ts READ — Uses SDK allowlist canonicalization; Matrix startup/live/name lookup preserves different unresolved-entry and fail-closed rules.
487 extensions/matrix/src/matrix/sdk/transport.ts READ — APPLIED: removed the three immediate cleanup(); await closeDispatcher(dispatcher); pairs before missing-location, cross-protocol and redirect-loop throws; the enclosing catch already performs both calls, saving six production lines with error decisions and request bodies unchanged.
480 extensions/telegram/src/bot/body-helpers.ts READ
475 extensions/matrix/src/matrix/delivery-plan.ts READ — Shared the repeated delivery-target parameter type; persisted plan fields, validation, idempotency and reconciliation stay explicit.
472 extensions/matrix/src/matrix/monitor/inbound-dedupe-migration.ts READ — No sound removal: shipped SQLite/JSON eras, hash validation, expiry decoding, capacity checks, reservation and retirement verification protect replay/durability across interrupted upgrades. Lazy imports deliberately keep database/runtime dependencies out of doctor enumeration.
466 extensions/telegram/src/account-throttler.ts READ
464 extensions/telegram/src/bot-native-command-dispatch.ts READ
462 extensions/telegram/src/bot-native-command-menu-state.ts READ
460 extensions/feishu/src/setup-surface.ts READ — App credential and inherited-account presence rules, manual/scan onboarding, prompts and persistent-effect fence have distinct configured-input behavior; no safe cleanup that preserves all paths.
430 extensions/telegram/src/bot/delivery.resolve-media.ts READ
429 extensions/telegram/src/rich-block-model.ts READ
422 extensions/matrix/src/cli-verification.ts READ — Summary commands already share registration owner; self-verification prompt and SAS/status branches have distinct interaction/error contracts.
418 extensions/feishu/src/card-action.ts READ — Token settlement and chat-type caches serve different lifecycles; callback admission/actions and synthetic-message routing remain provider-owned. Fourth pass already centralized command dispatch.
418 extensions/feishu/src/config-schema.ts READ: existing shared schema builders own general channel shape; Feishu-specific token/domain, webhook and account refinements preserve configuration and JSON-schema constraints. No schema behavior or documentation change; exports are required by config registration and inferred types.
418 extensions/telegram/src/bot-core.ts READ
417 extensions/matrix/src/matrix/poll-types.ts READ — Removed parsePollStartContent metadata-manufacturing wrapper; every internal caller formats the canonical parsed poll directly with unchanged wire parsing.
417 extensions/matrix/src/matrix/sdk/crypto-bootstrap.ts READ — Initial, forced-reset, repair and fallback passes intentionally differ in cross-signing authority, secret-storage recreation and strict-error semantics; apparent duplicate bootstrap calls cannot be coalesced without obscuring E2EE contracts.
404 extensions/telegram/src/bot-handlers.inbound-pipeline.ts READ
398 extensions/telegram/src/send-prepared.ts READ
397 extensions/telegram/src/interactive-fallback.ts READ
391 extensions/telegram/src/doctor-contract.ts READ
391 extensions/telegram/src/message-cache-codec.ts READ
388 extensions/feishu/src/comment-shared.ts READ — SDK retry/string owners already reused. API error details, comment element parsing, URL kinds and reference resolution preserve provider/event contracts.
383 extensions/matrix/src/matrix/sdk/idb-persistence.ts READ — Snapshot codecs, IndexedDB transaction settlement, lock custody and Doctor-required legacy state errors are all substantive; restore/persist differ in strictness and partial-write behavior, so one generic pipeline would add policy rather than simplify ownership.
382 extensions/telegram/src/telegram-ingress-worker.runtime.ts READ
380 extensions/matrix/src/matrix/monitor/room-history.ts READ — No sound structural simplification: per-agent watermarks, queue generations, deferred audio reservation gaps, retry snapshots and FIFO/LRU distinctions are independently necessary. Existing SDK HistoryEntry is already reused; custom tracker adds semantics absent from basic reply-history helpers.
380 extensions/telegram/src/bot-native-command-builtins.ts READ
375 extensions/feishu/src/app-registration.ts READ: shared SSRF fetch, timer normalization and abort delay owners already used. Auth polling intervals, domain handoff, owner lookup fallback and response-body handling are distinct provider contracts.
372 extensions/matrix/src/approval-reactions.ts READ — APPLIED decision lookup via listMatrixApprovalReactionBindings(...).find(...) instead of repeating order/allow-set/emoji iteration; preserved trim, empty rejection, canonical decision order, Set filtering, and null fallback (5 net production lines removed). Persistent store/index contracts retained.
372 extensions/matrix/src/matrix/monitor/startup-verification.ts READ — Read/write/clear persistence intentionally differ in failure swallowing, device metadata and migration ordering; shape-only extraction would not simplify ownership.
371 extensions/telegram/src/bot-message-dispatch-progress.ts READ
371 extensions/telegram/src/bot-message-dispatch-turn.ts READ
363 extensions/matrix/src/matrix/actions/messages.ts READ — Thread cursor protocol, replacement selection, encrypted hydration and poll aggregation have distinct paging semantics; generic read wrappers would obscure these.
358 extensions/telegram/src/network-errors.ts READ
356 extensions/feishu/src/thread-bindings.ts READ: capture the singleton state maps once per manager; reuse owned binding records for key construction and inline two single-use target-kind forwarders. Expiry, replacement-manager authority, account scope, binding metadata and SDK adapter semantics remain unchanged.
353 extensions/telegram/src/bot-handlers.inbound-processing.ts READ
352 extensions/matrix/src/approval-native.ts READ — Native runtime and capability owners are already shared; local adapters deliberately differentiate plugin/exec approvers and suppression. Small opportunity: trivial config projection callbacks can directly use same-signature functions, after confirming inferred SDK parameter types.
351 extensions/telegram/src/approval-handler.runtime.ts READ
349 extensions/telegram/src/bot-native-command-login.ts READ
341 extensions/matrix/src/matrix/monitor/handler-context.ts READ — SDK owns context visibility and media projection; Matrix quote/thread/auth assembly is already single-owned and branch differences preserve user-visible context.
340 extensions/telegram/src/channel-actions.ts READ
336 extensions/matrix/src/matrix/sdk/client-verification.ts READ — Backup probes, key-loading/activation and current-client versus identity trust checks protect distinct diagnostic/crypto outcomes; normalization and diagnostic fallback already have canonical local helpers.
335 extensions/telegram/src/send-message-text.ts READ
334 extensions/telegram/src/bot-native-commands.ts READ
325 extensions/matrix/src/matrix/client/sync-cache-state.ts READ — Shared chunk lifecycle is already extracted; SDK and old raw /sync normalization plus malformed-generation fallback encode persisted formats, integrity and clean-shutdown behavior that must remain identical.
322 extensions/matrix/src/matrix/monitor/handler-ingress-access.ts READ — Pairing, admission, reaction and history-slot branches have distinct commit/discard ordering; shared SDK access owner is already used.
321 extensions/telegram/src/bot-update-tracker.ts READ
318 extensions/feishu/src/bot-content.ts READ — Previous passes consolidated media resolution and group session policy. Inbound versus fetched message formatting has intentionally different placeholders; mentions use app IDs and single-pass replacement.
314 extensions/feishu/src/accounts.ts READ: remove redundant secret-label wrapper and narrating comments. Retain the account-name projection because the channel config type does not declare account-only fields; preserve credential modes, merge precedence and selection-source reporting.
312 extensions/feishu/src/policy.ts READ: stable ingress identity, repeated-prefix normalization, exact-field aliases, explicit group configuration and root/account policy asymmetry are distinct auth contracts. All exports have production callers; no further sound reduction found.
311 extensions/matrix/src/cli-account.ts READ — Replaced redeclared bootstrap/profile result fields with types derived from their owning implementations; account publication/cleanup ordering retained.
303 extensions/telegram/src/config-schema.ts READ
302 extensions/feishu/src/read-policy.ts READ: preliminary metadata authorization, direct-operator/current-chat distinctions and member identity checks are separate security contracts; no sound removal or equivalent shared owner.
301 extensions/feishu/src/monitor.vc-meeting-invited-handler.ts READ — Synthetic invitation routing, opt-in autojoin and replay adoption retain distinct authority/settlement contracts; no behavior-neutral structural deletion remains.
301 extensions/telegram/src/button-types.ts READ
300 extensions/matrix/src/matrix/send/chunking.ts READ — Shared chunking is already used; Matrix spoiler/underline balancing and rendered event-size budget require channel-specific preparation.
299 extensions/telegram/src/sendchataction-401-backoff.ts READ
298 extensions/feishu/src/comment-handler.ts READ — Fourth pass owns route helper. Comment authorization refresh, dynamic-agent handoff, and document-scoped sessions differ materially from IM path.
297 extensions/telegram/src/bot-handlers.inbound-buffer.ts READ
295 extensions/matrix/src/matrix/direct-management.ts READ — Account-data write queue and inspection owner already centralize writes/evidence. Local normalizeRoomIdList duplicates imported normalizeUniqueTrimmedStringList for typed string arrays, but SDK drops malformed nonstrings where current path throws; event-parsing contract makes unqualified replacement inappropriate.
291 extensions/feishu/src/docx-markdown.ts READ: parser-derived boundaries, independent reference scopes, bounded probes, repeated table headers, and fence/container stability are each required by chunking contracts; no sound replacement by a shared helper preserves those distinct rules.
291 extensions/matrix/src/matrix/monitor/direct.ts READ — No sound structural cut: explicit configuration veto, m.direct seed state, exact-membership fallback, member-state false override, transient revalidation and recent-invite promotion are ordered classification/security rules. Four option callbacks have intentionally different default/error results and labels; a descriptor policy would hide these decisions.
285 extensions/matrix/src/matrix/monitor/handler-reply-dispatcher.ts READ — No sound broad removal: SDK preview lifecycle already owns settlement, while this adapter preserves live-marker finalization, inert draft mentions, partial delivery receipts, supplemental media and per-block reply references. Helpers build distinct Matrix receipt/content facts.
285 extensions/telegram/src/bot-native-command-plugins.ts READ
280 extensions/telegram/src/probe.ts READ
279 extensions/matrix/src/matrix/monitor/reaction-events.ts READ — Approval retirement and ordinary reaction notification have distinct auth, target and settlement rules; SDK approval/session binding owners are already used.
279 extensions/matrix/src/outbound.ts READ — Concrete opportunity: sendPayload duplicates the same cfg/media-access/roots/read-file/thread/account/audio/queue/signal/handoff/progress options between media and text send branches; one typed base options projection can remove approximately 15 repeated fields without changing reply fanout, first-part presentation, or receipt ownership.
279 extensions/telegram/src/outbound-media.ts READ
278 extensions/feishu/src/bot-broadcast.ts READ — Broadcast fanout adoption/replay claims and observer completion are separate ownership transitions; previous pass removed redundant helpers.
278 extensions/feishu/src/chat.ts READ: authorization-backed chat/member paths and precise result projection have separate policy and transport responsibilities; all exports are consumed by tool registration or channel runtime. No additional sound simplification found.
275 extensions/telegram/src/model-buttons.ts READ
274 extensions/feishu/src/post.ts READ: locale/wrapper precedence, independent attachment and mention collection, styling and code-fence bytes are deliberate parse/render contracts. Generic Markdown helpers do not preserve these exact outputs.
274 extensions/telegram/src/send-special.ts READ
273 extensions/matrix/src/cli-verification-backup.ts READ — CLI commands share runMatrixCliCommand; reset confirmation, recovery-key handling and diagnostics differ meaningfully across operations.
273 extensions/matrix/src/exec-approvals.ts READ — Profile, account-selection, approver, and filtering owners are already SDK-backed. Eligibility intentionally ignores filters when config.enabled is falsey while final shouldHandle applies filters, so merging those similar checks would change routing; only redundant object spreads/forwarding remain small candidates.
271 extensions/telegram/src/conversation-route.ts READ
270 extensions/telegram/src/send-edit.ts READ
269 extensions/telegram/src/bot/inbound-text-entities.ts READ
267 extensions/telegram/src/miniapp/routes.ts READ
266 extensions/matrix/src/matrix/read-policy.ts READ — Distinct preliminary versus alias-aware final authorization and authority revalidation are required. Existing Matrix allowlist helper is case-sensitive for qualified IDs and supports user: prefixes; read policy intentionally lowercases and strips only matrix:, so replacement would change auth.
266 extensions/telegram/src/account-inspect.ts READ
265 extensions/matrix/src/matrix/config-update.ts READ — Concrete small opportunity: unify nullable delete/assign owner used by scalar/array/string paths while retaining separate transforms, secret coercion, shallow clone rules, and undefined omission; remove leading narration comment. Do not merge config placement with generic SDK setup semantics.
264 extensions/telegram/src/history-policy.ts READ
261 extensions/feishu/src/wiki.ts READ: opaque ID validation must precede client resolution for current error behavior; action-specific SDK calls and projections remain explicit. No sound common adapter removes a responsibility.
260 extensions/matrix/src/matrix/client/file-sync-store.ts READ — SDK store overrides preserve accumulator/cursor projection, frozen writes, dirty requeue and final flush ordering; persistence serialization already uses the shared async lock and sync-cache owner.
258 extensions/telegram/src/rich-block-split.ts READ
257 extensions/telegram/src/sequential-key.ts READ
254 extensions/telegram/src/status-reaction-variants.ts READ
253 extensions/feishu/src/docx-table-ops.ts READ: removed derived table-width map and its separate population pass; native code-point iteration replaces manual surrogate-pair scanning while retaining the existing width weighting and allocation.
251 extensions/matrix/src/matrix/send/media.ts READ — Media/voice payloads, AIFC duration repair, thumbnails and upload-time encryption checks are distinct format/security boundaries; shared media owner already used.
249 extensions/feishu/src/markdown.ts READ: message envelope sizing already delegates to the canonical SDK chunker. Soft-break materialization and mention/envelope serialization are Feishu-specific contracts; no equivalent shared helper found.
249 extensions/telegram/src/send-actions.ts READ
248 extensions/feishu/src/subagent-hooks.ts READ: reuse the resolved binding manager in requester selection; remove a redeclared result shape in favor of inference from the delivery-origin owner and eliminate requester-origin property copying. Preserve ambiguous-route rejection and the exact public delivery payload.
248 extensions/matrix/src/matrix/monitor/mentions.ts READ — Visible-label checks, native IDs, metadata-backed mentions and prefix stripping have distinct anti-forgery/format contracts; no equivalent shared parser.
247 extensions/matrix/src/matrix/format-spoiler-ranges.ts READ — Markdown source maps, links, underline and code exclusions preserve spoiler redaction and exact delimiters; generic range helpers cannot replace their grammar.
245 extensions/telegram/src/ingress.ts READ
245 extensions/telegram/src/rich-blocks-html.ts READ
244 extensions/feishu/src/comment-reaction.ts READ — Ambient comment tool delivery and dispatcher lifecycle share typing cleanup owner; remaining state prevents repeat deletion and supports retry on provider failure.
244 extensions/feishu/src/interactive-message-content.ts READ: combine identical Markdown/plain-text content branches while preserving tag-specific fallthrough and template substitution. Keep table, nested card, locale and post fallback parsing.
244 extensions/matrix/src/matrix/deps.ts READ — Platform binding names, incomplete-download recovery, cached initialization and process-result mapping serve dependency repair contracts. CANDIDATE: unused runtime/confirm arguments on dependency-check-only ensureMatrixSdkInstalled can be removed together with its onboarding caller's unused confirmation closure after checking the runtime-api export's history/contract; the existing test only proves confirmation is unused and is not itself a retention contract.
238 extensions/telegram/src/telegram-text-delivery.ts READ
237 extensions/matrix/src/matrix/accounts.ts READ — Shared account-string precedence and prepared-account projection already centralize sync/async flows; cached identity and configured-state guards intentionally differ.
236 extensions/telegram/src/bot-message-dispatch-context.ts READ
234 extensions/matrix/src/matrix/monitor/handler-draft-controller.ts READ — Preview lifecycle/compositor SDK already own settlement; cumulative block generations and callback sequencing remain explicit. Removing forwarding syntax alone adds no owner simplification.
228 extensions/telegram/src/send-outbound.ts READ
226 extensions/feishu/src/native-card.ts READ: replace the escaping callback/switch with ordered native replacements; ampersand-first preserves exact entity bytes. The shared escapeHtml helper also escapes quotes and is therefore not equivalent. Retain button/card validation and sanitizer boundaries.
225 extensions/telegram/src/update-offset-store.ts READ
224 extensions/telegram/src/status-issues.ts READ
222 extensions/matrix/src/doctor-contract.ts READ — Streaming, trusted-DM, network and room-key migration already use SDK owners; remaining transforms preserve Matrix-specific inheritance/messages.
221 extensions/telegram/src/history-read.ts READ
219 extensions/telegram/src/polling-lease.ts READ
218 extensions/feishu/src/dynamic-agent.ts READ: reuse mutation-result shape and schema-inferred config type; remove narrating path comment. Keep preflight and locked mutation rechecks, naming/hash compatibility, maxAgents and rollback behavior.
218 extensions/telegram/src/bot-processing-outcome.ts READ
217 extensions/matrix/src/setup-config.ts READ — Similar SDK promotion helper preserves existing account values, while Matrix overwrites with root values and uses a different promotion-key set; replacing local owner would change persisted config. cloneIfObject is a small one-use wrapper candidate, but bulk migration logic is contract-bearing.
216 extensions/matrix/src/matrix/draft-stream.ts READ — SDK draft lifecycle already centralizes sends; retained duplicated success assignments because hoisting changes state ordering relative to injected log callbacks.
215 extensions/matrix/src/matrix/sdk/client-support.ts READ — Shared status schemas/defaults, timeout result projection, invalid-token diagnostics and explicit bootstrap options already consolidate their callers; nullable/error distinctions remain observable to device-status consumers.
213 extensions/matrix/src/matrix/monitor/handler-helpers.ts READ — Removed two media-text forwarding helpers and duplicate failure projections; poll precheck consumes canonical parsed poll. Session notice/audio guards preserve distinct behavior.
213 extensions/telegram/src/monitor.ts READ
213 extensions/telegram/src/topic-name-cache.ts READ
211 extensions/telegram/src/format-html.ts READ
205 extensions/matrix/src/config-schema.ts READ — Schema is a declarative contract and already uses shared group/DM/secret helpers; accounts are intentionally passthrough with retired-streaming rejection while top-level strictness differs, so unification would change config acceptance.
204 extensions/telegram/src/progress-draft-preview.ts READ
203 extensions/feishu/src/doctor-contract.ts READ: legacy migration sequencing, copy-on-change behavior and emitted guidance have distinct upgrade contracts, and all registration exports are dynamically loaded. No further sound simplification without changing migration behavior.
201 extensions/feishu/src/probe.ts READ: replace repeated valid-Date and future-time checks with the existing number-runtime isFutureDateTimestampMs owner. Keep credential-keyed cache, TTLs, eviction, abort handling and optional registration separation unchanged.
201 extensions/matrix/src/matrix/sdk/types.ts READ — Matrix SDK types are reused where compatible; remaining optional crypto facade and bridge provenance types describe distinct compatibility/transport contracts.
201 extensions/telegram/src/target-writeback.ts READ

Final cutover follow-through: read monitor.state.ts, monitor.bot-identity.ts and monitor.ts with all setter/prefetch callers; removed the write-only in-memory bot-name map after its readers were retired. Kept persisted identity-name fields, provider/probe outputs, open-ID state and identical identity-revision bumps. Lifecycle proofs retain same-ID successor ownership, recovery and drain assertions.

@clawsweeper

clawsweeper Bot commented Sep 29, 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: matrix Channel integration: matrix channel: telegram Channel integration: telegram channel: feishu Channel integration: feishu size: XL labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 05:02
@steipete
steipete enabled auto-merge (squash) September 29, 2026 05:10
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 29, 2026, 1:35 AM ET / 05:35 UTC (Revision 2).

ClawSweeper review

What this changes

The branch removes duplicate parsing, state, and delivery plumbing in the Telegram, Matrix, and Feishu plugins while aiming to preserve their message and configuration behavior.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. This is a distinct, maintainer-requested cleanup that current main does not contain. The prior review reported no findings, and this review found no definite patch defect. Telegram-specific live parity evidence remains the merge blocker.

Priority: P3
Reviewed head: 8a86f4ddbe5f32b78acf3d2215774878fd549f15

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The cutover is coherent and backed by extensive boundary validation, with Telegram-specific live parity still outstanding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The trusted-author contributor proof gate does not apply. The PR body reports prior-source registered Telegram tests, Matrix handler tests, a real Lark SDK DM loopback, and Gateway webhook tests; it expressly claims no live Telegram run, and the reviewed merge head has a different tree. The diff changes no stored-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The trusted-author contributor proof gate does not apply. The PR body reports prior-source registered Telegram tests, Matrix handler tests, a real Lark SDK DM loopback, and Gateway webhook tests; it expressly claims no live Telegram run, and the reviewed merge head has a different tree. The diff changes no stored-data contract.
Evidence reviewed 8 items Current main still has the earlier album path: The pinned main revision joins album captions and entity offsets with a local loop; the branch replaces that loop with the existing shared join helper, so this cleanup is not already on main.
Changed Telegram behavior boundary: The branch passes caption-bearing album messages to the existing text and entity join helper; that helper preserves message order and adjusts entity offsets.
Feishu identity cutover: The branch retains bot open-ID state and its revision bump while removing the in-memory bot-name map.
Findings None None.
Security None None.

How this fits together

OpenClaw’s channel plugins turn platform events into authorized agent turns and send agent replies back through each platform’s API. The changed helpers also serve Feishu document tools and channel directory lookups.

flowchart LR
A[Platform events] --> B[Channel plugin intake]
B --> C{Authorize and parse}
C --> D[Agent session]
D --> E[Reply planning]
E --> F[Platform APIs]
G[Agent tool calls] --> F
Loading

Before merge

  • Resolve merge risk (P1) - The Telegram album caption/entity and command/reply-context paths have prior-source boundary tests but no recorded Telegram Test Server parity observation for this refactor, as required by the scoped Telegram review guide.
  • Complete next step (P2) - Capture reviewed-head Telegram Test Server parity proof for album captions/entities and command/reply handling before merge.
Agent review details

Security

None.

PR surface

Source -459, Tests -65, Other 0. Total -524 across 63 files.

View PR surface stats
Area Files Added Removed Net
Source 50 319 778 -459
Tests 12 27 92 -65
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 3 0
Total 63 349 873 -524

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Prove Telegram parity (recommended)
    Capture a reviewed-head Test Server run covering an album with multiple caption entities and the affected command/reply path before merge.

Technical review

Best possible solution:

Keep the cutover to existing plugin owners while preserving authorization, message bytes, and stored-state contracts across all three channels.

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

Not applicable: this PR reports a behavior-preserving refactor rather than a bug. The changed paths are identifiable in source and covered by focused boundary tests.

Is this the best way to solve the issue?

Yes: reusing the existing join, identity, directory, and send owners is a narrow maintainable direction; Telegram platform parity remains to be observed.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is an internal cleanup with no claimed user-visible feature or reported production defect.
  • add merge-risk: 🚨 message-delivery: The branch changes Telegram album intake and channel reply plumbing, whose real platform parity is not established by the recorded tests.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The trusted-author contributor proof gate does not apply. The PR body reports prior-source registered Telegram tests, Matrix handler tests, a real Lark SDK DM loopback, and Gateway webhook tests; it expressly claims no live Telegram run, and the reviewed merge head has a different tree. The diff changes no stored-data contract.
  • add proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Album caption/entity processing and command context can affect visible Telegram replies, so a short Test Server scenario can check parity.

Label justifications:

  • P3: This is an internal cleanup with no claimed user-visible feature or reported production defect.
  • merge-risk: 🚨 message-delivery: The branch changes Telegram album intake and channel reply plumbing, whose real platform parity is not established by the recorded tests.
  • 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. Not applicable: The trusted-author contributor proof gate does not apply. The PR body reports prior-source registered Telegram tests, Matrix handler tests, a real Lark SDK DM loopback, and Gateway webhook tests; it expressly claims no live Telegram run, and the reviewed merge head has a different tree. The diff changes no stored-data contract.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. Album caption/entity processing and command context can affect visible Telegram replies, so a short Test Server scenario can check parity.

Evidence

What I checked:

  • Current main still has the earlier album path: The pinned main revision joins album captions and entity offsets with a local loop; the branch replaces that loop with the existing shared join helper, so this cleanup is not already on main. (extensions/telegram/src/bot-handlers.inbound-media.ts:317, ec101d561e2c)
  • Changed Telegram behavior boundary: The branch passes caption-bearing album messages to the existing text and entity join helper; that helper preserves message order and adjusts entity offsets. (extensions/telegram/src/bot-handlers.inbound-media.ts:334, 8a86f4ddbe5f)
  • Feishu identity cutover: The branch retains bot open-ID state and its revision bump while removing the in-memory bot-name map. (extensions/feishu/src/monitor.state.ts:27, 8a86f4ddbe5f)
  • Existing directory contract: The shared directory input already accepts nullable account, query, and limit values, supporting the branch’s direct Feishu adapter forwarding. (src/channels/plugins/directory-types.ts:9, ec101d561e2c)
  • Telegram review policy: The scoped Telegram guide calls for real Telegram proof when behavior-sensitive authorization or reply-context paths are touched; the PR body expressly claims no live-channel proof. (extensions/telegram/AGENTS.md:135, 8a86f4ddbe5f)
  • Proof source identity: The live PR body matches the captured 43,948-unit body hash. It reports extensive Testbox extension, build, and boundary checks, including a real Lark SDK loopback and Gateway webhook tests, but expressly makes no live Telegram claim.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add a redacted reviewed-head Telegram Test Server observation for multi-caption album entities and command/reply parity.

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 (1 earlier review cycle)
  • reviewed 2026-09-29T05:11:19.863Z sha 72c0fe9 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@steipete
steipete merged commit a4cd04d into main Sep 29, 2026
183 checks passed
@steipete
steipete deleted the deslop/l158-tg-matrix-feishu5 branch September 29, 2026 05:37
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 29, 2026
94 upstream commits, including the Telegram, Matrix and Feishu cleanup
(openclaw#160970), the removal of unused Feishu send test fixtures (openclaw#160913) and
hosted network access for the agentsapi plugin (openclaw#161004).

Four conflicts. Two are in Feishu code. In extensions/feishu/src/send.ts,
openclaw#160970 has sendMessageFeishu resolve its target from params and pass the
whole target to sendReplyOrFallbackDirect. That shape is kept. The target still
carries accountId from this branch's send-target.ts, so the table mode
keeps following the delivering account. In
extensions/feishu/src/reply-dispatcher.ts, openclaw#160970 inlined
markVisibleReplySent at six call sites. This branch moved those senders
into reply-senders.ts, which marks a visible reply through that callback,
so the helper and the createFeishuReplySenders call are kept. The inlined
assignments that merged cleanly elsewhere in the file behave the same.

The other two are generated, docs/.generated/config-baseline.counts.json
and docs/.generated/config-baseline.sha256. openclaw#161004 takes plugin from 4431
to 4436. This branch keeps channel at 3788 and core stays at 2475. Both
files came from upstream and were regenerated. build:docker ran in a
separate detached checkout of this commit outside the nested node_modules
install. Regenerating there changed those two files and nothing else,
giving the predicted counts, the upstream core and plugin hashes, this
branch's channel hash and a new combined hash. The three generated-file
checks pass there.

Upstream deleted 28 test files in this range. None of them were added or
changed by this branch.

Feishu: 107 files and 1858 tests in the extension project, 17 files and
311 tests in the database-workers project. Each is one lower than the
previous merge because openclaw#160913 removed a card edit test from send.test.ts
and openclaw#160970 removed a botName test from monitor.reaction.test.ts, neither
touched by this branch. The forwarder test and the routing guards pass,
431 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test,
tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets
against upstream/main, oxlint and oxfmt on the 43 changed code files all
pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
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: matrix Channel integration: matrix channel: telegram Channel integration: telegram merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. 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