Fix shared-bot Telegram agent resolution and add effort badge

- TelegramService: build the chat context with the session owner instead
  of the bot owner, so a public/shared bot resolves the agent for foreign
  sessions; credentials/CLI permission stay with the bot owner.
- Agent cards: render an effort badge next to the model badge when an
  agent has an explicit reasoning effort set.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MelekiandClaude Opus 4.8 committed 2026-06-20 12:56:42 +02:00
1 parent e395927a67
commit e6770bb5f8
3 files changed
+13 -1

No files matched your search

+3
View File
@@ -153,12 +153,15 @@ function buildAgentCard(agent, skills) {
}
}
const effort = (agent.effort || ``).toLowerCase()
card.innerHTML = `
<div class="card-image">${imageHtml}</div>
<div class="card-body">
<div class="card-title-row">
<span class="card-title">${esc(agent.name)}</span>
<span class="badge">${prettyModelName(agent.model)}</span>
${effort ? `<span class="badge badge-effort">${effort}</span>` : ``}
</div>
${badges.length ? `<div class="card-badges">${badges.join('')}</div>` : ''}
</div>