feat(board): introduce new board agent templates and restructure existing files

This commit is contained in:
Abhimanyu Saharan
2026-02-15 00:45:28 +05:30
parent 313ce874f9
commit 2084405593
33 changed files with 795 additions and 903 deletions

View File

@@ -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()