feat: Enhance select input handling and validation in Dify API runner and Telegram adapter

This commit is contained in:
fdc310
2026-07-12 00:31:12 +08:00
parent 4b6931d294
commit 354aadfce0
4 changed files with 204 additions and 27 deletions
@@ -36,7 +36,7 @@ def test_telegram_select_field_options_are_extracted():
def test_telegram_select_callback_becomes_input_progress():
assert _telegram_form_action_from_callback({'f': 1, 'x': 1}) == {
'action_id': '',
'inputs': {'select': '1'},
'inputs': {'select': {'index': 1}},
'_input_progress': True,
}