Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 14, 2026, 6:30 AM ET / 10:30 UTC. Summary PR surface: Source +194, Tests +264. Total +458 across 6 files. Reproducibility: yes. at source level: current code can finish Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the Telegram-local bounded reader, then add a redacted exact-head live Telegram smoke showing successful Do we have a high-confidence way to reproduce the issue? Yes at source level: current code can finish Is this the best way to solve the issue? Yes for the implementation shape: a Telegram-private helper preserves the existing byte limit and caller semantics without expanding core or Plugin SDK contracts. Merge readiness remains incomplete until the required live Telegram smoke is supplied. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 20f145f9c1ab. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +194, Tests +264. Total +458 across 6 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Alix-007 <[email protected]>
# Conflicts: # CHANGELOG.md # docs/.generated/plugin-sdk-api-baseline.sha256
|
Land-ready at Maintainer work:
Runtime-head proof at
Proof gap: the documented |
|
Merged via squash.
|
* fix(telegram): bound stalled diagnostic response reads * test(telegram): type timeout cancellation mock * style(telegram): apply oxfmt to diagnostic response timeout files * fix(telegram): share diagnostic body deadlines Co-authored-by: Alix-007 <[email protected]> * chore: leave release notes release-owned --------- Co-authored-by: Peter Steinberger <[email protected]>
* fix(telegram): bound stalled diagnostic response reads * test(telegram): type timeout cancellation mock * style(telegram): apply oxfmt to diagnostic response timeout files * fix(telegram): share diagnostic body deadlines Co-authored-by: Alix-007 <[email protected]> * chore: leave release notes release-owned --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where Telegram diagnostics and membership audits could keep waiting after the Bot API returned response headers but then stalled or only trickled the response body.
Why This Change Was Made
Telegram Bot API diagnostic body reads now use a Telegram-local bounded reader with the existing byte cap, a per-chunk idle timeout, and an overall body deadline. The change covers
getMe, best-effortgetWebhookInfo, and membership-auditgetChatMemberreads without changing fetch/header timeout or webhook best-effort semantics.User Impact
Telegram setup checks and membership audits now fail or degrade on a bounded deadline instead of appearing to spin forever on a stuck response body.
Evidence
node scripts/run-vitest.mjs extensions/telegram/src/response-body-timeout.test.ts extensions/telegram/src/probe.response-body-timeout.test.ts extensions/telegram/src/probe.test.ts extensions/telegram/src/audit.test.ts(22 tests passed)git diff --check upstream/main..HEADExact-head controlled-network proof
Exact head:
f174acb7b443a366fed7048448884d226dab886f.Command:
The temporary harness was removed after the run. It called production
probeTelegram()andauditTelegramGroupMembership()through the production Telegram undici transport, routing only the Bot API root to a loopbacknode:httpserver. It used a redacted fake token, no mocked adapter, no real Telegram traffic, and no credentials.Redacted transcript:
Observed: header, partial-body, and slow-trickle failures return within the harness budget and close their sockets; a later normal diagnostic succeeds; webhook body failure remains best-effort; membership audit fails boundedly and then recovers on a normal response. All assertions passed; exit 0.
Known limits: this is controlled local Bot API transport proof, not live Telegram. The 300 ms caller budget is for the proof harness and is not the production default. The exact command referenced a temporary uncommitted harness that has been removed.
Current-head CI follow-up
Current merge head after the ordinary GitHub
update-branch:60fa08969d9b011d0996572770d4992eeea4d0ff. Contributor fix commit:dd69ccd53f046e6ee6472fe5576b48a15646fd87.Secretless GitHub CI: https://github.com/openclaw/openclaw/actions/runs/29244735197
check-test-types: passed; the earlier TS2493 inextensions/telegram/src/response-body-timeout.test.tsis fixed by typing the cancellation mock's optional reason argument.check-prod-types,check-additional-extension-bundled,checks-node-compact-small-2, and all Node test shards: passed.check-lintstill fails only insrc/gateway/server-lanes.tsandsrc/agents/session-suspension.ts, both inherited from the mergedmainsnapshot and outside this PR's Telegram diff.check-dependenciesstill fails on the inherited stale dead-export baseline entrysrc/config/sessions/types.ts: QuotaSuspension, outside this PR's Telegram diff.Known limits: the controlled local Bot API proof above was run at
f174acb7b443a366fed7048448884d226dab886fand is not presented as a live Telegram run or as rerun at this merge head. The contributor follow-up changes only test mock typing; no credentialed local/Testbox execution was used.