#10513: feat(feishu): add quota optimization flags
channel: feishu
stale
Cluster:
Feishu Integration Enhancements
## Summary
- add optional Feishu config flags to reduce API quota usage
- allow disabling typing indicator and sender name resolution
- defaults keep existing behavior (backwards compatible)
## Motivation
Feishu free-tier API quota is tight; these opt-out flags let users reduce unnecessary
requests without changing defaults.
## Changes
- add `typingIndicator` and `resolveSenderNames` to Feishu config schema
- guard sender-name resolution and typing indicator calls behind these flags
## Notes
- default behavior unchanged unless user explicitly sets flags to false
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Adds two optional Feishu config flags (`typingIndicator`, `resolveSenderNames`) intended to reduce free-tier API quota usage.
- Updates Feishu Zod config schemas to include these flags, with top-level defaults preserving existing behavior.
- Guards sender-name resolution in message handling and typing-indicator reactions in the reply dispatcher behind the new flags.
<h3>Confidence Score: 3/5</h3>
- This PR is not safe to merge until a scope/compilation issue in bot.ts is fixed.
- The new config flags are straightforward, but `permissionErrorForAgent` appears to have been moved under a conditional without a matching outer-scope declaration, breaking the later permission-notification path and likely failing build/typecheck.
- extensions/feishu/src/bot.ts
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#13761: fix(feishu): silently degrade when contact permission is missing
by echoVic · 2026-02-11
75.3%
#11304: feishu: cache bot info to reduce probe API calls (feishu set low qu...
by jasonthewhale · 2026-02-07
74.4%
#13211: feat(feishu): skip reply-to in DM conversations
by Vincentwei1021 · 2026-02-10
73.6%
#14674: feat(feishu): add feishu_chat tool for chat info/member queries
by liuweifly · 2026-02-12
73.4%
#18529: feat(feishu): add parentId and rootId to inbound context for quote/...
by qiangu · 2026-02-16
73.2%
#22675: feishu: move message dedup to just before dispatch
by zijiegeng · 2026-02-21
72.8%
#17798: feat(feishu): support sender/topic-scoped group session routing
by yfge · 2026-02-16
72.7%
#15671: fix(feishu): Credentials check bug of Feishu bitable tools when usi...
by zxh0916 · 2026-02-13
72.6%
#19027: fix(feishu): keep chunked messages in topic/thread context
by qiangu · 2026-02-17
72.1%
#19793: feat(feishu): reply-in-thread, parallel group sessions, and fire-an...
by yinsn · 2026-02-18
72.1%