Skip to content

fix(telegram): route model-confirmation edit through rich funnel - #124222

Closed
a-yeyang wants to merge 11 commits into
openclaw:mainfrom
a-yeyang:fix/telegram-rich-callback-edit
Closed

a-yeyang wants to merge 11 commits into
openclaw:mainfrom
a-yeyang:fix/telegram-rich-callback-edit

Conversation

@a-yeyang

@a-yeyang a-yeyang commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Closes #123886

What Problem This Solves

Fixes an issue where users with richMessages: true on their Telegram account and who complete the /models picker would see the final "✅ Model changed to…" confirmation rendered on top of / mixed with the stale rich-text markup from the picker's prior provider/model-list step, instead of a clean confirmation message. The picker's intermediate steps (provider list, model list, pagination) already fully replace the rich body correctly; only the terminal confirmation edit was affected.

Why This Change Was Made

The /models picker sends its initial body as a rich message when richMessages is enabled, and every lifecycle edit to that message (provider list, model list, pagination) already routes through the rich funnel in createTelegramCallbackMessageActions. The final selection confirmation was the one exception: it always fell back to the legacy HTML editMessageText path. Editing a rich-sent message through that legacy text path does not fully replace the prior rich body — Telegram renders the new plain/HTML text mixed with the stale rich markup underneath it.

The fix converts the model-confirmation call site to author rich content via hand-built RichText/InputRichBlock[] when richMessages is enabled, following the existing progress-draft-preview.ts precedent for opting a parse_mode: "HTML" edit back onto the rich funnel:

  • TelegramCallbackRichTextOverride lets editCallbackMessage/editCallbackMessageWithButtons accept an optional richTextOverride; when supplied, the edit routes through getTelegramRichRawApi(bot.api).editMessageText(...) with hand-built rich_message blocks instead of the legacy text funnel.
  • buildModelSelectionConfirmation (new file) builds both the HTML and rich-block confirmation bodies from one shared text-building function, so the two representations can't drift apart — only model-id HTML-escaping and the runtime placeholder spelling differ per funnel.
  • Non-rich accounts (richMessages disabled or unset) are unaffected; the legacy HTML path is unchanged for that funnel.

As a side effect of this fix, bot-handlers.callback-router.ts grew past the repo's 700-line oxlint max-lines cap, so the pre-existing ~290-line handleTelegramModelCallback function was extracted verbatim into a new file, bot-handlers.model-callback.ts, with no logic changes — pure file-split, kept in this PR so CI stays green (AGENTS.md: "Split files around ~700 LOC... never add a max-lines suppression").

This PR supersedes closed PR #124173, which introduced rich-block sending but left the confirmation edit on the legacy HTML path — ClawSweeper's own review of that PR classified it as partial_overlap, i.e. it fixed the picker's rich-block plumbing but not the actual reported bug (the confirmation still overlapped stale rich text). This change closes that exact gap.

User Impact

Telegram operators with richMessages: true now see a single clean confirmation message when they finish the /models picker — no more stale/mixed rich-text markup left behind. Operators without richMessages enabled see no behavior change.

Evidence

  • Targeted tests: node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/bot-handlers.model-callback.ts extensions/telegram/src/model-confirmation-message.test.ts extensions/telegram/src/bot.test.ts (and related callback-router/harness specs) — 151/151 passing, including a new regression test asserting richTextOverride routes through the rich funnel and 3 new buildModelSelectionConfirmation tests asserting HTML vs rich-block parity/escaping.
  • Full extension suite: node scripts/run-vitest.mjs extensions/telegram — 3593/3594 passing; the 1 failure (setup-surface.test.ts > accepts numeric sender ids only) is a pre-existing, unrelated sandbox-locale artifact (zh-locale string vs expected English string), reproducible on main before this change.
  • Typecheck: pnpm tsgo:extensions clean.
  • Lint: node scripts/run-oxlint.mjs on all touched/added files — exit 0, confirms the max-lines violation from the file-split is resolved (bot-handlers.callback-router.ts now 395 lines, down from 706).
  • Format: pnpm format — no diff.
  • Pre-land $autoreview (Codex gpt-5.6-sol, high reasoning): autoreview clean: no accepted/actionable findings reported, overall: patch is correct (0.96).
  • Live Telegram bot-to-bot proof was not feasible in this environment (no bot token configured); the mock-harness/unit proof above exercises the exact changed rich-funnel edit path per the ClawSweeper Review Policy real-behavior-proof gate for channel-visible changes.

Update (commit 6973bab29b9)

Two fixes on top of the original commit:

  • ClawSweeper P1 finding addressed — editCallbackMessage's rich-routing branch previously fell back to buildTelegramRichMarkdown(text) for any rich-account callback edit that wasn't parse_mode: "HTML", not just the model-picker confirmation. That silently ran markdown parsing over arbitrary un-authored text from approval receipts (terminalizeApprovalMessage), the plugin SDK's respond.editMessage, and the model picker's own intermediate pagination/provider-list/model-list/error edits — none of which are markdown-authored, so incidental */_/backtick/[ characters (e.g. in provider/model ids or user-controlled error text) could be reinterpreted as formatting instead of sent literally. Fixed by making rich routing strictly opt-in per call: it now only fires when the caller explicitly supplies richTextOverride's hand-built blocks (as the model-picker confirmation does); every other caller — regardless of richMessages/parse_mode — stays on the legacy literal-text funnel, exactly as before this PR. buildTelegramRichMarkdown is no longer imported by this file (still used correctly elsewhere: streaming draft previews and the general outbound-delivery pipeline, where callers genuinely author markdown).
  • CI fixes: check-test-types (two bot-handlers.callback-actions.test.ts blocks needed explicit vi.fn<T>() typing plus a null-check helper for noUncheckedIndexedAccess-safe .mock.calls.at(0) access) and check-dependencies/knip (ModelSelectionConfirmationParams/ModelSelectionConfirmation had no external importer and shouldn't have been exported).

Correction to my earlier claiming comment on #123886: I stated "clean typecheck" there; at that point check-test-types and check-dependencies were actually failing on CI (fixed now, in this commit). Apologies for the inaccurate evidence claim — flagging it here so the record is accurate.

Updated evidence

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts — 7/7 passing, including a rewritten test asserting plain-text edits with no richTextOverride stay on the legacy funnel even when richMessages is enabled (inverts the prior test, which asserted the now-fixed over-broad behavior), and updated fallback/error-path tests that now supply an explicit override to exercise the rich funnel.
  • node scripts/run-vitest.mjs extensions/telegram (full extension suite) — 3593/3594 passing; same single pre-existing unrelated setup-surface.test.ts locale failure noted above, reproduced identically on this branch's pre-fix HEAD via git stash.
  • pnpm tsgo:extensions and pnpm tsgo:extensions:test — both clean.
  • knip production + all-exports check — clean, no new dead exports.
  • node_modules/.bin/oxfmt — no diff. node scripts/run-oxlint.mjs on touched files — exit 0.
  • Pre-land $autoreview (Codex gpt-5.6-sol, high reasoning) rerun on this commit: autoreview clean: no accepted/actionable findings reported, overall: patch is correct (0.98).
  • Live Telegram bot-to-bot proof remains not feasible in this environment (no bot token configured), unchanged from the original PR evidence.

Update (commit a0dec118a21): delete-and-reply instead of legacy-edit on rich-edit failure

ClawSweeper's follow-up P2 finding on the prior commit: editCallbackMessage's
catch block fell back to legacyEditCallbackMessage(text, editParams) whenever
the rich raw-API edit failed for a non-terminal reason. richTextOverride is
only ever supplied for a message that was itself sent as rich (the model
picker's final confirmation edit), so a legacy-text retry there reproduces the
exact stale-rich-markup symptom #123886 reported — the new text lands mixed
with the prior rich body instead of replacing it.

Fixed by extracting a shared deleteAndReplyCallbackMessage helper (delete
the rich-sent message, then send a plain reply) and using it both for this
new failure path and for editCallbackMessageWithButtons's existing "no text
in the message" recovery, which had the same delete-then-reply logic inlined
already — a small dedup alongside the fix, not just a symptom patch.

Updated evidence

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts
    — 8/8 passing, including a new test ("deletes and replies instead of
    legacy-editing when the rich edit fails for a non-terminal reason") and the
    editCallbackMessageWithButtons describe block's "deletes and replies,
    through the real /model-picker-confirmation call shape, when the rich edit
    fails" case, now reusing the shared helper.
  • node scripts/run-vitest.mjs extensions/telegram (full extension suite) —
    3594/3595 passing; same single pre-existing unrelated setup-surface.test.ts
    locale failure noted above (reproduces identically on origin/main, not
    touched by this branch).
  • pnpm tsgo:extensions — clean.
  • node scripts/run-oxlint.mjs on both touched files — exit 0.
  • node_modules/.bin/oxfmt on both touched files — no diff.
  • knip (production + dependencies) — clean, no new unused exports.
  • Pre-land $autoreview (Codex gpt-5.6-sol, high reasoning) rerun on this
    commit: autoreview clean: no accepted/actionable findings reported,
    overall: patch is correct (0.97).
  • Live Telegram bot-to-bot proof remains not feasible in this environment (no
    bot token configured), unchanged from the original PR evidence.

Update (commit f082965e64c): correct inline comment on rich-funnel invariant

ClawSweeper's re-review on a0dec118a21 surfaced one actionable finding:

  • [P3] Correct the callback-funnel explanation — extensions/telegram/src/bot-handlers.model-callback.ts:294-298. The inline comment claimed the picker's provider/model-list edit steps "already edit through the rich funnel when richMessages is enabled." That's inaccurate: editCallbackMessageWithButtons only takes the rich path when the caller explicitly supplies richTextOverride, and none of the list/pagination/error edit calls in this file pass one — only the terminal confirmation does.

Verified the finding against real code before fixing:

  • bot-handlers.callback-actions.ts gates rich routing on if (!richMessages || !richTextOverride) falling back to legacy — both conditions are required, not just richMessages.
  • Grepped all 10 editMessageWithButtons/editCallbackMessageWithButtons call sites in bot-handlers.model-callback.ts: only the final confirmation call supplies rich blocks; every provider-list/model-list/pagination/error edit omits richTextOverride and stays on the legacy funnel.

Fix: reworded the comment to state the true invariant — those list/pagination/error steps stay on the legacy HTML funnel, and this terminal confirmation is the one call that explicitly opts into the rich funnel via richTextOverride. Comment-only change, no behavior difference.

Validation:

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/bot.test.ts — 149/149 passing.
  • node scripts/run-oxlint.mjs extensions/telegram/src/bot-handlers.model-callback.ts — clean.
  • node_modules/.bin/oxfmt extensions/telegram/src/bot-handlers.model-callback.ts — applied.
  • git diff --check — clean.

Note: ClawSweeper's proof-confidence score on this PR is driven by the disclosed, unresolved "no bot token configured in this sandbox" limitation — real Telegram behavior proof for the rich-edit/delete-and-reply path is still outstanding and I can't produce it here. That gap remains honestly disclosed rather than worked around.

Update (commit 952e6f88239): correct remaining rich-funnel comment (late finding)

ClawSweeper's re-review on f082965e64c surfaced one actionable finding:

  • [P3] Correct the remaining rich-funnel explanations — extensions/telegram/src/model-confirmation-message.ts:4-7. Flagged as a late finding: the same inaccurate claim fixed at bot-handlers.model-callback.ts:294-298 in the prior commit was still present in this file's JSDoc header ("the picker's provider/model-list edits already went through the rich funnel"), and duplicated in a regression-test comment at bot.test.ts:2881.

Verified before fixing: grepped every richBlocks usage in extensions/telegram/src/** — model-confirmation-message.ts is the sole producer, and the terminal confirmation edit in bot-handlers.model-callback.ts is the sole consumer. Provider/list/pagination/error edits never supply richTextOverride and stay legacy-only, confirming the same corrected invariant already landed in the previous commit.

Fix: reworded both comments to state that legacy HTML is used by every other picker step (and as this confirmation's fallback), while rich blocks are used only by this terminal confirmation, which explicitly opts into the rich funnel via richTextOverride. Comment-only change, no behavior difference.

Validation:

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/bot.test.ts — 149/149 passing.
  • node_modules/.bin/oxfmt on both touched files — clean, no reformatting needed.
  • git diff --check — clean.

Note: the disclosed "no bot token configured in this sandbox" real-Telegram-proof gap remains unresolved and unchanged from prior updates.

Update (commit d55b43e32ef): send fallback before deleting the picker

ClawSweeper's re-review on 952e6f88239 (reviewed_at 2026-08-16T01:39:38.304Z) surfaced one actionable finding:

  • [P2] Send the fallback before deleting the picker — extensions/telegram/src/bot-handlers.callback-actions.ts:115-118. deleteAndReplyCallbackMessage deleted the rich picker before awaiting sendMessage. If that send failed, the model selection had already been applied but the user lost both the picker and its confirmation — a silent-failure outcome per this repo's own severity doctrine (silent failure ranks above crash or missing feature).

Verified before fixing:

  • Read deleteAndReplyCallbackMessage in full: it awaited deleteCallbackMessage() (swallowing its own errors) and only then called replyToCallbackChat(text, replyParams). Exactly as described.
  • Confirmed via git log --oneline -- extensions/telegram/src/bot-handlers.callback-actions.ts that this helper (and its ordering) was introduced by this PR's own commit a0dec118a21, not a pre-existing unrelated defect — squarely in-scope to fix here.
  • Confirmed via grep that no existing test covered this ordering (only that both calls occurred, not their order or the rejection path).

Fix: reordered deleteAndReplyCallbackMessage to call replyToCallbackChat (send) first, then make deleteCallbackMessage best-effort only after a successful send. A send failure now propagates untouched and never triggers a delete, so the picker is never destroyed without a working replacement.

Added two regression tests in bot-handlers.callback-actions.test.ts:

  • asserts sendMessage's invocation order is before deleteMessage's (fails pre-fix: order was reversed);
  • asserts a sendMessage rejection propagates and deleteMessage is never called (fails pre-fix: delete already happened unconditionally before the send was even attempted).

Both new tests were confirmed to fail against the pre-fix code (via git stash of the production change alone) for the intended reason, then pass after the fix.

Validation:

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/bot.test.ts — 151/151 passing.
  • node_modules/.bin/oxfmt on both touched files — applied, clean.
  • git diff --check — clean.
  • .claude/skills/autoreview/scripts/autoreview --mode local (Codex, gpt-5.6-sol, high reasoning) — clean, no accepted/actionable findings.

Note: the disclosed "no bot token configured in this sandbox" real-Telegram-proof gap remains unresolved and unchanged from prior updates.

Update (commit 4ebf2f18165): forward business context to the fallback picker's deletion

ClawSweeper's re-review on d55b43e32ef (reviewed_at 2026-08-16T03:37:58.723Z) surfaced one actionable finding:

  • [P2] Forward business context when deleting the fallback picker — extensions/telegram/src/bot-handlers.callback-actions.ts:119-121. deleteAndReplyCallbackMessage sends the replacement with the callback's business context but then calls deleteCallbackMessage, whose delete omitted it. On a Business callback whose rich edit fails, the replacement could be sent while deletion silently failed and was swallowed, leaving the stale interactive picker behind.

Verified before fixing:

  • Re-read deleteCallbackMessage: it called bot.api.deleteMessage(chat_id, message_id) unconditionally, while its siblings legacyEditCallbackMessage and replyToCallbackChat both forward business_connection_id.
  • Checked grammY's typed API surface (node_modules/grammy/out/core/api.d.ts): deleteMessage(chat_id, message_id, signal?) has no business_connection_id parameter at all — unlike editMessageText/sendMessage/editMessageReplyMarkup, which all accept one.
  • Cross-checked against the Telegram Bot API's own method list (@grammyjs/types/methods.d.ts): deleteMessage genuinely has no such field. Telegram instead exposes a dedicated method for this exact case, deleteBusinessMessages(business_connection_id, message_ids), which grammY surfaces as bot.api.deleteBusinessMessages(...). Deleting a business-sent message is a different Bot API call, not deleteMessage plus an extra field.

Fix: deleteCallbackMessage now calls bot.api.deleteBusinessMessages(business_connection_id, [message_id]) when the callback carries business context, and falls back to the existing bot.api.deleteMessage(chat_id, message_id) otherwise.

Added a regression test in bot-handlers.callback-actions.test.ts asserting that a Business callback's rich-edit-failure recovery deletes via deleteBusinessMessages with the right connection id and message id, and never calls deleteMessage. Confirmed it fails against the pre-fix code (via git stash of the production change alone — deleteBusinessMessages is never called pre-fix) for the intended reason, then passes after the fix.

Validation:

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/bot.test.ts — 152/152 passing.
  • pnpm tsgo:extensions and pnpm tsgo:extensions:test — clean.
  • node_modules/.bin/oxfmt on both touched files — applied, clean.
  • git diff --check — clean.
  • .claude/skills/autoreview/scripts/autoreview --mode local (Codex, gpt-5.6-sol, high reasoning) — clean, no accepted/actionable findings ("patch is correct (0.99)").

Note: the disclosed "no bot token configured in this sandbox" real-Telegram-proof gap remains unresolved and unchanged from prior updates.

Update (head 6328eb54392): mock-gateway harness — executed transcript + verdict JSON (real-behavior proof)

ClawSweeper's needs real behavior proof gate asks for the added Gateway harness to be executed against this head, with its terminal output and verdict JSON supplied together. This section supersedes and consolidates my two earlier (separately-posted, and confusingly-worded) proof updates into one honest, co-located block.

Per AGENTS.md's real-behavior-proof gate — "a mock-gateway harness run (mock channel API + mock provider + ephemeral gateway, verdict JSON in the PR body) satisfies it for channel-visible changes covering the changed path; live-channel proof is stronger evidence."

Harness: test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts — a real ephemeral Gateway (startQaGatewayChild, richMessages: true) + a mock OpenAI-compatible provider (startQaMockOpenAiServer) + a local mock Telegram Bot API HTTP server that captures the real HTTP body of every editMessageText call. It drives the actual production chain end-to-end: callback router → model callback handler → callback actions → grammY api.raw.editMessageText.

Executed transcript (this exact head, 6328eb5):

$ node --import tsx scripts/test-projects.mts test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts
[test] starting test/vitest/vitest.e2e.config.ts

 RUN  v4.1.10 /Users/chenshiyang.10/workspace/openclaw

OpenClaw 2026.8.1 (6328eb5)

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  06:15:04
   Duration  197.60s (transform 3.38s, setup 256ms, import 5.55s, tests 15.86s, environment 0ms)

[test] passed 1 Vitest shard in 198.02s

OpenClaw 2026.8.1 (6328eb5) in the gateway boot log confirms the run built and exercised the current PR head, not a stale dist. Test Files 1 passed (1) / Tests 1 passed (1) — the single e2e case passed. (Duration is dominated by the one-time dist rebuild the e2e config triggers when git HEAD changed; the assertions themselves run in ~16s.)

Verdict JSON for the run above:

{
  "harness": "mock-gateway e2e — test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts",
  "head": "6328eb543924fbc92376a786a15da6f150baea5a",
  "changedPath": "Telegram /models picker callback -> model selection -> rich-edit confirmation (bot-handlers.callback-router.ts -> bot-handlers.model-callback.ts -> bot-handlers.callback-actions.ts -> grammY api.raw.editMessageText)",
  "topology": "ephemeral gateway (startQaGatewayChild, own port + state dir, richMessages: true) + mock OpenAI-responses provider (startQaMockOpenAiServer) + real local mock Telegram Bot API HTTP server (getMe/getUpdates/editMessageText/answerCallbackQuery/deleteWebhook) intercepting the real grammY HTTP client",
  "steps": [
    { "step": 1, "action": "gateway starts polling; mock server's first getUpdates responds with an empty batch", "observed": "short poll completes with no updates, matching telegram-ingress-worker.runtime.ts's pollingConfirmed gate (confirm ownership before the long poll)" },
    { "step": 2, "action": "mock server injects a synthetic callback_query on the next getUpdates poll: data=\"mdl_sel_mock-openai/gpt-5.6-luna-alt\" against the picker message (chat 555444, message_id 42)", "observed": "gateway ingests the update and dispatches it into the real callback router" },
    { "step": 3, "action": "wait for an editMessageText HTTP call to arrive at the mock server", "observed": "exactly one editMessageText POST to /bot<token>/editMessageText, chat_id=555444, message_id=42", "proves": "the callback router resolved the mdl_sel_ callback through handleTelegramModelCallback and reached the terminal confirmation edit" },
    { "step": 4, "action": "inspect the captured request body", "observed": "rich_message.blocks is present, is an array, and has length > 0; text and parse_mode are both undefined", "proves": "the edit went through getTelegramRichRawApi(bot.api).editMessageText with a rich_message payload (bot-handlers.callback-actions.ts's rich funnel), not legacyEditCallbackMessage's positional text/parse_mode shape -- the exact rich-vs-legacy distinction #123886 is about" }
  ],
  "verdict": "PASS — the changed path is proven on a real gateway: a rich-enabled account's /models final confirmation is delivered through the rich edit funnel (rich_message.blocks over the real Bot-API-shaped HTTP transport), not the legacy plain-text editMessageText path"
}

Known gap (honestly disclosed, unchanged): this is mock-gateway proof, not a live Telegram Desktop/bot-to-bot recording — no bot token is configured in this sandbox. Per AGENTS.md this harness verdict satisfies the real-behavior-proof gate for this channel-visible change; a maintainer wanting stronger live evidence can trigger Mantis with the exact comment ClawSweeper suggests (@openclaw-mantis telegram desktop proof: verify that a rich-enabled /models selection leaves one clean confirmation without stale picker markup).

Update (head 6328eb54392): pre-land autoreview now run — TruffleHog + Codex, clean

ClawSweeper's latest review flagged a real gap: "Autoreview could not run because TruffleHog is unavailable in the review environment." That's an accurate finding about the review sandbox — my own local sandbox does have trufflehog installed, so I ran the repo's mandatory pre-land autoreview gate here directly against this exact branch (fix/telegram-rich-callback-edit, head 6328eb5) vs origin/main:

$ .claude/skills/autoreview/scripts/autoreview --mode branch --base origin/main
autoreview target: branch
branch: fix/telegram-rich-callback-edit
engine: codex
model: gpt-5.6-sol
fallback_model: gpt-5.6-terra
thinking: high
tools: on
web_search: on
ref: origin/main
trufflehog: clean (3.1s)
bundle: 70331 bytes; review passes: 1
autoreview clean: no accepted/actionable findings reported
overall: patch is correct (0.98)
No P0 defects are demonstrated by the change bundle. The patch is narrowly scoped to
Telegram rich callback editing and does not introduce a catastrophic outage, critical
security compromise, or similarly release-blocking failure at the required reporting
threshold.

TruffleHog's pre-scan of the full added/modified/deleted content came back clean (no verified/unknown secrets), and Codex's structured review of the complete branch-vs-main bundle returned no accepted or actionable findings. This satisfies the repo's pre-land autoreview gate ($autoreview) for this PR; the previously-reported "TruffleHog unavailable" blocker was specific to the review environment, not this branch's content.

The remaining, correctly-identified gap is still real-Telegram-callback proof per extensions/telegram/AGENTS.md:131 (the mock-gateway harness above is supplemental, not sufficient, per that scoped policy) — that piece requires either a maintainer-triggered Mantis run or bot-to-bot QA-lane credentials I don't have standing access to provision myself.

@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: XL labels Aug 15, 2026
@a-yeyang
a-yeyang marked this pull request as ready for review August 15, 2026 18:19
@clawsweeper clawsweeper Bot added mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR sends model-selection confirmations as rich Telegram content and adds replacement-message recovery.

Example: Select mock-openai/gpt-5.6-luna-alt through /models with richMessages enabled.

  • Before: The HTML confirmation can overlap the previous rich picker text.
  • After: The confirmation uses rich_message.blocks to replace the picker body.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful repair with meaningful Gateway coverage, but the known cleanup defect remains; no persisted data shape changes require migration.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Telegram users with rich messages enabled can see unreadable confirmation text overlapping the old model picker.
Reason: A focused repair of an existing bundled-channel behavior has clear value without adding settings or changing model-selection policy.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR open: it addresses an unresolved Telegram rendering bug, but the previously reported stale-button defect remains.

Priority: P2
Reviewed head: a783fda2373b34ebb88909bc22966c5605d62a45

Before merge

  • Add real behavior proof - The supplied ephemeral-Gateway transcript and raw request prove rich confirmation payload generation through the production callback chain and grammY HTTP client. Inspected Desktop captures stop at provider selection, so they do not prove clean final rendering or recovery on Telegram as required by extensions/telegram/AGENTS.md. Supply redacted live output or a recording completing that flow; the discussion documents that another maintainer-triggered proof run may be needed. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Clear the original picker buttons when recovery deletion fails (P2) - When a rich confirmation edit fails, replacement delivery can succeed while deleteMessage or deleteBusinessMessages rejects. This empty catch then reports success with the old picker and its live model-selection buttons still present beside the confirmation. This is the unresolved finding from the previous review, now independently verified at the same head. Clear the original keyboard through clearCallbackButtons or editCallbackButtons([]) on deletion failure, retaining send-before-delete ordering; current main's merged cleanup repair provides the existing owner pattern.
  • Complete next step - Resolve the GitHub-reported merge conflict while preserving current configured-runtime selection, delivered-command recording, and callback cleanup.

Findings

  • [P2] Clear the original picker buttons when recovery deletion fails — extensions/telegram/src/bot-handlers.callback-actions.ts:105-107

Tests

  • Low-value test extensions/telegram/src/model-confirmation-message.test.ts: The first and third cases pin complete helper-generated wording already asserted at the bot boundary; consolidate those assertions while retaining adversarial identifier-escaping coverage.
  • Missing end-to-end proof: Complete /models selection on a rich-capable live Telegram client and show the final clean confirmation, redacting credentials and private chat details.
Agent review details

How this fits together

Telegram callback updates enter the authorized callback router, which applies the session model selection and sends confirmation through the Telegram message-action owner.

flowchart TD
  A[Telegram callback] --> B[Callback router]
  B --> C[Model selection handler]
  C --> D[Session selection owner]
  C --> E[Callback message actions]
  E --> F[Telegram rich edit]
  E --> G[Replacement delivery and cleanup]
Loading

Technical review

Best possible solution:

Absorb rich editing into the existing callback owner using grammY's typed overload, preserve send-before-delete recovery, and clear original buttons when deletion fails.

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

The linked report identifies an official affected release, and current main still combines rich delivery with legacy confirmation editing; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The callback owner is the right repair boundary, but the patch is incomplete on deletion failure and adds raw-edit plumbing that the pinned grammY API already provides.

Full review comments:

  • [P2] Clear the original picker buttons when recovery deletion fails — extensions/telegram/src/bot-handlers.callback-actions.ts:105-107
    When a rich confirmation edit fails, replacement delivery can succeed while deleteMessage or deleteBusinessMessages rejects. This empty catch then reports success with the old picker and its live model-selection buttons still present beside the confirmation. This is the unresolved finding from the previous review, now independently verified at the same head. Clear the original keyboard through clearCallbackButtons or editCallbackButtons([]) on deletion failure, retaining send-before-delete ordering; current main's merged cleanup repair provides the existing owner pattern.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 30b7adf9d14e.

Provenance checked

  • Model-confirmation formatting keeps the original intent (fix(telegram): enable HTML formatting for model switch messages #60042: HTML formatting and escaping prevent raw Markdown and malformed model identifiers in confirmations.)
  • Callback handler extraction changes intended behavior with a stated reason (d2825c7: Consolidated callback ownership into named modules; this PR extracts the model handler to accommodate the file-size limit.)
  • Replacement delivery ordering changes intended behavior with a stated reason (4a84117: The extraction carried delete-before-reply recovery forward; original introduction remains unknown because older blob searches fail.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs extensions/telegram/src/bot-handlers.callback-actions.test.ts extensions/telegram/src/transport-payload.test.ts extensions/telegram/src/bot.test.ts
  • node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts
  • Verify replacement delivery precedes deletion and rejected deletion triggers an empty keyboard edit with the original business context.
  • Verify a failed replacement send never deletes the picker.

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 629e007 adds extensions/telegram/src/bot-handlers.callback-actions.ts:89 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 629e00776c38; files: extensions/telegram/src/bot-handlers.callback-actions.ts)

PR surface

Source +189, Tests +668. Total +857 across 10 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 4 499 310 +189
Tests 6 684 16 +668
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 1183 326 +857

Review metrics

Metric Value Why it matters
Production versus test LOC Production net +189; tests and test support net +668 The handler extraction is primarily a move; net production growth comes from rich routing, dual confirmation rendering, and recovery, which can be reduced by reusing grammY's existing rich-edit overload.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #123886
Summary: This PR is the open candidate repair for rich model-confirmation rendering; later merged work covers related cleanup and runtime-policy boundaries.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs confusing confirmation rendering on an opt-in Telegram path; model selection itself succeeds.
  • merge-risk: 🚨 message-delivery: The new recovery can leave an actionable original picker beside its replacement after deletion fails.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (38 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-23T18:07:38.991Z sha 4c3b62ba677c10371573e4bcee872360aea0b457 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-24T02:49:22.168Z sha 1f49de0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-24T03:22:36.273Z sha a783fda :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-24T03:54:26.282Z sha a783fda :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T04:17:36.721Z sha a783fda :: needs maintainer review before merge. :: none
  • reviewed 2026-08-30T04:34:30.828Z sha a783fda :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-03T05:33:46.785Z sha a783fda :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-04T00:53:05.181Z sha a783fda :: needs real behavior proof before merge. :: [P2] Clear the original picker buttons when recovery deletion fails

Reviewed October 17, 2026, 10:19 PM ET / October 18, 2026, 02:19 UTC (Revision 39).

@a-yeyang

Copy link
Copy Markdown
Contributor Author

Pushed 6973bab29b9 addressing the P1 finding from your review: editCallbackMessage no longer falls back to buildTelegramRichMarkdown(text) for any rich-account callback edit — rich routing now only fires when the caller explicitly supplies richTextOverride. Approval receipts, plugin respond.editMessage, and the model picker's own intermediate pagination/list/error edits all stay on the legacy literal-text funnel; only the model-picker's final confirmation (which supplies an override) routes rich. Also fixed the check-test-types/check-dependencies CI failures in the same commit. Full details and updated evidence in the PR body.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@a-yeyang

Copy link
Copy Markdown
Contributor Author

Re-triggering CI: check-lint failed due to a GitHub Actions runner shutdown signal (exit 143, "The runner has received a shutdown signal"), unrelated to this PR's diff. Reopening to get a fresh run.

@a-yeyang a-yeyang closed this Aug 15, 2026
@a-yeyang a-yeyang reopened this Aug 15, 2026
@a-yeyang

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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 exact_review_queue).
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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 15, 2026
@a-yeyang

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@a-yeyang

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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 exact_review_queue).
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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 15, 2026
@a-yeyang

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@a-yeyang

Copy link
Copy Markdown
Contributor Author

Closing and reopening to retrigger CI: the check-lint job hung inside its oxlint:core scan (heartbeat stalled past 150s, job then force-canceled) on this comment-only commit (952e6f88239) — a concurrent main-branch run of the identical job completed cleanly in ~80s at nearly the same timestamp, so this reads as an infra hang, not a defect in the 2-line diff. I don't have admin rights to rerun the job directly, so retriggering via close/reopen.

@a-yeyang a-yeyang closed this Aug 15, 2026
chenshiyang.10 and others added 2 commits August 24, 2026 02:20
…Action

The final rich model-confirmation edit in handleTelegramModelCallback ran
outside the file's retryModelAction wrapper -- unlike every other edit call
in the handler. A transient failure there (after applySessionModelSelection
had already taken effect) fell into the bare `catch (err)` block, which
rewrites it into a misleading permanent "Failed to change model" edit and
does not enter the router's retry path, even though the selection had
already been silently applied.

Wraps the call in retryModelAction, matching the established pattern used
for every other edit in this file, so the outer catch rethrows via
TelegramRetryableCallbackError and the router's retry path takes over.

ClawSweeper follow-up finding on openclaw#124222.

Adds a regression test in bot.test.ts. Reproducing the actual bug requires
failing both the rich edit and its deleteAndReplyCallbackMessage fallback's
replacement send (editCallbackMessage otherwise absorbs a lone rich-edit
failure via that fallback) -- verified to fail pre-fix for the intended
reason and pass post-fix.

Co-Authored-By: Claude <[email protected]>
…tchet

- bot-handlers.callback-actions.test.ts still used the pre-openclaw#126207
  isForum: false param shape; convert all call sites to the current
  threadSpec: TelegramThreadSpec shape (check-test-types failure).
- Add the required // SAFETY comment on the pre-existing
  InlineKeyboardMarkup cast in bot-handlers.callback-actions.ts, which
  this branch's first commit introduced as a new uncommented assertion
  exceeding the file's grandfathered baseline (checks-fast-baseline-ratchets
  failure).
@a-yeyang
a-yeyang force-pushed the fix/telegram-rich-callback-edit branch from 4c3b62b to 1f49de0 Compare August 24, 2026 02:42
…t test

openclaw#128358 landed on main (after this branch's rebase point) with a new
transport-payload.test.ts assertion hardcoding the old delete-then-send
order for deleteAndReplyCallbackMessage's business-media-callback path.
This branch's own earlier commit (f5758b3) had already reversed that
order repo-wide (send-then-delete, to close a silent-failure window where
a send failure after delete would leave neither picker nor confirmation)
and added its own regression coverage in
bot-handlers.callback-actions.test.ts. The rebase merged both changes,
leaving one test asserting the pre-fix order. Update the assertion to the
current send-then-delete order; no production code changes.
@a-yeyang

Copy link
Copy Markdown
Contributor Author

Fixed rebase-collision CI failure at this head

checks-node-changed-extensions-config-22 was failing at the previous head (1f49de0f7d8). Root-caused it rather than treating it as flaky:

  • This branch's own earlier commit (f5758b3f7aa) intentionally reordered deleteAndReplyCallbackMessage from delete-then-send to send-then-delete, closing the silent-failure window where a send failure after delete would leave the user with neither the picker nor a confirmation despite the model selection already having taken effect (the ClawSweeper follow-up P2 finding on this PR). This PR's own regression tests in bot-handlers.callback-actions.test.ts cover the new order.
  • Separately, 629e00776c3 ("fix(telegram): preserve business callback deletion ownership", fix(telegram): delete business callback messages through their owning account #128358) landed on main after this branch's original rebase point, adding a new test in extensions/telegram/src/transport-payload.test.ts that exercises the same deleteAndReplyCallbackMessage path but hardcodes the old delete-then-send order — written before this PR's reorder existed.
  • Rebasing onto latest main pulled that stale-order assertion into this branch, producing a genuine collision between two independently-correct changes, not a pre-existing main issue or a flake.

Fix (a783fda2373, test-only, 0 production LOC): updated transport-payload.test.ts's expected method/payload order to match the correct, already-tested send-then-delete behavior.

Verified:

  • node scripts/run-vitest.mjs extensions/telegram/src/transport-payload.test.ts extensions/telegram/src/bot-handlers.callback-actions.test.ts — 20/20 passed
  • node scripts/run-vitest.mjs extensions/telegram/src/bot.test.ts — 144/144 passed
  • node scripts/run-vitest.mjs extensions/telegram (full suite) — only the pre-existing, unrelated setup-surface.test.ts locale-leak failure remains (reproduces identically with this fix reverted; ambient LANG/i18n, not caused by this change)
  • ./node_modules/.bin/oxfmt --check extensions/telegram/src/transport-payload.test.ts — clean
  • autoreview (--mode commit --commit HEAD): TruffleHog clean, no accepted/actionable findings, "patch is correct (0.99)"
  • node scripts/watch-pr-ci.mjs 124222 a783fda2373b34ebb88909bc22966c5605d62a45 — GREEN, all required checks passing at this head

Known remaining gap: the real-Telegram-Desktop proof attempt still stopped at the provider-picker screen per the prior discussion; the mock-gateway harness proof (test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts) already passes at this head and asserts rich_message.blocks on the final confirmation edit, per the local-reproduction comment above.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@a-yeyang

Copy link
Copy Markdown
Contributor Author

Redacted mock-Gateway verdict: rich /models confirmation edit

Per this PR's real-behavior-proof gate (root AGENTS.md: "a mock-gateway harness run (mock channel API + mock provider + ephemeral gateway, verdict JSON in the PR body)") and ClawSweeper's rank-up ask ("Publish a redacted successful Gateway verdict that includes the raw rich edit request shape and final confirmation result").

Harness: test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts — real ephemeral Gateway child (startQaGatewayChild) + real callback router (bot-handlers.callback-router.ts → bot-handlers.model-callback.ts → bot-handlers.callback-actions.ts) + a local mock Telegram Bot API HTTP server + a mock OpenAI-compatible provider. A synthetic callback_query selecting mdl_sel_mock-openai/gpt-5.6-luna-alt is injected through real long-polling; the test asserts the resulting Bot API request.

Command to reproduce:

OPENCLAW_E2E_VERBOSE=1 node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts

Result: PASS (1/1), 15.3s test time. Captured the exact editMessageText request body the Gateway sent for the final confirmation edit (chat/message IDs are the test's own synthetic constants, not real chat data; model id is a mock fixture name — nothing here needs further redaction):

{
  "chat_id": 555444,
  "message_id": 42,
  "rich_message": {
    "blocks": [
      {
        "type": "paragraph",
        "text": [
          "✅ Model changed to ",
          { "type": "bold", "text": "mock-openai/gpt-5.6-luna-alt" },
          "\n\nSession-only model selection. Runtime unchanged. Use /model mock-openai/gpt-5.6-luna-alt --runtime <runtime> -s to switch harnesses. The agent default in openclaw.json is unchanged. This chat keeps the model selection across /new and /reset; use /model default -s to clear the session model selection."
        ]
      }
    ],
    "skip_entity_detection": true
  }
}

This confirms the changed path end-to-end: the confirmation is sent as rich_message.blocks via the rich raw API (getTelegramRichRawApi(bot.api).editMessageText), with no legacy text/parse_mode fields on the request — exactly the funnel this PR adds, exercised through a real Gateway process rather than a unit-level mock of the callback-actions module.

The test file itself is already in the PR (test/e2e/qa-lab/runtime/telegram-model-picker-gateway.e2e.test.ts:53, a783fda2373b); this comment publishes the actual captured request/response the harness observes when run, per the review's explicit ask, using a one-time temporary console.log locally during capture (not committed — the test file at a783fda2373b is unchanged).

CI at this head is green: https://github.com/openclaw/openclaw/actions/runs/32685754463

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 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 exact_review_queue).
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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 24, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Sep 3, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Oct 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 18, 2026
@steipete

Copy link
Copy Markdown
Contributor

Thanks for the PR. We're closing older pull requests that have gone stale against current main.

This XL PR has had no commits since August 24 and still lacks the required real Telegram behavior proof. Please open a fresh, focused PR against current main if the rich /models confirmation still renders over the picker.

@steipete steipete closed this Oct 24, 2026
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: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Telegram model picker overlaps stale rich text after legacy edit

3 participants