fix(remote-control): deduplicate session list in DingTalk/WeChat#473
Merged
fix(remote-control): deduplicate session list in DingTalk/WeChat#473
Conversation
…auto-link single session DingTalk and WeChat adapters appended a numbered action list to messages that already contained one from CommandHandler, causing users to see the session list twice. Changes: - Add `supportsInlineKeyboard` capability flag to adapter interface - Add centralized `sendWithActions()` helper with explicit `actionsInText` parameter to avoid duplicate list rendering on text-only platforms - Remove duplicate list rendering from DingTalk/WeChat sendMessage() - Auto-link when only one active session exists (silent, no round-trip) - Fix /start string literal bug (regular quotes → backticks for APP_NAME)
3a6b9e2 to
2af6136
Compare
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
/chatsor/startsupportsInlineKeyboardcapability flag to adapter interface and centralizedsendWithActions()helper with explicitactionsInTextparameter — Telegram uses native buttons, text-only platforms get a numbered list only when the text doesn't already contain one/chats/startstring literal bug:"Welcome to ${APP_NAME}!"used regular quotes instead of backticks, showing literal${APP_NAME}to usersTest plan
/chatsin DingTalk/WeChat — session list should appear once, followed by "Reply with a number to select."/chatsin Telegram — session list with inline keyboard buttons (no change)/repos→ tap project in DingTalk/WeChat — sessions should render as numbered list (not duplicated)/startwith no sessions — should show app name correctly (not literal${APP_NAME})