Skip to content

fix(telegram): route poll answers into sessions - #95830

Merged
obviyus merged 2 commits into
openclaw:mainfrom
clawSean:fix/telegram-poll-answer-routing-v2
Aug 5, 2026
Merged

obviyus merged 2 commits into
openclaw:mainfrom
clawSean:fix/telegram-poll-answer-routing-v2

Conversation

@clawSean

@clawSean clawSean commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #89573.

What Problem This Solves

OpenClaw could send Telegram polls, but a vote on a public poll produced no agent turn. Telegram's poll_answer update contains the poll id and voter selection, but omits the originating chat and forum-topic route.

Root Cause and Canonical Fix

The Telegram plugin discarded the send-time origin and treated poll answers outside the normal inbound message pipeline. The fix now:

  • records the returned poll id, resolved chat, topic, question, and options at the public-poll send boundary;
  • stores that bounded route in shared plugin-state SQLite under telegram.poll-registry;
  • prepares the recovered or provisional route synchronously before Telegram sequentialization so votes share the normal chat/topic lane;
  • authorizes the voter, then sends a synthetic service message through the canonical Telegram inbound turn pipeline;
  • requires current origin-group membership even when the voter remains on an operator allowlist;
  • treats channels as an unsupported poll-answer route instead of storing an unreadable route and claiming success;
  • checks the target's effective group/topic inbound policy before claiming answer routing is enabled;
  • records registry-read failures as retryable durable-ingress outcomes;
  • persists the prepared route with the durable vote, so a later same-topic message cannot overtake it;
  • fences an immediate vote inside only its recovered chat/topic lane while outbound verification and route persistence finish, leaving unrelated admission and delivery unblocked;
  • returns unknown poll ids after one registry lookup, so they cannot hold unrelated Telegram updates in serialized admission;
  • skips retractions and identity-less/bot voters before registry lookup;
  • retires closed-poll routes after a 48-hour durable-replay grace, reclaiming registry capacity without expiring active polls.

Unknown polls, retractions, bot votes, identity-less voter_chat answers, and unauthorized forwarded-poll voters remain intentional non-outcomes. Polls remain anonymous by default; the tool schema and result now explain that public polls are the opt-in for agent-routed votes.

Operator Behavior

Direct-chat public polls enable answer routing immediately. Telegram only guarantees getChatMember for other group members when the bot is an administrator, so group public-poll routing is enabled only after that prerequisite is confirmed. Each vote also proves that the voter is still a current member of the origin group. Disabled group/topic targets, channel poll routes, and anonymous polls return unavailable instead of promising an inbound turn that cannot occur. The poll still sends when routing cannot be enabled, but the message-tool result returns pollAnswerRouting: "unavailable" with a concrete operator action instead of failing silently or resending the poll.

This is the best owner-boundary fix: origin is recorded where Telegram still exposes it, authentication remains in Telegram ingress, and the resulting vote follows the same session, reply, delivery, and ordering path as a normal inbound message. The temporary public async admission hook was removed; no core policy, JSON sidecar, parallel session resolver, or new configuration surface was added.

Evidence

  • Exact head: ef3ffac7337887ae6b83e4c2651b05a1b79e0031; branch base: a1d20ae31bc57e327747ed99493faaf86339ada9.
  • Focused Telegram lifecycle/middleware/handler tests: 5 files, 501 tests passed. Telegram transport/drain coverage passed 520/520, the durable coalescing harness passed 5/5, and the shared ingress monitor passed 23/23.
  • Exact-head local CI shards passed: production tsgo, test tsgo, full Oxlint, all 125 plugin package-boundary compiles, formatting, plugin boundaries, SDK surface, dead exports, and git diff --check. The remote check runner was unavailable during the first changed-gate attempt, so the repository-mandated local fallback produced this evidence.
  • Final authorization/routing pass: 234 focused tests passed, including five disabled account/group/topic cases and Telegram's omitted General-topic thread id; production/test tsgo, focused Oxlint, dead exports, and git diff --check passed.
  • Final review-fix pass: 522 focused ingress/Telegram tests passed, including route-local pending registration, unrelated admission and delivery, same-topic order, one-lookup unknown answers, anonymous result guidance, message-tool schema guidance, and exact bot-creation state fixtures; production/test tsgo, focused Oxlint, and git diff --check passed.
  • Maintainer review passes: structural simplification, performance/allocation audit, and independent correctness/security review rounds; final autoreview was clean at 0.99.
  • Real Telegram userbot proof, direct chat: a real user received public poll Bot API message 497, selected Yes, Telegram emitted the vote, the gateway created a new inbound agent request containing Poll response to "Ready?": Yes, and the bot replied POLL_VOTE_RECEIVED as message 499.
  • Real Telegram userbot proof, forum: in topic 48125, the bot sent poll 48127; the real user selected Yes; the vote-triggered reply 48130 remained in topic 48125. The temporary topic was deleted after proof.
  • Both runs observed exactly three provider requests: create poll, tool result, vote-triggered turn. No gateway error or retry occurred.
  • Discord regression proof also passed on the same head: a leased QA driver received the exact OPENCLAW_E2E_OK reply from an ephemeral gateway built from this checkout.

