Skip to content

Telegram bot "Run, skip" etc... commands not working #25

Closed

Description

@tonetechnician

Hi there,

I just started trying your tool out! Great work, I was building something similar before I came across this one. I've noticed an issue though. It seems when attempting to execute any of the code execution blocks, the telegram bot doesn't forward the messages to cursor.

When using the web page it does, so I assume it's an issue within the cursor bot. Maybe an api changed or something?

I'll dig into it, but thought I'd put it here for visual as maybe there's a simple solution

Activity

  1. added a commit that references this issue on May 27, 2026
  2. len5ky commented on May 27, 2026

    @len5ky
    Owner

    @tonetechnician shipped in v0.1.46. Thanks for the clean repro, web works / Telegram doesn't was exactly the right signal. You nailed the cause.

    Cursor's approval buttons moved to a per-card layout in a recent build (button.ui-shell-tool-call__run-btn / __skip-btn / __allowlist-button), but the Telegram callback handler in 0.1.45 still had the old .composer-tool-call-status-row .anysphere-button.composer-run-button-style selectors in its stable-selector table. Run/Skip in Telegram resolved a selector that matches nothing in current Cursor, click() threw Element not found, and the Telegram tooltip flashed the error briefly (easy to miss on mobile). The web client wasn't affected because it goes through a different button-discovery path that was rewritten for the per-card layout in 0.1.45.

    What v0.1.46 changes:

    1. Stable selectors refreshed to current button.ui-shell-tool-call__run-btn / __skip-btn / __allowlist-button with the older .composer-* selectors as a second fallback.
    2. Hash-then-stable priority. The callback tries the per-card hash first (so multi-card scenarios target the exact button you tapped) and falls back to the stable selector only when the hash has been evicted (server restart, two-bot setups). Pre-fix it was the other way round, which is why the broken stable selector always won.
    3. Clearer error: "Action no longer pending (already actioned, cleared, or restart)" instead of "Action expired".

    Same fix as #21. Credited you in the v0.1.46 changelog. Closing.

  3. added a commit that references this issue on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions