Repository navigation
fix(telegram): log inbound gateway watch messages - #71713
Conversation
0180541 to
ccd5278
Compare
Greptile SummaryAdds a Confidence Score: 5/5This PR is safe to merge — it adds observability-only logging with no routing, auth, or dispatch changes. The change is tightly scoped: a single info-level log line emitted after context acceptance, using the same no-content shape as other gateway channel logs. The mock setup correctly uses vi.hoisted + vi.mock so the module-level singleton picks up the test mock on dynamic import. All new behavior is covered by three focused tests. No logic, auth, or data-flow changes were made. No files require special attention. Reviews (1): Last reviewed commit: "fix(telegram): log inbound gateway watch..." | Re-trigger Greptile |
|
Codex review: needs maintainer review before merge. Summary Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Real behavior proof Next step before merge Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 270421f3dac6. |
b5bc403 to
a600bac
Compare
a600bac to
42036ed
Compare
42036ed to
860116e
Compare
860116e to
2d2b2ed
Compare
|
Landed via rebase onto main.
Thanks @rubencu! |
Summary
gateway:watch, but accepted Telegram inbound messages did not emit the same normal watch-level summary.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
extensions/telegram/src/bot-message.test.tscovered dispatch/no-context behavior but did not assert gateway-watch observability.gateway:watchoutput for WhatsApp and Telegram inbound messages.Regression Test Plan (if applicable)
extensions/telegram/src/bot-message.test.tsUser-visible / Behavior Changes
Telegram inbound messages now appear in normal gateway watch logs once OpenClaw accepts them for dispatch. The log includes sender/target identifiers, chat type, optional media content type, and character count; it does not include message content.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
gateway:watchactive.Expected
Actual
Evidence
Local validation:
pnpm docs:listpnpm test extensions/telegram/src/bot-message.test.tspnpm format:check extensions/telegram/src/bot-message.ts extensions/telegram/src/bot-message.test.tsgit diff --check origin/main...HEADOPENCLAW_OXLINT_SKIP_LOCK=1 pnpm check:changedafter removing the manual changelog entry and amending the commit (lanes:extensions,extensionTests; 95 files and 1411 tests passed)codex review --base origin/maincompleted locally with no discrete correctness findings before opening this PRHuman Verification (required)
What I personally verified (not just CI), and how:
pnpm build && pnpm check && pnpm testsweep.Review Conversations
No GitHub bot review conversations exist yet. Local
codex review --base origin/mainreported no actionable findings.Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations
AI-Assisted Disclosure
gateway:watchinbound logs compared with WhatsApp, then requestedcodex review --base origin/main, commit, fork push, and PR creation. The manual changelog entry was removed after user correction because changelog is not edited manually.codex review --base origin/mainwas run locally and there were no findings to address.