fix(agent): fix agent visibility defaults and permission model

- Change DB default for agent visibility from 'workspace' to 'private'
- Fix canManageAgent: workspace agents are now manageable by all members,
  private agents remain restricted to owner/admin
- Add private agent visibility check to BatchAssigneePicker (was missing)
This commit is contained in:
Jiayuan 2026-03-31 14:34:04 +08:00
parent 2152fec4ee
commit bedf4a05c8
4 changed files with 46 additions and 25 deletions

View file

@ -0,0 +1 @@
ALTER TABLE agent ALTER COLUMN visibility SET DEFAULT 'private';