The exact-head regression pass also resolves the prior review questions without production shims: synthetic poll turns inherit durable replay from the canonical AsyncLocalStorage frame and produce a completed deferred participant; grammY's pinned sendPoll contract uses message_thread_id for forum supergroups and private bot topics and explicitly disallows channel direct-message chats. The existing direct-topic session test and the new durable replay test cover those contracts.

{
  "channel": "telegram",
  "head": "ef3ffac7337887ae6b83e4c2651b05a1b79e0031",
  "environment": "ephemeral gateway + mock provider + real Telegram Bot API + real TDLib user",
  "scenarios": [
    "direct-chat public poll -> real user vote -> originating agent turn",
    "forum-topic public poll -> real user vote -> same-topic agent turn"
  ],
  "directPollBotApiMessageId": 497,
  "directReplyBotApiMessageId": 499,
  "forumTopicId": 48125,
  "forumPollBotApiMessageId": 48127,
  "forumReplyBotApiMessageId": 48130,
  "selectedOption": "Yes",
  "agentObserved": "Poll response to \"Ready?\": Yes",
  "visibleReply": "POLL_VOTE_RECEIVED",
  "providerRequestCount": 3,
  "verdict": "pass"
}

Scope Metrics

  • Production: +783 / -100 lines. Net growth is the concrete transport capability, durable route owner/lifecycle, authorization boundary, route-local registration fence, and operator-visible failure contract; the old direct-spool production path, unknown-vote delay, and public async admission hook were deleted.
  • Tests and test harnesses: +1423 / -24 lines. Coverage includes direct chat, current group membership, disabled target policy, channel rejection, group authorization, forum topics, forwarded polls, no-op filtering, route retirement, immediate-vote races, unrelated admission during registration, unknown-vote admission, durable retry/adoption, same-session ordering, transport admission, and tool-result warnings.
  • Config/default surfaces: 0 added, 0 changed, 0 removed.
  • Dependencies, schema versions, protocol versions, docs, generated files: unchanged.

Redundancy

#89573 is the canonical issue. #95309 is the stale broader sidecar/migration alternative; #72501 is its closed predecessor. This PR uses the current plugin-state and compositional Telegram handler seams.

AI Assistance

Implementation and review were assisted by AI tooling. Maintainer review verified the current send, authorization, session, durable-ingress, storage, and Telegram API contracts before publication.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: L labels Jun 22, 2026
@clawSean

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis verify this PR on Telegram Desktop.

Please generate before/after GIF evidence for Telegram poll_answer routing on current PR head 4f19c68b5993613ea3c5fdb17f9e1c1c0a0bd796.

Scenario:

  • Send a public/non-anonymous Telegram poll through OpenClaw into the proof chat.
  • Vote from Telegram Desktop as a real Telegram user.
  • Verify baseline/main shows the vote being ignored with no routed agent/session follow-up.
  • Verify this PR routes the vote into the originating session and produces the visible/session response with the selected option/context.

This PR already has source-level and changed-lane local proof in the PR body; the remaining proof gap is Telegram Desktop visible proof for the real transport path.

@clawsweeper

clawsweeper Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 5:10 AM ET / 09:10 UTC.

ClawSweeper review

What this changes

The PR stores routes for public Telegram polls and delivers authorized poll votes to the originating direct-chat or topic agent session.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: current main accepts poll-answer updates but has no route persistence or handler, while the exact head supplies the missing Telegram-owned path with strong live proof and no verified patch defect. A maintainer should explicitly sponsor the new public-poll agent-turn behavior before merging.

