You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/extensions
chi 33e6a6724d
fix(telegram): enable HTML formatting for model switch messages (#60042)
* fix(telegram): enable HTML formatting for model switch messages

The model switch confirmation message was displaying raw Markdown
(**text**) instead of bold formatting because parse_mode was not set.

Changes:
- Add optional extra parameter to editMessageWithButtons for parse_mode
- Change format from Markdown ** to HTML <b> tags
- Pass parse_mode: 'HTML' when editing model switch message

Fixes the issue where model names appeared as **provider/model**
instead of bold text in Telegram.

* fix(telegram): escape HTML entities in model switch confirmation

Add defensive `escapeHtml` helper to sanitize `selection.provider`
and `selection.model` before interpolating them into the HTML
callback message. This prevents potential API rejection (HTTP 400)
if future provider or model names contain `<`, `>`, or `&`.

Addresses review feedback on unescaped HTML interpolation.

* test(telegram): cover HTML model switch confirmation

---------

Co-authored-by: Frank Yang <frank.ekn@gmail.com>
8 months ago
..
acpx test(acpx): use direct ACP adapter contract seam 8 months ago
amazon-bedrock refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
anthropic refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
anthropic-vertex refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
bluebubbles fix: honor bluebubbles setup dm policy accounts 8 months ago
brave test: move extension-owned coverage out of core 8 months ago
browser fix: restore browser-config sdk compatibility 8 months ago
byteplus build: prepare 2026.4.1-beta.1 release 8 months ago
chutes build: prepare 2026.4.1-beta.1 release 8 months ago
cloudflare-ai-gateway build: prepare 2026.4.1-beta.1 release 8 months ago
copilot-proxy build: prepare 2026.4.1-beta.1 release 8 months ago
deepgram test(types): remove remaining testing barrel references 8 months ago
deepseek test(extensions): narrow provider registration test helpers 8 months ago
device-pair refactor(channels): route core through registered plugin capabilities 8 months ago
diagnostics-otel CI: add ClawHub plugin release workflow (#59179) 8 months ago
diffs test(diffs): split render coverage from config tests 8 months ago
discord fix: resolve post-rebase gate follow-ups for #60081 8 months ago
duckduckgo build: prepare 2026.4.1-beta.1 release 8 months ago
elevenlabs build: prepare 2026.4.1-beta.1 release 8 months ago
exa build: prepare 2026.4.1-beta.1 release 8 months ago
fal fix(providers): route image generation through shared transport (#59729) 8 months ago
feishu refactor(feishu): lazy-load subagent hooks 8 months ago
firecrawl test: trim extension test import churn 8 months ago
github-copilot refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
google fix(ci): route extension test helpers through public sdk seams 8 months ago
googlechat fix: honor account-scoped setup dm policy 8 months ago
groq build: prepare 2026.4.1-beta.1 release 8 months ago
huggingface build: prepare 2026.4.1-beta.1 release 8 months ago
image-generation-core build: prepare 2026.4.1-beta.1 release 8 months ago
imessage fix: honor imessage setup dm policy accounts 8 months ago
irc test: trim extension test import churn 8 months ago
kilocode fix(ci): route extension test helpers through public sdk seams 8 months ago
kimi-coding refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
line fix: honor line setup dm policy accounts 8 months ago
litellm build: prepare 2026.4.1-beta.1 release 8 months ago
llm-task build: prepare 2026.4.1-beta.1 release 8 months ago
lobster fix(ci): route extension test helpers through sdk testing 8 months ago
matrix test(matrix): avoid loading send module in thread binding tests 8 months ago
mattermost test(mattermost): slim leaf runtime fixtures 8 months ago
media-understanding-core build: prepare 2026.4.1-beta.1 release 8 months ago
memory-core fix: align latest-main gate drift on #60221 8 months ago
memory-lancedb CI: add ClawHub plugin release workflow (#59179) 8 months ago
microsoft test: trim extension test import churn 8 months ago
microsoft-foundry refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
minimax refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
mistral refactor(providers): centralize native provider detection (#60341) 8 months ago
modelstudio feat: add qwen3.6-plus to modelstudio catalog 8 months ago
moonshot fix(ci): route extension test helpers through public sdk seams 8 months ago
msteams fix(ci): route extension test helpers through public sdk seams 8 months ago
nextcloud-talk fix: honor nextcloud setup dm policy accounts 8 months ago
nostr CI: add ClawHub plugin release workflow (#59179) 8 months ago
nvidia build: prepare 2026.4.1-beta.1 release 8 months ago
ollama refactor: move ollama synthetic auth precedence into extension 8 months ago
open-prose build: prepare 2026.4.1-beta.1 release 8 months ago
openai refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
opencode refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
opencode-go refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
openrouter refactor: move provider replay runtime ownership into plugins (#60126) 8 months ago
openshell test(types): remove remaining testing barrel references 8 months ago
perplexity fix(ci): route extension test helpers through public sdk seams 8 months ago
phone-control tighten phone-control scope helper extraction 8 months ago
qianfan build: prepare 2026.4.1-beta.1 release 8 months ago
qqbot CI: add ClawHub plugin release workflow (#59179) 8 months ago
searxng test: trim extension test import churn 8 months ago
sglang build: prepare 2026.4.1-beta.1 release 8 months ago
shared test: trim whatsapp channel test barrels 8 months ago
signal fix: honor signal setup dm policy accounts 8 months ago
slack fix: honor legacy setup dm policy accounts 8 months ago
speech-core refactor(plugin-sdk): genericize web channel runtime seams 8 months ago
stepfun feat: add bundled StepFun provider plugin (#60032) 8 months ago
synology-chat test: trim extension test import churn 8 months ago
synthetic build: prepare 2026.4.1-beta.1 release 8 months ago
talk-voice fix(ci): restore talk-voice plugin runtime export 8 months ago
tavily test: trim extension test import churn 8 months ago
telegram fix(telegram): enable HTML formatting for model switch messages (#60042) 8 months ago
thread-ownership feat(gateway): make chat history max chars configurable (#58900) 8 months ago
tlon test: trim extension test import churn 8 months ago
together build: prepare 2026.4.1-beta.1 release 8 months ago
twitch build: prepare 2026.4.1-beta.1 release 8 months ago
venice build: prepare 2026.4.1-beta.1 release 8 months ago
vercel-ai-gateway build: prepare 2026.4.1-beta.1 release 8 months ago
vllm build: prepare 2026.4.1-beta.1 release 8 months ago
voice-call CI: add ClawHub plugin release workflow (#59179) 8 months ago
volcengine build: prepare 2026.4.1-beta.1 release 8 months ago
whatsapp fix: honor whatsapp heartbeat account allowFrom 8 months ago
xai fix(ci): route extension test helpers through public sdk seams 8 months ago
xiaomi build: prepare 2026.4.1-beta.1 release 8 months ago
zai build: prepare 2026.4.1-beta.1 release 8 months ago
zalo fix: honor zalo setup dm policy accounts 8 months ago
zalouser refactor(zalouser): lazy-load async runtime surfaces 8 months ago
.npmignore fix: harden windows npm runtime path 9 months ago
AGENTS.md Docs: add boundary AGENTS guides (#56647) 8 months ago
CLAUDE.md Docs: add boundary AGENTS guides (#56647) 8 months ago