Skip to content

refactor(telegram): receive webhooks on Gateway routes - #158732

Merged
steipete merged 7 commits into
mainfrom
hostneutral/http-ingress-03-telegram
Sep 26, 2026
Merged

steipete merged 7 commits into
mainfrom
hostneutral/http-ingress-03-telegram

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: #157553

What Problem This Solves

Telegram webhook mode owns a separate HTTP server, duplicating listener lifecycle and preventing callbacks from using the Gateway's registered HTTP routes.

User Impact

Telegram callbacks can use the Gateway port. Existing webhook installs keep their old effective endpoint, including the implicit 127.0.0.1:8787 default and exact legacy /healthz response. After pointing the external callback or reverse proxy at the Gateway route and verifying delivery, operators can set legacyWebhook: false to close the old port. Polling is unchanged.

Why This Change Was Made

The Telegram handler registers with the Gateway route owner and shares its handoff and request lifetime. The Gateway compatibility listener forwards old-port traffic into that same handler. Telegram retains its secret verification before reading bodies, failed-auth-only limiter, raw callback-path semantics, legacy proxy attribution, durable acknowledgement, and admitted-request shutdown behavior. Named runtime storage shares registered targets across duplicate module copies without crossing SDK instance boundaries.

This deletes Telegram's private server, bind/listen helper, listener shutdown, and server-shaped test fixtures. Tests use a shared registered-route fixture. The plugin keeps its externally configured webhookUrl and calls setWebhook with that URL; retaining the effective listener makes existing proxy mappings continue to work. Canonical-route conflicts give actionable guidance before opting out.

The plugin-owned Doctor transform moves explicit webhookPort/webhookHost values into legacyWebhook. The shared Doctor writer still owns backups and persistence, and startup uses the existing approved-transform path. Current canonical settings, including false, win. Implicit defaults are runtime-derived; Doctor only explains the Gateway route and opt-out. No eligibility guess, receipt migration, implicit-default removal date, storage schema change, or ingress-spool change is included. The small shared port-migration helper is used by this slice and subsequent channel slices.

Evidence

Blacksmith Testbox lease tbx_01m3e42gap1xnz7hdtze8smgg1, run 36221849561: frozen install, canonical channel/schema/docs generation, and 415 focused cases across 10 files passed. The duplicate-module regression failed on the old code with 401 instead of 200, then passed on the candidate. Tested source tree ecfc25e83803db5669c7c7e405c009c469b438c9 matches generated-output commit 7d82b03dec692b4eb3d57667f9176c362afd7933. The later rebase onto the listener-owner head preserves all four patches; main's ingress-identity reset remains intact.

Measured pnpm test <file> --maxWorkers=1 wall costs: webhook 29.446 s (111 cases), routing 15.945 s (16), Doctor 14.897 s (41), accounts 16.618 s (18), schema 1.687 s (29), shared migration 1.309 s (6), channel Doctor 14.980 s (16). Supporting schema/metadata/Doctor-flow suites passed 178 cases; the unchanged full Doctor-flow suite costs 45.579 s including its shared fixture and startup.

pnpm plugin-sdk:surface:check and pnpm plugin-sdk:check-exports passed. Public surface remains 4,580 exports / 2,688 callables; five local-only helpers are added. Exact base/head API diff passed in 270.759 s, with the intended Telegram config and Doctor contract changes and no removed exports. The Node request/response handler contract is unchanged.

pnpm build passed in 437.339 s; pnpm check:docs passed in 50.137 s. Telegram's isolated import profiler completed successfully at 166.1 MiB maximum RSS. That profile is screening evidence: build-info still names the pre-generation commit, although the effective source tree is identical to the generated-output commit. It is not represented as native-qualified profile evidence.

Deslop and independent Codex reviews are clean after preserving the shipped health, proxy/auth-limit and duplicate-module contracts. Final real-Gateway proof runs after the complete stack merges: all four channels, signed/invalid callbacks, defaults/opt-out, explicit Doctor backups, health-checked proxies, compressed Teams callbacks, restart/shutdown, and the published updater cell. This PR's focused proof is isolated channel-boundary evidence, not live Telegram Test Server evidence.

