fix(telegram): keep url buttons out of callback assertions
All checks were successful
Code Review / ai-code-review (push) Successful in 11s
CD Pipeline / tests (push) Successful in 1m5s
CD Pipeline / build-and-deploy (push) Successful in 3m45s
CD Pipeline / post-deploy-checks (push) Successful in 1m17s

This commit is contained in:
Your Name
2026-05-17 22:26:51 +08:00
parent 6868a9a93d
commit ef1e28b73a
2 changed files with 19 additions and 7 deletions

View File

@@ -2212,7 +2212,7 @@ class TelegramGateway:
return {"inline_keyboard": buttons}
# ── YAML Fallback 路徑(原有邏輯,不改動任何行為)────────────────────
# ── YAML Fallback 路徑(保留既有 callback 佈局,另補 AwoooP evidence deep link────
# 2026-04-14 Claude Sonnet 4.6 (Phase 5 Sprint 5.4):
# 從 callback_action_spec registry 動態產生按鈕(原 _CATEGORY_BUTTONS hardcode 已下架)
# 優點:新增按鈕只需改 yamlcallback_data 格式由 spec.callback_format 決定