feat: make FEISHU_CARD_TABLE_LIMIT configurable via cardTableLimit#436
Open
Sway-Chan wants to merge 1 commit into
Open
feat: make FEISHU_CARD_TABLE_LIMIT configurable via cardTableLimit#436Sway-Chan wants to merge 1 commit into
Sway-Chan wants to merge 1 commit into
Conversation
- Add resolveTableLimit() to support channels.feishu.cardTableLimit config - Default remains 3 (backward compatible) - Set to 0/false to disable limit (Infinity) - Set to any positive integer for custom limit - Update shouldUseCard(), prepareTerminalCardContent() to read config - Fixes Streaming Card mode degrading 4th+ tables to code blocks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #435
将 FEISHU_CARD_TABLE_LIMIT 从硬编码常量改为可配置项 channels.feishu.cardTableLimit。
Problem
Streaming Card 模式下,第 4 个 Markdown 表格起被 sanitizeTextForCard() 强制降级为代码块,而 Static 模式下同样内容正常渲染。原因是 FEISHU_CARD_LIMIT = 3 硬编码且无法通过配置调整。
Changes
Configuration