Priority: P1
Reviewed head: ef3ffac7337887ae6b83e4c2651b05a1b79e0031
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The PR has strong live behavior evidence and extensive focused coverage, with only the intended public-poll product semantics awaiting maintainer acceptance.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes exact-head real Telegram Bot API and TDLib-user evidence for direct-chat and forum-topic votes reaching the correct session and producing a visible reply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes exact-head real Telegram Bot API and TDLib-user evidence for direct-chat and forum-topic votes reaching the correct session and producing a visible reply.
Evidence reviewed 5 items Current-main gap: Current main sends a poll and returns its poll ID without retaining its chat/topic route, while handler composition registers no poll-answer handler; an unhandled update finishes without creating a turn.
Exact-head owner-boundary fix: The PR records the route at poll send, prepares it before sequentialization, and sends authorized votes through the canonical message lifecycle.
Ordering and durable-ingress coverage: The PR prepares known routes before Telegram sequentialization, persists prepared data with durable ingress, and has focused tests for topic routing, authorization, replay, and fast-answer ordering.
Findings None None.
Security None None.

How this fits together

Telegram poll-answer updates omit the originating chat and topic, so the Telegram plugin must retain that send-time route before converting the vote into its normal inbound message flow. The recovered message then goes through existing authorization, session routing, and durable ingress handling.

flowchart LR
  A[Public Telegram poll] --> B[Poll route registry]
  C[Poll answer update] --> D[Recover chat and topic route]
  B --> D
  D --> E[Membership and policy checks]
  E --> F[Normal inbound agent turn]
Loading

Decision needed

Question Recommendation
Should non-anonymous Telegram polls be a supported opt-in that creates an agent turn when a participant votes? Sponsor public vote routing: Merge the PR so public polls become the documented opt-in for agent-routed Telegram votes while anonymous polls remain display-only.

Why: Current docs expose public versus anonymous polls but do not establish that public votes must wake an agent, so accepting this new observable behavior requires product intent rather than a purely mechanical review decision.

Before merge

  • Resolve merge risk (P1) - Merging intentionally changes existing public, non-anonymous polls from display-only interactions into agent-turn triggers; anonymous polls remain the default.
  • Complete next step (P2) - The technical repair is review-ready, but a maintainer must choose the permanent semantics of public poll votes before merge.
Agent review details

Security

None.

PR surface

Source +717, Tests +1365. Total +2082 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 20 821 104 +717
Tests 12 1385 20 +1365
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 32 2206 124 +2082

Review metrics

Metric Value Why it matters
Production versus test delta production +783/-100; tests +1,423/-24 The growth is tied to the new durable route owner, authorization boundary, and ingress ordering coverage rather than an unbounded new configuration surface.

Stored data model

Persistent data-model change detected: database schema: extensions/telegram/src/message-tool-schema.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #89573
Summary: This PR is the viable candidate fix for the canonical report that Telegram poll answers do not reach agent turns.

Members:

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

Merge-risk options

Maintainer options:

  1. Accept the public-poll semantic change (recommended)
    Merge after explicitly accepting that existing non-anonymous polls will start producing authorized inbound turns, with anonymous polls unchanged as the default.

Technical review

Best possible solution:

After an explicit maintainer decision that public Telegram polls should create agent turns, merge this exact head and retain anonymous polls as the display-only default.

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

Yes—current main has a clear source reproduction: it returns a poll ID without recording the origin and completes poll-answer updates with no handler or agent turn. The read-only review did not rerun the live Telegram scenario.

Is this the best way to solve the issue?

Unclear pending product direction: the plugin-local route registry and canonical inbound pipeline are the best technical shape, but maintainers must decide whether public poll visibility should also mean agent-turn routing.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: A Telegram poll can currently invite a vote yet complete with no agent-visible outcome, breaking a user-facing channel workflow.
  • merge-risk: 🚨 compatibility: Public polls that existing operators use for display-only purposes will begin creating authorized agent turns after upgrade.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes exact-head real Telegram Bot API and TDLib-user evidence for direct-chat and forum-topic votes reaching the correct session and producing a visible reply.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes exact-head real Telegram Bot API and TDLib-user evidence for direct-chat and forum-topic votes reaching the correct session and producing a visible reply.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. Public-poll vote routing is visible Telegram chat behavior that can be demonstrated in a short Telegram Desktop recording.

Evidence