Candidate integration rehearsal on prepared stack 05d0af090da333cef44930986106b8b7c4cea944 (not merged main): Blacksmith Testbox lease tbx_01m3eaktnkepydcc70cvg93mhe, run 36227573437, node /tmp/http-ingress-candidate-rehearsal-05-harness/run.mjs --diagnose-restart, 86.277 s, passed. The harness invokes pnpm openclaw gateway run --allow-unconfigured with isolated home/state and synthetic vendor fixtures. All four channels accepted valid callbacks and rejected bad signatures with 401 on Gateway and legacy ports, on both starts. Telegram/Feishu/Nextcloud returned durable-admission headers; Teams reached its real message handler with each unique synthetic message. Health-checked Telegram/Nextcloud proxies and gzip/deflate/br Teams callbacks passed. Bad Teams audience, issuer and service-URL claims were rejected. Doctor classified all four listener notes as informational and left implicit keys absent. Both shutdowns were graceful (576/776 ms); the independent census found no remaining owned sockets/processes. Fifteen evidence files are captured and hash-verified. This rehearsal does not replace the required full merged-main opt-out/explicit-migration and published-updater cells.

Observed listener census used one Gateway PID for 127.0.0.1:3000, *:3978, 127.0.0.1:8787, 0.0.0.0:8788, and Gateway 127.0.0.1:24891 / [::1]:24891. No other Gateway-owned listening port appeared. The Gateway port served all four registered paths.

The Telegram Test Server userbot prerequisites are unavailable on this lease: uv is absent, all existing Convex launchers (including offline npx) report UNAVAILABLE, and the broker environment pair is absent. No credential was leased, and no authentication or installation was attempted. The above is isolated signed-webhook evidence, not live Test Server delivery.

Size

Production +455 / -249 / net +206. Tests and helpers +1125 / -366 / net +759. Docs +82 / -10 / net +72. Generated production +5 / -5 / net 0. Growth preserves the shipped callback contract and shared-account handoff while removing the private listener; it is within the coordinator-approved design.

HTTP Ingress Stack

  1. HTTP admission preparation: merged as e693324ad36f.
  2. Gateway compatibility listener: merged as 11a11ef164d7.
  3. Telegram routes: merged as 84d71bf32329.
  4. Feishu routes: merged as 5b5712e68db8.
  5. Microsoft Teams routes: merged as 8864423309d3.
  6. Nextcloud Talk and final proof: merged as 5fd7c3d95e03.
  7. Worker diagnostic JSON repair: merged as c5b1eee71843.

This PR now targets main after the owner merged. Current head e0adfaed2439822bf599b4ce9ba537aa234b72f5 integrates main 002288fc669c50b21e6852ecb9509ca12097b6c6 and the verified SDK/type/lint corrections; native prepare/auto-merge runs against main. Each channel is rebased after its predecessor merges. At most two slices are open, and native auto-merge waits for the enforced GitHub gate. Final merged-main proof will be recorded on the last slice.

Final dead-code audit: removed private-listener symbols have no remaining references across src, extensions, packages, test, ui and apps. The retained legacy limiter and proxy adapter have active callers and preserve the shipped wire contract; no additional deletion was warranted.

Prior stacked candidate e0c536d0eb81e374abbccdd6c4eed34204e19f97 is rebased onto owner d222786cbc9f8f7507c864b7dc001c63d8ec6048; all four Telegram commits are patch-identical to reviewed cb0dea59251. Blacksmith Testbox lease tbx_01m3em1agscwth7apgm3gxdkbt, run 36235802177, verified the exact head/tree and 45 input hashes after each phase. Frozen install passed in 2.861 s. pnpm test <file> --maxWorkers=1 passed 236 cases across seven files: webhook 110 / 31.711 s; routing 16 / 16.909 s; Doctor 41 / 14.602 s; accounts 18 / 16.837 s; config schema 29 / 1.711 s; SDK legacy migration 6 / 1.353 s; shared channel Doctor 16 / 14.980 s. Prior full suite, SDK/build/docs and completed Codex review remain attributed to their original heads; relevant production inputs are byte-identical to reviewed cb0.

