← Back to PRs

#10513: feat(feishu): add quota optimization flags

by BigUncle open 2026-02-06 16:08 View on GitHub →
channel: feishu stale
## 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