What I checked:

  • Current-main gap: Current main sends a poll and returns its poll ID without retaining its chat/topic route, while handler composition registers no poll-answer handler; an unhandled update finishes without creating a turn. (extensions/telegram/src/send-special.ts:134, 81238d0c0ec5)
  • Exact-head owner-boundary fix: The PR records the route at poll send, prepares it before sequentialization, and sends authorized votes through the canonical message lifecycle. (extensions/telegram/src/send-special.ts:151, ef3ffac73378)
  • Ordering and durable-ingress coverage: The PR prepares known routes before Telegram sequentialization, persists prepared data with durable ingress, and has focused tests for topic routing, authorization, replay, and fast-answer ordering. (extensions/telegram/src/bot-core.ts:242, ef3ffac73378)
  • Three-way merge check: The recorded PR base is ancestral to current main; a local three-way merge preview produced no conflict markers, and the exact head is not an ancestor of main. (ef3ffac73378)
  • Real behavior proof: The PR body reports exact-head real Telegram Bot API and TDLib-user runs for both direct-chat and forum-topic votes, including the resulting agent turn and visible reply. (ef3ffac73378)

Likely related people:

  • Peter Steinberger: Current handler composition and allowed-update code are attributed to his recent main-branch refactor; he is the strongest available current-main routing contact. (role: recent Telegram handler-composition contributor; confidence: medium; commits: 767dc7019dc0, ad37e91fbbc1; files: extensions/telegram/src/bot-handlers.runtime.ts, extensions/telegram/src/allowed-updates.ts, extensions/telegram/src/send-special.ts)
  • Ayaan Zaidi: The exact-head implementation is his commit, and sampled history shows repeated work across the central Telegram files. (role: recent Telegram area contributor; confidence: medium; commits: ef3ffac73378; files: extensions/telegram/src/bot-core.ts, extensions/telegram/src/send-special.ts, extensions/telegram/src/sequential-key.ts)

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 (29 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-05T05:31:53.162Z sha 4ddb40887329ebbe27291fea7007805e10fecadf :: needs changes before merge. :: [P1] Preserve durable ingress for synthetic poll votes | [P1] Preserve the direct-message topic identifier | [P2] Make the fast-vote fixture eligible for preparation
  • reviewed 2026-08-05T05:38:21.801Z sha 4ddb40887329ebbe27291fea7007805e10fecadf :: needs changes before merge. :: [P1] Resolve the durable lane before admitting poll answers
  • reviewed 2026-08-05T06:26:42.825Z sha 0241b6e77f4ea7adf6d75be99e26d36b54956075 :: needs changes before merge. :: [P1] Require membership for every group poll voter | [P1] Mark channel polls unavailable before registering them
  • reviewed 2026-08-05T07:24:36.168Z sha da456512b7fe70666d1e6b2b24a124983b509e95 :: needs changes before merge. :: [P2] Report disabled group routes as unavailable
  • reviewed 2026-08-05T07:44:26.500Z sha 9ec1ea6b3c1a1fad7189abe966ea490f9a42c5b2 :: found issues before merge. :: [P2] Avoid serializing every unknown poll answer for one second | [P2] Expose public polls as the vote-routing opt-in
  • reviewed 2026-08-05T08:15:30.854Z sha 81a3891756391d4e09a218f5cd0e2476c1da1e64 :: found issues before merge. :: [P1] Avoid blocking account-wide admission on poll registration
  • reviewed 2026-08-05T08:36:18.630Z sha 3ac45bc9fc5c9d610ca6f05fbea4dbb0fe038041 :: needs changes before merge. :: [P1] Provide sync stores for poll-answer middleware tests
  • reviewed 2026-08-05T09:03:12.172Z sha ef3ffac :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jun 23, 2026
@clawSean
clawSean force-pushed the fix/telegram-poll-answer-routing-v2 branch 2 times, most recently from 6b62999 to 40ac7bd Compare June 27, 2026 02:34
@clawSean

Copy link
Copy Markdown
Contributor Author

Rebased current head onto latest main (552ec2b49d) and fixed the ClawSweeper routing finding. New head: 40ac7bd85c.

Fix in this head:

  • poll_answer delivery now routes through resolveTelegramConversationRoute instead of raw resolveAgentRoute, matching normal Telegram message routing.
  • This preserves configured forum-topic agentId overrides and runtime/configured conversation bindings for poll-vote events.
  • Added a regression proving a poll vote in a configured forum topic enqueues into the topic agent session.

Local validation on 40ac7bd85c:

  • node scripts/test-projects.mjs extensions/telegram/src/bot.test.ts extensions/telegram/src/poll-registry.test.ts extensions/telegram/src/send.test.ts ✅ (3 files / 235 tests)
  • Touched-file oxfmt --check ✅
  • Direct touched-file oxlint ✅
  • git diff --check upstream/main..HEAD ✅

Remaining proof gap is still live Telegram Desktop/Mantis proof for a real non-anonymous poll vote reaching the intended session. The code-level routing defect called out in the last review is fixed in this head.

@clawsweeper re-review
@openclaw-mantis telegram desktop proof: after the routing fix, verify a non-anonymous Telegram poll vote reaches the correct OpenClaw direct and topic-agent sessions on current head 40ac7bd85c.

@clawsweeper

clawsweeper Bot commented Jun 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawSean

clawSean commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Updated contributor-side proof for current head 40ac7bd85c6bb39c906cda652f8d7fabf7843d6c.

Evidence in the PR body now reflects the refreshed 2026-07-04 validation:

  • focused Telegram tests: 5 files passed, 315 tests passed
  • extension typecheck: node scripts/run-tsgo.mjs -p tsconfig.extensions.json passed
  • touched-file oxfmt and type-aware oxlint passed
  • git diff --check origin/main...HEAD passed
  • GitHub currently reports mergeStateStatus: CLEAN

The remaining gap is the maintainer-gated Telegram Desktop/Mantis artifact. I tried the workflow-dispatch route from this contributor account, but GitHub rejected it with HTTP 403: Must have admin rights to Repository, so I cannot self-trigger that workflow.

Maintainer-side next step: please run Mantis Telegram Desktop Proof for PR #95830, or post the Mantis Telegram Desktop proof request from the ClawSweeper review, to capture a non-anonymous Telegram poll vote reaching the correct direct and topic-agent sessions on this head.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 19, 2026
@clawSean

Copy link
Copy Markdown
Contributor Author

Still active. I am refreshing this PR against current main and addressing the remaining ClawSweeper retry-semantics finding before requesting a fresh review. The Telegram poll-answer routing gap is still present upstream, so please keep this open.

@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jul 20, 2026
@clawSean
clawSean force-pushed the fix/telegram-poll-answer-routing-v2 branch from 40ac7bd to 799ef05 Compare July 20, 2026 23:27
@openclaw-barnacle openclaw-barnacle Bot added size: L triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed size: XL labels Jul 20, 2026
@clawSean

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis telegram desktop proof: verify a non-anonymous Telegram poll vote reaches the correct OpenClaw direct and forum-topic sessions on exact PR head 799ef0519854516f0233505b642d729ee682b142.

Please capture these current-head scenarios:

  • direct chat: a real user votes and the selected option reaches the direct session exactly once
  • forum topic: a real user votes and the selected option reaches the configured topic-agent session exactly once
  • negative routing: no vote reaches the base group session or a different topic

The prior registry-read retry finding is fixed on this head. Credentialed Telegram Desktop proof is the remaining contributor-unavailable gate.

@clawSean

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please re-review exact head 799ef0519854516f0233505b642d729ee682b142, rebased onto current main d5a8233e76ff7aeeafbff493db1dda5ba7e77dcc.

The previous P1 is addressed: keyed-store lookup failures now propagate and a spooled poll_answer records failed-retryable; true missing poll ids remain safe skips. This refresh also keeps unrelated polls out of the global unknown sequential lane and drops identity-less voters before authorization/registry I/O.

The PR body now distinguishes source coverage from execution proof honestly. Hosted CI is the exact-head executable check; credentialed Telegram Desktop proof remains the explicit external gate.

@obviyus
obviyus force-pushed the fix/telegram-poll-answer-routing-v2 branch from c442f33 to 57cf15d Compare August 5, 2026 06:56
@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus
obviyus force-pushed the fix/telegram-poll-answer-routing-v2 branch from 57cf15d to a8e9206 Compare August 5, 2026 07:07
@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus
obviyus force-pushed the fix/telegram-poll-answer-routing-v2 branch from a8e9206 to da45651 Compare August 5, 2026 07:14
@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 5, 2026
@obviyus
obviyus force-pushed the fix/telegram-poll-answer-routing-v2 branch from da45651 to 9ec1ea6 Compare August 5, 2026 07:33
@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Aug 5, 2026
@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@obviyus

obviyus commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Thanks @clawSean — landed with durable poll-route ordering and exact-head Telegram direct/forum proof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

Telegram poll_answer updates are not routed to agent turns

2 participants