Skip to content

feat(ui): add allow_proactive toggle to SharingPanel (#376) - #377

Merged
vybe merged 2 commits into
mainfrom
feature/376-proactive-toggle-ui
Apr 17, 2026
Merged

vybe merged 2 commits into
mainfrom
feature/376-proactive-toggle-ui

Conversation

@vybe

@vybe vybe commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add allow_proactive field to AgentShare model response
  • Include proactive toggle switch in Team Sharing list for each shared user
  • Toggle updates via PUT /api/agents/{name}/shares/proactive endpoint
  • Shows tooltip explaining current proactive messaging status

Changes

  • src/backend/db_models.py — add allow_proactive: bool to AgentShare
  • src/backend/db/agent_settings/sharing.py — include column in query and model mapping
  • src/frontend/src/components/SharingPanel.vue — add toggle UI with API integration

Test Plan

  • API tests pass: pytest test_proactive_messaging.py (18 passed)
  • Sharing tests pass: pytest test_agent_sharing.py (8 passed)
  • Manual verification: toggle works in UI, persists to database

Closes #376

🤖 Generated with Claude Code

vybe and others added 2 commits April 17, 2026 15:46
Add UI toggle for the allow_proactive flag on agent shares:
- Include allow_proactive in AgentShare model response
- Add toggle switch next to each shared user in Team Sharing list
- Toggle calls PUT /api/agents/{name}/shares/proactive
- Shows tooltip explaining proactive messaging status

Follow-up to #321 (proactive agent messaging).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- proactive-messaging.md: Add Frontend Layer section for SharingPanel toggle
- agent-sharing.md: Update SharingPanel section with proactive toggle
- feature-flows.md: Add #376 to Recent Updates

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add allow_proactive toggle to SharingPanel UI

1 participant