feat(board): introduce new board agent templates and restructure existing files
This commit is contained in:
@@ -29,6 +29,7 @@ from app.db.pagination import paginate
|
||||
from app.db.session import async_session_maker
|
||||
from app.models.activity_events import ActivityEvent
|
||||
from app.models.agents import Agent
|
||||
from app.models.approvals import Approval
|
||||
from app.models.board_memory import BoardMemory
|
||||
from app.models.boards import Board
|
||||
from app.models.gateways import Gateway
|
||||
@@ -1819,6 +1820,13 @@ class AgentLifecycleService(OpenClawDBService):
|
||||
agent_id=None,
|
||||
commit=False,
|
||||
)
|
||||
await crud.update_where(
|
||||
self.session,
|
||||
Approval,
|
||||
col(Approval.agent_id) == agent.id,
|
||||
agent_id=None,
|
||||
commit=False,
|
||||
)
|
||||
await self.session.delete(agent)
|
||||
await self.session.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user