Skip to content

Action expired in telegram when approving command run #21

Closed as duplicate

Description

@outluch

Topic says it. For some reason cannot allow execution. Telegram says Action expired. From mobile UI was able to allow.

Activity

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

    @len5ky
    Owner

    @outluch shipped in v0.1.46. Closely related to (and arguably a duplicate of) #25, which has a cleaner repro. There were two real bugs in the callback handler that together produced what you saw.

    First, ACTION_SELECTORS still pointed at pre-0.1.45 button classes (.composer-tool-call-status-row .anysphere-button.composer-run-button etc.) that don't match the new per-card Cursor UI. Tapping Run in Telegram threw "Element not found" in a tooltip that's easy to miss on mobile, while the web client worked because it goes through a different button-discovery path.

    Second, the callback handler used a per-card hash to find the exact button. The hash lives in an in-memory tracker that gets evicted on server restart and on two-bot-instance setups (extension-spawned server plus a separate npm run dev). When the hash was missing the callback bailed out as "Action expired" even though the approval was still pending in Cursor.

    What v0.1.46 changes:

    1. Stable selectors refreshed to current button.ui-shell-tool-call__run-btn / __skip-btn / __allowlist-button with the legacy .composer-* selectors kept as a second fallback.
    2. Callback resolution tries the per-card hash first (so multi-card scenarios target the exact button you tapped) and falls back to the stable selector when the hash has been evicted. Single-approval cases recover automatically after restart.
    3. Error message reads "Action no longer pending (already actioned, cleared, or restart)" instead of just "Action expired".

    Closing this as a duplicate of #25.

  3. reopened this on May 27, 2026
  4. 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