Skip to content

fix(feishu): approval buttons broken after v0.15.0 upgrade when no admins configured #35032

Open

Description

@wz90250

Describe the bug

After upgrading from v0.14.0 to v0.15.0 (or v0.15.1), the Feishu interactive approval buttons (used for /execute command approval) stop responding to clicks. The gateway logs show:

WARNING gateway.platforms.feishu: [Feishu] Unauthorized approval click by ou_xxxxxxxxxxxx

No approval dialog appears; the card briefly flashes a "processing" indicator and silently returns to its prior state.

Root Cause

Commit history between v2026.5.16 (v0.14.0) and v2026.5.28 (v0.15.0):

Commit Description
485292ac7 Added _allow_group_message() check in _handle_approval_card_action
bdb97b857 Added _is_interactive_operator_authorized() check in _resolve_approval

The blocking call is in _handle_approval_card_action (line 2582) which uses _allow_group_message(). When neither admins nor FEISHU_ALLOWED_USERS are configured, the allowlist is empty and everyone is blocked.

Inconsistency

The same class has two authorization functions with opposite defaults for the unconfigured state:

  • _is_interactive_operator_authorized returns True (allows everyone) when no admins configured
  • _allow_group_message returns False (blocks everyone) when policy=allowlist and no users configured

Other card-action handlers use _is_interactive_operator_authorized. The approval button is the odd one out.

Suggested fix

Option A — Replace _allow_group_message with _is_interactive_operator_authorized in _handle_approval_card_action, consistent with other card handlers.

Option B — Make _allow_group_message fall back to "open" policy when both _admins and _allowed_group_users are empty.

Workaround

Add the admin open_id to the feishu config:

platforms:
  feishu:
    extra:
      admins:
        - ou_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Or set FEISHU_ALLOWED_USERS env var.

Activity

  1. added
    type/bugSomething isn't working
    comp/gatewayGateway runner, session dispatch, delivery
    P2Medium — degraded but workaround exists
    on May 29, 2026
  2. alt-glitch commented on May 29, 2026

    @alt-glitch

    Duplicate of #20596. Fix PR #34707 is already open addressing the same _allow_group_message vs _is_interactive_operator_authorized inconsistency.

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

    P2Medium — degraded but workaround existscomp/gatewayGateway runner, session dispatch, deliveryplatform/feishuFeishu / Lark adaptertype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions