Control Telegram group history context#89547
Conversation
|
Codex review: found issues before merge. Reviewed June 15, 2026, 1:54 PM ET / 17:54 UTC. Summary PR surface: Source +157, Tests +255, Docs +17, Generated 0. Total +429 across 16 files. Reproducibility: yes. from source: current main and v2026.6.6 include ambient group history by default, while this PR defaults unset configs to 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:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land only after maintainers explicitly approve the privacy-first unset default, or revise the PR so shipped unset upgrades preserve recent group history while Do we have a high-confidence way to reproduce the issue? Yes from source: current main and v2026.6.6 include ambient group history by default, while this PR defaults unset configs to Is this the best way to solve the issue? Unclear until maintainers choose the upgrade default; the owner-local implementation covers the right Telegram context paths, but the default flip is not a purely mechanical fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a0b16f37e835. Label changesLabel justifications:
Evidence reviewedPR surface: Source +157, Tests +255, Docs +17, Generated 0. Total +429 across 16 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
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
RelevanceThis PR addresses a Telegram group context poisoning concern where non-mention ambient messages from a shared Telegram group could be included as conversation history and later influence agent turns. The fix adds a configurable CompatibilityThe change is fully backward-compatible. The new ClawSweeperClawSweeper reviewed the PR and confirmed the fix is bounded, targeted, and follows OpenClaw architecture rules (config in the Telegram plugin, not core). The review's substantive ask — making the privacy-first default explicit in docs and PR body — was addressed. All ClawSweeper findings were resolved. Code Reviews CompletedMultiple code reviews were completed across the full changed surface: config schema and types, the new Checks Completed
Note: Three CI failures are pre-existing and unrelated to this PR: Abbreviations
|
62d0a28 to
8136c70
Compare
8136c70 to
ee1b297
Compare
83c2572 to
de68d19
Compare
* fix(telegram): control group history context * fix(telegram): keep history mode type local * fix(telegram): respect history mode during forum recovery
* fix(telegram): control group history context * fix(telegram): keep history mode type local * fix(telegram): respect history mode during forum recovery
* fix(telegram): control group history context * fix(telegram): keep history mode type local * fix(telegram): respect history mode during forum recovery
Summary
mention-only,recent, andnone.recentas an explicit opt-in.Changes
Body,InboundHistory, and room-event history migration onrecent.Validation
pnpm test extensions/telegram/src/config-schema.test.ts extensions/telegram/src/message-cache.test.ts extensions/telegram/src/bot.test.ts extensions/telegram/src/bot-message-context.require-mention.test.ts extensions/telegram/src/bot-message-dispatch.test.tspnpm test extensions/telegram/src/bot-message-dispatch.test.tspnpm config:channels:checkpnpm config:schema:checkpnpm tsgo:prodpnpm check:test-typespnpm test:extensions:package-boundary:compileReal Behavior Proof
recentkeeps explicit opt-in behavior.node --import tsx --input-type=module -e '<runtime harness invoking buildTelegramInboundContextPayload>'recentmode included the same prior line.