Skip to content

fix(telegram): allow callback acknowledgement text - #76975

Closed
hyspacex wants to merge 1 commit into
openclaw:mainfrom
hyspacex:fix/76622-telegram-callback-ack-text
Closed

hyspacex wants to merge 1 commit into
openclaw:mainfrom
hyspacex:fix/76622-telegram-callback-ack-text

Conversation

@hyspacex

@hyspacex hyspacex commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add optional channels.telegram.callbackAck config for Telegram inline keyboard callbacks
  • Pass configured ack text immediately to answerCallbackQuery as a Telegram toast, with optional showAlert
  • Document the new config and add regression coverage for callback ack payloads

Fixes #76622.

Reproduction

On current main, Telegram callback handling acknowledges inline button clicks with only the callback id / no options payload, so Telegram clears the spinner but shows no toast:

  • extensions/telegram/src/bot-handlers.runtime.ts called ctx.answerCallbackQuery() or bot.api.answerCallbackQuery(callback.id)
  • existing tests asserted only answerCallbackQuerySpy("cbq-1")

Validation

  • pnpm install --frozen-lockfile (restored missing local deps after fresh pull)
  • pnpm vitest run extensions/telegram/src/bot.create-telegram-bot.test.ts extensions/telegram/src/bot.test.ts
  • pnpm exec oxfmt --check --threads=1 extensions/telegram/src/bot-handlers.runtime.ts extensions/telegram/src/bot.create-telegram-bot.test.ts src/config/types.telegram.ts src/config/zod-schema.providers-core.ts docs/channels/telegram.md CHANGELOG.md
  • pnpm check:changed

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: telegram Channel integration: telegram size: S labels May 3, 2026
@clawsweeper

clawsweeper Bot commented May 3, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep open: this is a plausible candidate for the linked Telegram callback acknowledgement issue, but it is not merge-ready because current main now answers callbacks before the handler, this branch only adds the payload in the stale handler path, the new public config surface needs metadata/product approval, and there is no real Telegram proof.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #76622
Summary: This PR is the open candidate fix for the canonical visible Telegram callback acknowledgement text issue; the merged timeout fix is adjacent because it changed when callbacks are answered, not whether visible text is shown.

Members:

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

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

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

Yes, at source level: current main and the latest release answer Telegram callback queries with only the callback id in both early and fallback paths, and current tests assert id-only calls. I did not run a live Telegram client in this read-only review.

Is this the best way to solve the issue?

No, not as-is. The right fix needs to wire the payload through the current early-answer owner, keep the fallback aligned, refresh config metadata, and get maintainer approval for the new config contract.

Security review:

Security review cleared: Cleared: the diff adds opt-in Telegram callback payload handling plus docs/tests and does not add dependencies, workflows, permissions, downloads, package scripts, or secret-handling changes.

AGENTS.md: found and applied where relevant.

What I checked:

  • stale F-rated PR: PR was opened 2026-05-03T22:30:58Z, is older than 60 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • liuhao1024: Authored the merged Telegram callback timeout fix that introduced the pre-sequential callback acknowledgement path any visible-ack fix must now update. (role: recent related fix author; confidence: high; commits: e6c8011e5286, 4c3c0ff5f9a2; files: extensions/telegram/src/bot-core.ts, extensions/telegram/src/bot-handlers.runtime.ts, extensions/telegram/src/bot.create-telegram-bot.test.ts)
  • vincentkoc: Authored the follow-up that avoids duplicate early callback answers and added the promise-sharing handler shape this PR must integrate with. (role: recent callback path contributor; confidence: high; commits: 999a1e87ce48, 4c3c0ff5f9a2; files: extensions/telegram/src/bot-core.ts, extensions/telegram/src/bot-handlers.runtime.ts, extensions/telegram/src/callback-query-answer-state.ts)

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

@barnacle-openclaw

Copy link
Copy Markdown

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

@barnacle-openclaw barnacle-openclaw Bot added the stale Marked as stale due to inactivity label May 30, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels May 30, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label May 31, 2026
@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed 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. labels May 31, 2026
@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. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 14, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Jun 14, 2026
@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 stale Marked as stale due to inactivity triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(telegram): allow callback acknowledgement text This is item 1/1 in the current shard. Shard 17/22.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

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

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict stalled_unproven_pr (decision packet 2026-07-18T06:07:25.640Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026

This branch had an error being deployed

1 failed deployment
qa-live-shared — 6f36d8c6 Deployed Jun 14, 2026 by clawsweeper[bot] via Run agentic native Telegram proof #167360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram docs Improvements or additions to documentation mantis: telegram-visible-proof Mantis should capture Telegram visible proof. 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telegram: answerCallbackQuery called without text — no immediate visual feedback on inline button click

2 participants