Skip to content

feat: Feishu interactive card buttons + auto-approve tools#69

Open
tian-liang wants to merge 2 commits intoop7418:mainfrom
tian-liang:feat/feishu-card-buttons
Open

feat: Feishu interactive card buttons + auto-approve tools#69
tian-liang wants to merge 2 commits intoop7418:mainfrom
tian-liang:feat/feishu-card-buttons

Conversation

@tian-liang
Copy link
Copy Markdown

No description provided.

tianliang and others added 2 commits March 19, 2026 15:17
Feishu permission cards now show clickable buttons (允许/本次会话允许/拒绝)
that persist after clicking via REST PATCH, instead of reverting.

Key changes:
- Add feishu-card-patch.ts: patches WSClient.handleEventData to intercept
  card.action.trigger events, resolve permissions, and update cards via
  REST PATCH (WS ack + delayed PATCH avoids card reversion bug)
- Add autoApproveTools config: auto-approve specific tools (e.g. Read,Glob)
  without user confirmation, configurable via CTI_AUTO_APPROVE_TOOLS
- Add debug logging in permission-gateway and llm-provider for diagnostics

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ove tools

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant