telegram: /model Route calls carry no sender or platform #1492

Open
opened 2026-10-27 13:40:37 +00:00 by sam · 0 comments
Owner

switchModel, sendModelSelector fallback and the model callback in internal/channels/telegram/model.go call client.Route with an Inbound that has no Platform, Sender or SenderID (resume and routeCmd handlers set Platform and username but not SenderID). Latent today because Router.SlashAccess is never set outside tests; once wired, /model is admin-only and these calls would be refused while the callback still reports success. Done when every Telegram Route call builds its Inbound through one helper that sets Platform, ConversationID, Sender and SenderID, and the callback checks the reply for a refusal.


Imported from beads archie-core-olycr · GitHub #1597 · type bug · priority P3 · created 2026-10-10

switchModel, sendModelSelector fallback and the model callback in internal/channels/telegram/model.go call client.Route with an Inbound that has no Platform, Sender or SenderID (resume and routeCmd handlers set Platform and username but not SenderID). Latent today because Router.SlashAccess is never set outside tests; once wired, /model is admin-only and these calls would be refused while the callback still reports success. Done when every Telegram Route call builds its Inbound through one helper that sets Platform, ConversationID, Sender and SenderID, and the callback checks the reply for a refusal. --- _Imported from beads `archie-core-olycr` · GitHub #1597 · type bug · priority P3 · created 2026-10-10_
sam added the lowbug labels 2026-10-27 13:40:37 +00:00
sam self-assigned this 2026-10-27 13:40:37 +00:00
sam added the deferred label 2026-11-15 17:26:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1492