SDK source compatibility correction: the v2026.9.6 optional TelegramAccountConfig.webhookPort and .webhookHost properties remain as deprecated TypeScript inputs, tracked by channel-webhook-listener-config-inputs until the next Plugin SDK major. Runtime schemas and readers remain canonical; Doctor still removes stored old keys. The existing Doctor fixtures now use satisfies OpenClawConfig. On retained Blacksmith Testbox lease tbx_01m3em1agscwth7apgm3gxdkbt, the old candidate rejects those actual literals with TS2561/TS2353; restored types compile clean in 29.726 s. Doctor passed 41 cases in 20.494 s; registry passed 12 cases in 2.302 s; focused docs checks passed. Fresh incremental Codex review is scoped-clean P0–P2. Committed correction: 3b4b23f54f5a6149bfe8942470a2d1a15f6557ae. Its SDK surface/export checks passed, and canonical base/head API diff passed in 258.763 s with no removed export or entrypoint; both old optional fields remain. Two incidental reachable declaration renderings come from source-identical session modules.

Final head integration: main's #158860 retires encoded ingress directories. This slice preserves its production {stateDir, accountId} API and adapts only HTTP test fixtures to supply both values before per-test overrides. The duplicate-module test retains its explicit public URL. No journal owner implementation is edited. Retired scope references were checked across all shards.

On exact e0adfaed2439822bf599b4ce9ba537aa234b72f5, Blacksmith Testbox lease tbx_01m3evphydkwkf37rb027e791d, run 36242669167: frozen install passed (2.199 s); pnpm test extensions/telegram/src/webhook.test.ts --maxWorkers=1 passed 110 cases (35.467 s); routing passed 16 cases (17.699 s); pnpm tsgo:extensions:test passed (85.443 s); canonical extension lint passed all 17 changed Telegram files (205.554 s, including package-boundary preparation). Head/tree and 52 source hashes remained exact after each phase. Fresh full-branch Codex re-review is scoped-clean P0–P2. Unchanged Doctor/SDK/docs proof retains its original revision attribution. Exact-head CI run 36245711479 is attached.

Owned CI failures were corrected at their source: run 36239178348 found a widened boolean table value and two overly narrow logger mocks; run 36242095200 found a mutating reverse call and shadowed Promise callbacks. Literal typing, runtime-compatible log argument narrowing, toReversed() on the fresh hop array, and distinct callback names fix them without weakening assertions or changing transport behavior. The matching type and lint lanes now pass remotely. Each correction passed Codex review.

Final merged-main proof passed on a6b5ed882cb5e7a10e9346d0e1152878a55653a4: all four channels on Gateway and legacy routes, signature rejection, persistent opt-out, Doctor backups/migrations, health-checked proxies, compressed Teams callbacks and clean shutdown. The actual published 2026.9.6 updater also passed after the separate worker-output repair. Exact commands, Testbox lease IDs, socket matrices, limits and observed results are recorded in the Nextcloud Talk and worker-output PRs linked above.

@clawsweeper

clawsweeper Bot commented Sep 26, 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 docs Improvements or additions to documentation channel: telegram Channel integration: telegram gateway Gateway runtime commands Command implementations size: XL labels Sep 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 26, 2026
@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 10:01 AM ET / 14:01 UTC (Revision 8).

ClawSweeper review

What this changes

The branch moves Telegram webhook reception onto Gateway HTTP routes, retains forwarding on the old port, migrates explicit listener settings through Doctor, and updates tests and documentation.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this PR open. The merged Gateway listener foundation does not move Telegram reception, and current main still uses Telegram’s private server. This branch is a distinct, coherent part of the open HTTP ingress work.

Priority: P2
Reviewed head: e0adfaed2439822bf599b4ce9ba537aa234b72f5

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The route cutover and focused coverage are coherent, but live Telegram and published-updater compatibility proof remain merge gates.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 10 items Current main still uses a private Telegram server: The fetched main implementation creates a Telegram-owned HTTP server and has no Gateway route registration in this path.
Introduced Gateway route cutover: The pinned merge-base-to-head patch registers Telegram’s handler with the Gateway route owner and retains an optional compatibility listener.
Request authentication boundary: The route filters live targets, selects one by a constant-time secret comparison, rejects absent or ambiguous matches before reading the body, and only then calls the target handler.
Findings None None.
Security None None.

How this fits together

Telegram’s webhook plugin receives Bot API callbacks through an HTTP listener. It checks the webhook secret, commits accepted updates to durable ingress, and lets downstream agent processing handle them.

flowchart LR
  A[Telegram callback] --> C[Gateway HTTP route]
  B[Legacy port] --> C
  C --> D[Path and secret check]
  D --> E[Durable ingress queue]
  E --> F[Agent processing]
  G[Old listener settings] --> H[Doctor migration]
  H --> B
Loading

