molecule-core/workspace-server/internal
hongming-codex-laptop 026d1c5fae feat(workspace): add broadcast and talk-to-user platform abilities
Two new workspace-level ability flags (broadcast_enabled, talk_to_user_enabled)
with full backend enforcement, MCP tool, and canvas UI:

- Migration: adds broadcast_enabled (default false) and talk_to_user_enabled
  (default true) columns to workspaces table
- PATCH /workspaces/:id/abilities (AdminAuth) toggles either flag independently
- POST /workspaces/:id/broadcast (WorkspaceAuth) fans out a broadcast_receive
  activity_log entry + WS BROADCAST_MESSAGE event to all non-removed peers;
  requires broadcast_enabled=true on the sender
- AgentMessageWriter checks talk_to_user_enabled; returns ErrTalkToUserDisabled
  which surfaces as HTTP 403 on /notify and the send_message_to_user MCP tool
- broadcast_message MCP tool added to registry + a2a_tools_messaging.py
- Canvas ChatTab shows "Agent is not enabled to chat with you" banner with
  Enable button when talkToUserEnabled=false on the workspace node

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-15 00:19:44 -07:00
..
artifacts
buildinfo
bundle fix(staging): resolve 3 go vet failures 2026-05-13 09:50:45 +00:00
channels channels: add SendAdapter injection + handler test coverage for Test and Send 2026-05-14 09:30:11 +00:00
crypto
db
envx
events fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
handlers feat(workspace): add broadcast and talk-to-user platform abilities 2026-05-15 00:19:44 -07:00
imagewatch
memory fix(go): remove ineffectual pgplugin index increment 2026-05-13 14:32:41 -07:00
messagestore
metrics
middleware fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
models feat(workspace): add broadcast and talk-to-user platform abilities 2026-05-15 00:19:44 -07:00
orgtoken
pendinguploads
plugins fix(platform): clear golangci-lint findings 2026-05-12 22:53:22 -07:00
provisioner fix(staging): add isCPTemplateConfigFile filter to collectCPConfigFiles 2026-05-14 23:18:12 +00:00
provlog
registry
router feat(workspace): add broadcast and talk-to-user platform abilities 2026-05-15 00:19:44 -07:00
scheduler
supervised
textutil
ws chore: drop org_layout_test, hub.go, hub_test.go (already in staging with better coverage) 2026-05-13 18:04:00 +00:00
wsauth