You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Action expired in telegram when approving command run #21
@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:
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.
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.
Error message reads "Action no longer pending (already actioned, cleared, or restart)" instead of just "Action expired".
Activity
v0.1.46
len5ky commentedon May 27, 2026
@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_SELECTORSstill pointed at pre-0.1.45 button classes (.composer-tool-call-status-row .anysphere-button.composer-run-buttonetc.) 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:
button.ui-shell-tool-call__run-btn/__skip-btn/__allowlist-buttonwith the legacy.composer-*selectors kept as a second fallback.Closing this as a duplicate of #25.
v0.1.46