Before merge

  • Resolve merge risk (P1) - Existing installations with explicit webhookPort or webhookHost depend on Doctor migrating stored config before the strict new schema is used. A published-updater run showing backup, restart, old-port delivery, and rollback has not been demonstrated.
  • Resolve merge risk (P1) - The Gateway rehearsal uses synthetic callbacks; the scoped Telegram transport policy still requires Test Server userbot delivery through the changed route and retained legacy path.
  • Complete next step (P2) - Add redacted Telegram Test Server delivery evidence for the Gateway and retained old-port paths, then demonstrate a published-updater upgrade of explicit webhookPort/webhookHost settings with backup, restart, and rollback. After updating the PR body, request @clawsweeper re-review through a maintainer if a fresh review does not start automatically.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +206, Tests +759, Docs +72, Generated 0. Total +1037 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 18 455 249 +206
Tests 10 1125 366 +759
Docs 5 79 7 +72
Config 0 0 0 0
Generated 3 8 8 0
Other 0 0 0 0
Total 36 1667 630 +1037

Review metrics

Metric Value Why it matters
Configuration transition 1 new setting; 2 deprecated inputs Operators gain legacyWebhook while webhookPort and webhookHost require Doctor migration.
Production versus test growth production +206 net; tests and helpers +759 net The stated production growth supports the route cutover and retained listener contract; most net growth is validation.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/telegram/src/doctor-contract.ts, migration/backfill/repair: extensions/telegram/src/doctor.ts, migration/backfill/repair: src/commands/doctor-config-flow.ts, migration/backfill/repair: src/plugin-sdk/legacy-webhook-listener-migration.ts, migration/backfill/repair: src/plugin-sdk/runtime-doctor-migrations.ts, migration/backfill/repair: src/plugins/compat/registry-records.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #157553
Summary: The open umbrella issue tracks four channel migrations; this PR is its Telegram implementation slice.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete the transport and upgrade proof (recommended)
    Show Telegram Test Server delivery on both paths and run the published updater against copied explicit old settings with backup, restart, and rollback observations.

Technical review

Best possible solution:

Use one Gateway route owner with Telegram-local secret checks and durable admission, while preserving old listener settings through Doctor and retaining the documented opt-out.

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

Not applicable as a bug reproduction: this is a transport migration. Current-main source clearly shows the separate Telegram HTTP server that the PR replaces.

Is this the best way to solve the issue?

Yes, the existing Gateway route and compatibility-listener owner is the appropriate boundary, with Telegram retaining secret verification and durable admission. Its upgrade and live-service behavior still need the required proof.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded Telegram transport improvement with upgrade and delivery proof still needed.
  • merge-risk: 🚨 compatibility: Strict config admission now depends on migrating existing listener keys before an upgraded Gateway starts.
  • merge-risk: 🚨 message-delivery: Callbacks move to Gateway routing, and live Telegram delivery across both ports remains unproven.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The changed Telegram webhook transport must be shown delivering a real chat update through its new Gateway path.

Evidence

What I checked:

  • Current main still uses a private Telegram server: The fetched main implementation creates a Telegram-owned HTTP server and has no Gateway route registration in this path. (extensions/telegram/src/webhook.ts:442, b4bcfe29678a)
  • Introduced Gateway route cutover: The pinned merge-base-to-head patch registers Telegram’s handler with the Gateway route owner and retains an optional compatibility listener. (extensions/telegram/src/webhook.ts:488, e0adfaed2439)
  • Request authentication boundary: The route filters live targets, selects one by a constant-time secret comparison, rejects absent or ambiguous matches before reading the body, and only then calls the target handler. (extensions/telegram/src/webhook.ts:179, e0adfaed2439)
  • Stored configuration transition: Doctor moves explicit webhookPort and webhookHost values to legacyWebhook and removes the old keys; the new strict runtime schema accepts legacyWebhook. (src/plugin-sdk/legacy-webhook-listener-migration.ts:47, e0adfaed2439)
  • Deprecated source inputs retained: TelegramAccountConfig retains the two old optional TypeScript inputs as deprecated properties, while the runtime schema uses the new field. (src/config/types.telegram.ts:113, e0adfaed2439)
  • Upgrade proof requirement: Repository policy requires a published updater running against the candidate for changes to Doctor or config migration; the PR body schedules that cell for later and does not report its result. (AGENTS.md:83, e0adfaed2439)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: 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.

  • Capture redacted Telegram Test Server delivery through the Gateway route and retained old port.
  • Show a published-updater upgrade of explicit old listener settings, including backup, restart, and rollback.

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 (7 earlier review cycles)
  • reviewed September 26, 2026, 3:53 AM ET / 07:53 UTC sha unknown :: blocked before merge. :: [P1] Preserve the shipped Telegram config fields through a versioned transition
  • reviewed 2026-09-26T09:59:04.967Z sha cb0dea5 :: blocked before merge. :: [P1] Preserve the shipped Telegram config fields through a versioned transition
  • reviewed 2026-09-26T11:11:49.278Z sha e0c536d0eb81e374abbccdd6c4eed34204e19f97 :: blocked before merge. :: [P1] Preserve the shipped Telegram config fields through a versioned transition
  • reviewed 2026-09-26T11:47:42.548Z sha 5a5b3f0 :: blocked before merge. :: [P1] Preserve the shipped Telegram webhook config fields
  • reviewed 2026-09-26T12:18:01.832Z sha 3b4b23f54f5a6149bfe8942470a2d1a15f6557ae :: blocked before merge. :: none
  • reviewed 2026-09-26T12:37:12.891Z sha c9dcccb :: blocked before merge. :: none
  • reviewed 2026-09-26T13:11:15.351Z sha c06fbf2ad5b9b257f7d116efb4476c53817e0092 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 26, 2026
