Skip to content

feat: add allow_proactive toggle to SharingPanel UI #376

Closed

Description

@vybe

Problem

The allow_proactive flag exists in the backend (added in #321) but there's no UI to set it. Users must use curl to enable proactive messaging for shared users.

Current state

  • agent_sharing.allow_proactive column exists
  • PUT /api/agents/{name}/shares/proactive endpoint works
  • GET /api/agents/{name}/shares/proactive endpoint works
  • SharingPanel.vue shows shares but has no toggle for this flag

Proposed solution

Add a toggle switch next to each shared user in the Team Sharing list:

  • Show current allow_proactive status
  • Toggle calls PUT /api/agents/{name}/shares/proactive
  • Tooltip explains what proactive messaging means

Acceptance Criteria

  • Each share row in SharingPanel shows allow_proactive toggle
  • Toggle updates the flag via API
  • Shows loading state while updating
  • Error handling with notification

Files to change

  • src/frontend/src/components/SharingPanel.vue
  • src/backend/routers/sharing.py (may need to return allow_proactive in shares list)

Follow-up to #321

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowtype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions