mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
I1: post_to_channel raised no error if get_agent_slug returned None (unknown/deleted agent), and send_message's 'if agent_slug' skipped the validate_channel_access call. Same fail-open class the prior commit was fixing, just narrower window. Now post_to_channel raises ChannelAccessDeniedError directly when the slug lookup fails — say() already converts that to a clean not_authorized Envelope. I2: 'writable channels for your role' wording was misleading because get_agent_channels resolves by slug, not role. Replaced with 'channels you may write to' for clarity.