@steipete
steipete force-pushed the hostneutral/http-ingress-02-route-owner branch from 1d84013 to d222786 Compare September 26, 2026 10:25
@steipete
steipete force-pushed the hostneutral/http-ingress-03-telegram branch from cb0dea5 to e0c536d Compare September 26, 2026 11:04
@clawsweeper clawsweeper Bot removed the proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. label Sep 26, 2026
Base automatically changed from hostneutral/http-ingress-02-route-owner to main September 26, 2026 11:27
@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

Current revision: e0adfaed2439822bf599b4ce9ba537aa234b72f5

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 26, 2026
@steipete
steipete force-pushed the hostneutral/http-ingress-03-telegram branch from e0c536d to 5a5b3f0 Compare September 26, 2026 11:33
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 26, 2026
@clawsweeper clawsweeper Bot added proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 26, 2026
@steipete
steipete force-pushed the hostneutral/http-ingress-03-telegram branch from 3b4b23f to c9dcccb Compare September 26, 2026 12:29
@steipete
steipete force-pushed the hostneutral/http-ingress-03-telegram branch from c06fbf2 to e0adfae Compare September 26, 2026 13:36
@steipete
steipete merged commit 84d71bf into main Sep 26, 2026
203 checks passed
@steipete
steipete deleted the hostneutral/http-ingress-03-telegram branch September 26, 2026 14:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Sep 26, 2026
158 upstream commits, none in extensions/feishu. Two conflicts, both
generated: docs/.generated/config-baseline.sha256 and
src/config/bundled-channel-config-metadata.generated.ts. Upstream's
Telegram webhook change (openclaw#158732) moved the channel schema while this
branch moves it for Feishu. Both files came from upstream and were
regenerated.

config-baseline.counts.json auto-merged without a conflict but was wrong:
each side took the channel count from 3740 to 3742 for its own entries, so
git kept 3742. The real count with both sides is 3744, and the
regenerated file says so.

build:docker ran in a separate detached checkout of this commit outside the
nested node_modules install. Regenerating there changed the three files
above and nothing else, giving core 2463, channel 3744, plugin 4349 as
predicted, a channel hash neither side had, and upstream's core and plugin
lines. The three generated-file checks pass there. The lockfile moved, so
dependencies were reinstalled.

Feishu: 105 files and 2168 tests in the extension project, 16 files and 348
tests in the database-workers project. The forwarder test and the routing
guards pass, 2011 tests, fewer than before because upstream removed tests
from test-projects.test.ts (openclaw#158663). tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, and the line-cap, max-lines and
assertion-safety ratchets against upstream/main pass, and oxlint and oxfmt
pass on the changed code files.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
* refactor(telegram): serve webhooks through Gateway routes

* fix(telegram): preserve legacy webhook health and auth limits

* fix(telegram): share webhook targets across module copies

* chore(telegram): regenerate webhook config documentation

* fix(telegram): retain deprecated webhook config input types

* test(telegram): match webhook fixture types to runtime contracts

* fix(telegram): satisfy webhook transport lint contracts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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