remove update_debug_session (#3084)

This commit is contained in:
Shuchang Zheng
2025-08-01 08:50:58 -07:00
committed by GitHub
parent edaca4a86b
commit 485dbb9662

View File

@@ -3486,28 +3486,6 @@ class AgentDB:
return DebugSession.model_validate(debug_session)
async def update_debug_session(
self,
*,
debug_session_id: str,
browser_session_id: str | None = None,
) -> DebugSession:
async with self.Session() as session:
debug_session = (
await session.scalars(select(DebugSessionModel).filter_by(debug_session_id=debug_session_id))
).first()
if not debug_session:
raise NotFoundError(f"Debug session {debug_session_id} not found")
if browser_session_id:
debug_session.browser_session_id = browser_session_id
await session.commit()
await session.refresh(debug_session)
return DebugSession.model_validate(debug_session)
async def create_project(
self,
organization_id: str,